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 28 matching lines...) Expand all Loading... |
39 class Bootstrapper; | 39 class Bootstrapper; |
40 class CancelableTaskManager; | 40 class CancelableTaskManager; |
41 class CallInterfaceDescriptorData; | 41 class CallInterfaceDescriptorData; |
42 class CodeAgingHelper; | 42 class CodeAgingHelper; |
43 class CodeEventDispatcher; | 43 class CodeEventDispatcher; |
44 class CodeGenerator; | 44 class CodeGenerator; |
45 class CodeRange; | 45 class CodeRange; |
46 class CodeStubDescriptor; | 46 class CodeStubDescriptor; |
47 class CodeTracer; | 47 class CodeTracer; |
48 class CompilationCache; | 48 class CompilationCache; |
49 class CompilerDispatcherTracer; | 49 class CompilerDispatcher; |
50 class CompilationStatistics; | 50 class CompilationStatistics; |
51 class ContextSlotCache; | 51 class ContextSlotCache; |
52 class Counters; | 52 class Counters; |
53 class CpuFeatures; | 53 class CpuFeatures; |
54 class CpuProfiler; | 54 class CpuProfiler; |
55 class DeoptimizerData; | 55 class DeoptimizerData; |
56 class DescriptorLookupCache; | 56 class DescriptorLookupCache; |
57 class Deserializer; | 57 class Deserializer; |
58 class EmptyStatement; | 58 class EmptyStatement; |
59 class ExternalCallbackScope; | 59 class ExternalCallbackScope; |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } | 1154 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } |
1155 | 1155 |
1156 CancelableTaskManager* cancelable_task_manager() { | 1156 CancelableTaskManager* cancelable_task_manager() { |
1157 return cancelable_task_manager_; | 1157 return cancelable_task_manager_; |
1158 } | 1158 } |
1159 | 1159 |
1160 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1160 interpreter::Interpreter* interpreter() const { return interpreter_; } |
1161 | 1161 |
1162 AccountingAllocator* allocator() { return allocator_; } | 1162 AccountingAllocator* allocator() { return allocator_; } |
1163 | 1163 |
1164 CompilerDispatcherTracer* compiler_dispatcher_tracer() const { | 1164 CompilerDispatcher* compiler_dispatcher() const { |
1165 return compiler_dispatcher_tracer_; | 1165 return compiler_dispatcher_; |
1166 } | 1166 } |
1167 | 1167 |
1168 // Clear all optimized code stored in native contexts. | 1168 // Clear all optimized code stored in native contexts. |
1169 void ClearOSROptimizedCode(); | 1169 void ClearOSROptimizedCode(); |
1170 | 1170 |
1171 // Ensure that a particular optimized code is evicted. | 1171 // Ensure that a particular optimized code is evicted. |
1172 void EvictOSROptimizedCode(Code* code, const char* reason); | 1172 void EvictOSROptimizedCode(Code* code, const char* reason); |
1173 | 1173 |
1174 bool IsInAnyContext(Object* object, uint32_t index); | 1174 bool IsInAnyContext(Object* object, uint32_t index); |
1175 | 1175 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 #endif | 1390 #endif |
1391 | 1391 |
1392 Debug* debug_; | 1392 Debug* debug_; |
1393 CpuProfiler* cpu_profiler_; | 1393 CpuProfiler* cpu_profiler_; |
1394 HeapProfiler* heap_profiler_; | 1394 HeapProfiler* heap_profiler_; |
1395 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_; | 1395 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_; |
1396 FunctionEntryHook function_entry_hook_; | 1396 FunctionEntryHook function_entry_hook_; |
1397 | 1397 |
1398 interpreter::Interpreter* interpreter_; | 1398 interpreter::Interpreter* interpreter_; |
1399 | 1399 |
1400 CompilerDispatcherTracer* compiler_dispatcher_tracer_; | 1400 CompilerDispatcher* compiler_dispatcher_; |
1401 | 1401 |
1402 typedef std::pair<InterruptCallback, void*> InterruptEntry; | 1402 typedef std::pair<InterruptCallback, void*> InterruptEntry; |
1403 std::queue<InterruptEntry> api_interrupts_queue_; | 1403 std::queue<InterruptEntry> api_interrupts_queue_; |
1404 | 1404 |
1405 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1405 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
1406 type name##_; | 1406 type name##_; |
1407 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 1407 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
1408 #undef GLOBAL_BACKING_STORE | 1408 #undef GLOBAL_BACKING_STORE |
1409 | 1409 |
1410 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ | 1410 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 | 1691 |
1692 EmbeddedVector<char, 128> filename_; | 1692 EmbeddedVector<char, 128> filename_; |
1693 FILE* file_; | 1693 FILE* file_; |
1694 int scope_depth_; | 1694 int scope_depth_; |
1695 }; | 1695 }; |
1696 | 1696 |
1697 } // namespace internal | 1697 } // namespace internal |
1698 } // namespace v8 | 1698 } // namespace v8 |
1699 | 1699 |
1700 #endif // V8_ISOLATE_H_ | 1700 #endif // V8_ISOLATE_H_ |
OLD | NEW |