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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Random number generation support. Not cryptographically safe. | 98 // Random number generation support. Not cryptographically safe. |
99 static uint32_t Random(Context* context); | 99 static uint32_t Random(Context* context); |
100 // We use random numbers internally in memory allocation and in the | 100 // We use random numbers internally in memory allocation and in the |
101 // compilers for security. In order to prevent information leaks we | 101 // compilers for security. In order to prevent information leaks we |
102 // use a separate random state for internal random number | 102 // use a separate random state for internal random number |
103 // generation. | 103 // generation. |
104 static uint32_t RandomPrivate(Isolate* isolate); | 104 static uint32_t RandomPrivate(Isolate* isolate); |
105 static Object* FillHeapNumberWithRandom(Object* heap_number, | 105 static Object* FillHeapNumberWithRandom(Object* heap_number, |
106 Context* context); | 106 Context* context); |
107 | 107 |
108 // Idle notification directly from the API. | |
109 static bool IdleNotification(int hint); | |
110 | |
111 static void AddCallCompletedCallback(CallCompletedCallback callback); | 108 static void AddCallCompletedCallback(CallCompletedCallback callback); |
112 static void RemoveCallCompletedCallback(CallCompletedCallback callback); | 109 static void RemoveCallCompletedCallback(CallCompletedCallback callback); |
113 static void FireCallCompletedCallback(Isolate* isolate); | 110 static void FireCallCompletedCallback(Isolate* isolate); |
114 | 111 |
115 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { | 112 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { |
116 return array_buffer_allocator_; | 113 return array_buffer_allocator_; |
117 } | 114 } |
118 | 115 |
119 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { | 116 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { |
120 CHECK_EQ(NULL, array_buffer_allocator_); | 117 CHECK_EQ(NULL, array_buffer_allocator_); |
(...skipping 18 matching lines...) Expand all Loading... |
139 | 136 |
140 // JavaScript defines two kinds of 'nil'. | 137 // JavaScript defines two kinds of 'nil'. |
141 enum NilValue { kNullValue, kUndefinedValue }; | 138 enum NilValue { kNullValue, kUndefinedValue }; |
142 | 139 |
143 | 140 |
144 } } // namespace v8::internal | 141 } } // namespace v8::internal |
145 | 142 |
146 namespace i = v8::internal; | 143 namespace i = v8::internal; |
147 | 144 |
148 #endif // V8_V8_H_ | 145 #endif // V8_V8_H_ |
OLD | NEW |