OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 namespace v8 { | 28 namespace v8 { |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class RandomNumberGenerator; | 31 class RandomNumberGenerator; |
32 } | 32 } |
33 | 33 |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 class AccessCompilerData; | 36 class AccessCompilerData; |
37 class AddressToIndexHashMap; | 37 class AddressToIndexHashMap; |
38 class AstStringConstants; | |
39 class BasicBlockProfiler; | 38 class BasicBlockProfiler; |
40 class Bootstrapper; | 39 class Bootstrapper; |
41 class CancelableTaskManager; | 40 class CancelableTaskManager; |
42 class CallInterfaceDescriptorData; | 41 class CallInterfaceDescriptorData; |
43 class CodeAgingHelper; | 42 class CodeAgingHelper; |
44 class CodeEventDispatcher; | 43 class CodeEventDispatcher; |
45 class CodeGenerator; | 44 class CodeGenerator; |
46 class CodeRange; | 45 class CodeRange; |
47 class CodeStubDescriptor; | 46 class CodeStubDescriptor; |
48 class CodeTracer; | 47 class CodeTracer; |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1150 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
1152 return array_buffer_allocator_; | 1151 return array_buffer_allocator_; |
1153 } | 1152 } |
1154 | 1153 |
1155 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } | 1154 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } |
1156 | 1155 |
1157 CancelableTaskManager* cancelable_task_manager() { | 1156 CancelableTaskManager* cancelable_task_manager() { |
1158 return cancelable_task_manager_; | 1157 return cancelable_task_manager_; |
1159 } | 1158 } |
1160 | 1159 |
1161 AstStringConstants* ast_string_constants() const { | |
1162 return ast_string_constants_; | |
1163 } | |
1164 | |
1165 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1160 interpreter::Interpreter* interpreter() const { return interpreter_; } |
1166 | 1161 |
1167 AccountingAllocator* allocator() { return allocator_; } | 1162 AccountingAllocator* allocator() { return allocator_; } |
1168 | 1163 |
1169 CompilerDispatcher* compiler_dispatcher() const { | 1164 CompilerDispatcher* compiler_dispatcher() const { |
1170 return compiler_dispatcher_; | 1165 return compiler_dispatcher_; |
1171 } | 1166 } |
1172 | 1167 |
1173 // Clear all optimized code stored in native contexts. | 1168 // Clear all optimized code stored in native contexts. |
1174 void ClearOSROptimizedCode(); | 1169 void ClearOSROptimizedCode(); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1397 HistogramInfo heap_histograms_[LAST_TYPE + 1]; | 1392 HistogramInfo heap_histograms_[LAST_TYPE + 1]; |
1398 JSObject::SpillInformation js_spill_information_; | 1393 JSObject::SpillInformation js_spill_information_; |
1399 #endif | 1394 #endif |
1400 | 1395 |
1401 Debug* debug_; | 1396 Debug* debug_; |
1402 CpuProfiler* cpu_profiler_; | 1397 CpuProfiler* cpu_profiler_; |
1403 HeapProfiler* heap_profiler_; | 1398 HeapProfiler* heap_profiler_; |
1404 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_; | 1399 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_; |
1405 FunctionEntryHook function_entry_hook_; | 1400 FunctionEntryHook function_entry_hook_; |
1406 | 1401 |
1407 AstStringConstants* ast_string_constants_; | |
1408 | |
1409 interpreter::Interpreter* interpreter_; | 1402 interpreter::Interpreter* interpreter_; |
1410 | 1403 |
1411 CompilerDispatcher* compiler_dispatcher_; | 1404 CompilerDispatcher* compiler_dispatcher_; |
1412 | 1405 |
1413 typedef std::pair<InterruptCallback, void*> InterruptEntry; | 1406 typedef std::pair<InterruptCallback, void*> InterruptEntry; |
1414 std::queue<InterruptEntry> api_interrupts_queue_; | 1407 std::queue<InterruptEntry> api_interrupts_queue_; |
1415 | 1408 |
1416 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1409 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
1417 type name##_; | 1410 type name##_; |
1418 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 1411 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 | 1695 |
1703 EmbeddedVector<char, 128> filename_; | 1696 EmbeddedVector<char, 128> filename_; |
1704 FILE* file_; | 1697 FILE* file_; |
1705 int scope_depth_; | 1698 int scope_depth_; |
1706 }; | 1699 }; |
1707 | 1700 |
1708 } // namespace internal | 1701 } // namespace internal |
1709 } // namespace v8 | 1702 } // namespace v8 |
1710 | 1703 |
1711 #endif // V8_ISOLATE_H_ | 1704 #endif // V8_ISOLATE_H_ |
OLD | NEW |