OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // | 5 // |
6 // Top include for all V8 .cc files. | 6 // Top include for all V8 .cc files. |
7 // | 7 // |
8 | 8 |
9 #ifndef V8_V8_H_ | 9 #ifndef V8_V8_H_ |
10 #define V8_V8_H_ | 10 #define V8_V8_H_ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Allows an entropy source to be provided for use in random number | 69 // Allows an entropy source to be provided for use in random number |
70 // generation. | 70 // generation. |
71 static void SetEntropySource(EntropySource source); | 71 static void SetEntropySource(EntropySource source); |
72 // Support for return-address rewriting profilers. | 72 // Support for return-address rewriting profilers. |
73 static void SetReturnAddressLocationResolver( | 73 static void SetReturnAddressLocationResolver( |
74 ReturnAddressLocationResolver resolver); | 74 ReturnAddressLocationResolver resolver); |
75 // Support for entry hooking JITed code. | 75 // Support for entry hooking JITed code. |
76 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); | 76 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); |
77 | 77 |
78 static void RunMicrotasks(Isolate* isolate); | |
79 | |
80 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { | 78 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { |
81 return array_buffer_allocator_; | 79 return array_buffer_allocator_; |
82 } | 80 } |
83 | 81 |
84 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { | 82 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { |
85 CHECK_EQ(NULL, array_buffer_allocator_); | 83 CHECK_EQ(NULL, array_buffer_allocator_); |
86 array_buffer_allocator_ = allocator; | 84 array_buffer_allocator_ = allocator; |
87 } | 85 } |
88 | 86 |
89 static void InitializePlatform(v8::Platform* platform); | 87 static void InitializePlatform(v8::Platform* platform); |
(...skipping 11 matching lines...) Expand all Loading... |
101 }; | 99 }; |
102 | 100 |
103 | 101 |
104 // JavaScript defines two kinds of 'nil'. | 102 // JavaScript defines two kinds of 'nil'. |
105 enum NilValue { kNullValue, kUndefinedValue }; | 103 enum NilValue { kNullValue, kUndefinedValue }; |
106 | 104 |
107 | 105 |
108 } } // namespace v8::internal | 106 } } // namespace v8::internal |
109 | 107 |
110 #endif // V8_V8_H_ | 108 #endif // V8_V8_H_ |
OLD | NEW |