| 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); |
| 104 // Random number generation support. Not cryptographically safe. | 106 // Random number generation support. Not cryptographically safe. |
| 105 static uint32_t Random(Context* context); | 107 static uint32_t Random(Context* context); |
| 106 // We use random numbers internally in memory allocation and in the | 108 // We use random numbers internally in memory allocation and in the |
| 107 // compilers for security. In order to prevent information leaks we | 109 // compilers for security. In order to prevent information leaks we |
| 108 // use a separate random state for internal random number | 110 // use a separate random state for internal random number |
| 109 // generation. | 111 // generation. |
| 110 static uint32_t RandomPrivate(Isolate* isolate); | 112 static uint32_t RandomPrivate(Isolate* isolate); |
| 111 static Object* FillHeapNumberWithRandom(Object* heap_number, | 113 static Object* FillHeapNumberWithRandom(Object* heap_number, |
| 112 Context* context); | 114 Context* context); |
| 113 | 115 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 154 |
| 153 // JavaScript defines two kinds of 'nil'. | 155 // JavaScript defines two kinds of 'nil'. |
| 154 enum NilValue { kNullValue, kUndefinedValue }; | 156 enum NilValue { kNullValue, kUndefinedValue }; |
| 155 | 157 |
| 156 | 158 |
| 157 } } // namespace v8::internal | 159 } } // namespace v8::internal |
| 158 | 160 |
| 159 namespace i = v8::internal; | 161 namespace i = v8::internal; |
| 160 | 162 |
| 161 #endif // V8_V8_H_ | 163 #endif // V8_V8_H_ |
| OLD | NEW |