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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Report process out of memory. Implementation found in api.cc. | 97 // Report process out of memory. Implementation found in api.cc. |
98 static void FatalProcessOutOfMemory(const char* location, | 98 static void FatalProcessOutOfMemory(const char* location, |
99 bool take_snapshot = false); | 99 bool take_snapshot = false); |
100 | 100 |
101 // Allows an entropy source to be provided for use in random number | 101 // Allows an entropy source to be provided for use in random number |
102 // generation. | 102 // generation. |
103 static void SetEntropySource(EntropySource source); | 103 static void SetEntropySource(EntropySource source); |
104 // Support for return-address rewriting profilers. | 104 // Support for return-address rewriting profilers. |
105 static void SetReturnAddressLocationResolver( | 105 static void SetReturnAddressLocationResolver( |
106 ReturnAddressLocationResolver resolver); | 106 ReturnAddressLocationResolver resolver); |
| 107 // Support for entry hooking JITed code. |
| 108 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); |
107 // Random number generation support. Not cryptographically safe. | 109 // Random number generation support. Not cryptographically safe. |
108 static uint32_t Random(Context* context); | 110 static uint32_t Random(Context* context); |
109 // We use random numbers internally in memory allocation and in the | 111 // We use random numbers internally in memory allocation and in the |
110 // compilers for security. In order to prevent information leaks we | 112 // compilers for security. In order to prevent information leaks we |
111 // use a separate random state for internal random number | 113 // use a separate random state for internal random number |
112 // generation. | 114 // generation. |
113 static uint32_t RandomPrivate(Isolate* isolate); | 115 static uint32_t RandomPrivate(Isolate* isolate); |
114 static Object* FillHeapNumberWithRandom(Object* heap_number, | 116 static Object* FillHeapNumberWithRandom(Object* heap_number, |
115 Context* context); | 117 Context* context); |
116 | 118 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 157 |
156 // JavaScript defines two kinds of 'nil'. | 158 // JavaScript defines two kinds of 'nil'. |
157 enum NilValue { kNullValue, kUndefinedValue }; | 159 enum NilValue { kNullValue, kUndefinedValue }; |
158 | 160 |
159 | 161 |
160 } } // namespace v8::internal | 162 } } // namespace v8::internal |
161 | 163 |
162 namespace i = v8::internal; | 164 namespace i = v8::internal; |
163 | 165 |
164 #endif // V8_V8_H_ | 166 #endif // V8_V8_H_ |
OLD | NEW |