OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Report process out of memory. Implementation found in api.cc. | 94 // Report process out of memory. Implementation found in api.cc. |
95 static void FatalProcessOutOfMemory(const char* location, | 95 static void FatalProcessOutOfMemory(const char* location, |
96 bool take_snapshot = false); | 96 bool take_snapshot = false); |
97 | 97 |
98 // Allows an entropy source to be provided for use in random number | 98 // Allows an entropy source to be provided for use in random number |
99 // generation. | 99 // generation. |
100 static void SetEntropySource(EntropySource source); | 100 static void SetEntropySource(EntropySource source); |
101 // Support for return-address rewriting profilers. | 101 // Support for return-address rewriting profilers. |
102 static void SetReturnAddressLocationResolver( | 102 static void SetReturnAddressLocationResolver( |
103 ReturnAddressLocationResolver resolver); | 103 ReturnAddressLocationResolver resolver); |
104 // Support for entry hooking JITed code. | |
105 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); | |
106 // Random number generation support. Not cryptographically safe. | 104 // Random number generation support. Not cryptographically safe. |
107 static uint32_t Random(Context* context); | 105 static uint32_t Random(Context* context); |
108 // We use random numbers internally in memory allocation and in the | 106 // We use random numbers internally in memory allocation and in the |
109 // compilers for security. In order to prevent information leaks we | 107 // compilers for security. In order to prevent information leaks we |
110 // use a separate random state for internal random number | 108 // use a separate random state for internal random number |
111 // generation. | 109 // generation. |
112 static uint32_t RandomPrivate(Isolate* isolate); | 110 static uint32_t RandomPrivate(Isolate* isolate); |
113 static Object* FillHeapNumberWithRandom(Object* heap_number, | 111 static Object* FillHeapNumberWithRandom(Object* heap_number, |
114 Context* context); | 112 Context* context); |
115 | 113 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 152 |
155 // JavaScript defines two kinds of 'nil'. | 153 // JavaScript defines two kinds of 'nil'. |
156 enum NilValue { kNullValue, kUndefinedValue }; | 154 enum NilValue { kNullValue, kUndefinedValue }; |
157 | 155 |
158 | 156 |
159 } } // namespace v8::internal | 157 } } // namespace v8::internal |
160 | 158 |
161 namespace i = v8::internal; | 159 namespace i = v8::internal; |
162 | 160 |
163 #endif // V8_V8_H_ | 161 #endif // V8_V8_H_ |
OLD | NEW |