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