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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 static void SetReturnAddressLocationResolver( | 66 static void SetReturnAddressLocationResolver( |
67 ReturnAddressLocationResolver resolver); | 67 ReturnAddressLocationResolver resolver); |
68 // Support for entry hooking JITed code. | 68 // Support for entry hooking JITed code. |
69 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); | 69 static void SetFunctionEntryHook(FunctionEntryHook entry_hook); |
70 | 70 |
71 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { | 71 static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() { |
72 return array_buffer_allocator_; | 72 return array_buffer_allocator_; |
73 } | 73 } |
74 | 74 |
75 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { | 75 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { |
76 CHECK_EQ(NULL, array_buffer_allocator_); | 76 CHECK_NULL(array_buffer_allocator_); |
77 array_buffer_allocator_ = allocator; | 77 array_buffer_allocator_ = allocator; |
78 } | 78 } |
79 | 79 |
80 static void InitializePlatform(v8::Platform* platform); | 80 static void InitializePlatform(v8::Platform* platform); |
81 static void ShutdownPlatform(); | 81 static void ShutdownPlatform(); |
82 static v8::Platform* GetCurrentPlatform(); | 82 static v8::Platform* GetCurrentPlatform(); |
83 | 83 |
84 static void SetNativesBlob(StartupData* natives_blob); | 84 static void SetNativesBlob(StartupData* natives_blob); |
85 static void SetSnapshotBlob(StartupData* snapshot_blob); | 85 static void SetSnapshotBlob(StartupData* snapshot_blob); |
86 | 86 |
87 private: | 87 private: |
88 static void InitializeOncePerProcessImpl(); | 88 static void InitializeOncePerProcessImpl(); |
89 static void InitializeOncePerProcess(); | 89 static void InitializeOncePerProcess(); |
90 | 90 |
91 // Allocator for external array buffers. | 91 // Allocator for external array buffers. |
92 static v8::ArrayBuffer::Allocator* array_buffer_allocator_; | 92 static v8::ArrayBuffer::Allocator* array_buffer_allocator_; |
93 // v8::Platform to use. | 93 // v8::Platform to use. |
94 static v8::Platform* platform_; | 94 static v8::Platform* platform_; |
95 }; | 95 }; |
96 | 96 |
97 | 97 |
98 // JavaScript defines two kinds of 'nil'. | 98 // JavaScript defines two kinds of 'nil'. |
99 enum NilValue { kNullValue, kUndefinedValue }; | 99 enum NilValue { kNullValue, kUndefinedValue }; |
100 | 100 |
101 | 101 |
102 } } // namespace v8::internal | 102 } } // namespace v8::internal |
103 | 103 |
104 #endif // V8_V8_H_ | 104 #endif // V8_V8_H_ |
OLD | NEW |