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 |
11 #include "include/v8-debug.h" | 11 #include "include/v8-debug.h" |
12 #include "src/allocation.h" | 12 #include "src/allocation.h" |
13 #include "src/base/atomicops.h" | 13 #include "src/base/atomicops.h" |
14 #include "src/builtins/builtins.h" | 14 #include "src/builtins/builtins.h" |
15 #include "src/contexts.h" | 15 #include "src/contexts.h" |
16 #include "src/date.h" | 16 #include "src/date.h" |
17 #include "src/debug/debug-interface.h" | 17 #include "src/debug/debug-interface.h" |
18 #include "src/execution.h" | 18 #include "src/execution.h" |
19 #include "src/frames.h" | 19 #include "src/frames.h" |
20 #include "src/futex-emulation.h" | 20 #include "src/futex-emulation.h" |
21 #include "src/global-handles.h" | 21 #include "src/global-handles.h" |
22 #include "src/handles.h" | 22 #include "src/handles.h" |
23 #include "src/heap/heap.h" | 23 #include "src/heap/heap.h" |
24 #include "src/messages.h" | 24 #include "src/messages.h" |
25 #include "src/regexp/regexp-stack.h" | 25 #include "src/regexp/regexp-stack.h" |
26 #include "src/runtime/runtime.h" | 26 #include "src/runtime/runtime.h" |
27 #include "src/zone/zone.h" | 27 #include "src/zone/zone.h" |
28 | 28 |
29 class TestIsolate; | |
30 | |
31 namespace v8 { | 29 namespace v8 { |
32 | 30 |
33 namespace base { | 31 namespace base { |
34 class RandomNumberGenerator; | 32 class RandomNumberGenerator; |
35 } | 33 } |
36 | 34 |
37 namespace debug { | 35 namespace debug { |
38 class ConsoleDelegate; | 36 class ConsoleDelegate; |
39 } | 37 } |
40 | 38 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 class HStatistics; | 71 class HStatistics; |
74 class HTracer; | 72 class HTracer; |
75 class InlineRuntimeFunctionsTable; | 73 class InlineRuntimeFunctionsTable; |
76 class InnerPointerToCodeCache; | 74 class InnerPointerToCodeCache; |
77 class Logger; | 75 class Logger; |
78 class MaterializedObjectStore; | 76 class MaterializedObjectStore; |
79 class OptimizingCompileDispatcher; | 77 class OptimizingCompileDispatcher; |
80 class RegExpStack; | 78 class RegExpStack; |
81 class RuntimeProfiler; | 79 class RuntimeProfiler; |
82 class SaveContext; | 80 class SaveContext; |
83 class SetupIsolateDelegate; | |
84 class StatsTable; | 81 class StatsTable; |
85 class StringTracker; | 82 class StringTracker; |
86 class StubCache; | 83 class StubCache; |
87 class SweeperThread; | 84 class SweeperThread; |
88 class ThreadManager; | 85 class ThreadManager; |
89 class ThreadState; | 86 class ThreadState; |
90 class ThreadVisitor; // Defined in v8threads.h | 87 class ThreadVisitor; // Defined in v8threads.h |
91 class UnicodeCache; | 88 class UnicodeCache; |
92 template <StateTag Tag> class VMState; | 89 template <StateTag Tag> class VMState; |
93 | 90 |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 HandleScopeData handle_scope_data_; | 1424 HandleScopeData handle_scope_data_; |
1428 HandleScopeImplementer* handle_scope_implementer_; | 1425 HandleScopeImplementer* handle_scope_implementer_; |
1429 UnicodeCache* unicode_cache_; | 1426 UnicodeCache* unicode_cache_; |
1430 AccountingAllocator* allocator_; | 1427 AccountingAllocator* allocator_; |
1431 InnerPointerToCodeCache* inner_pointer_to_code_cache_; | 1428 InnerPointerToCodeCache* inner_pointer_to_code_cache_; |
1432 GlobalHandles* global_handles_; | 1429 GlobalHandles* global_handles_; |
1433 EternalHandles* eternal_handles_; | 1430 EternalHandles* eternal_handles_; |
1434 ThreadManager* thread_manager_; | 1431 ThreadManager* thread_manager_; |
1435 RuntimeState runtime_state_; | 1432 RuntimeState runtime_state_; |
1436 Builtins builtins_; | 1433 Builtins builtins_; |
1437 SetupIsolateDelegate* setup_delegate_; | |
1438 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1434 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1439 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1435 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1440 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1436 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1441 regexp_macro_assembler_canonicalize_; | 1437 regexp_macro_assembler_canonicalize_; |
1442 RegExpStack* regexp_stack_; | 1438 RegExpStack* regexp_stack_; |
1443 List<int> regexp_indices_; | 1439 List<int> regexp_indices_; |
1444 DateCache* date_cache_; | 1440 DateCache* date_cache_; |
1445 CallInterfaceDescriptorData* call_descriptor_data_; | 1441 CallInterfaceDescriptorData* call_descriptor_data_; |
1446 AccessCompilerData* access_compiler_data_; | 1442 AccessCompilerData* access_compiler_data_; |
1447 base::RandomNumberGenerator* random_number_generator_; | 1443 base::RandomNumberGenerator* random_number_generator_; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 friend class OptimizingCompileDispatcher; | 1564 friend class OptimizingCompileDispatcher; |
1569 friend class SweeperThread; | 1565 friend class SweeperThread; |
1570 friend class ThreadManager; | 1566 friend class ThreadManager; |
1571 friend class Simulator; | 1567 friend class Simulator; |
1572 friend class StackGuard; | 1568 friend class StackGuard; |
1573 friend class ThreadId; | 1569 friend class ThreadId; |
1574 friend class v8::Isolate; | 1570 friend class v8::Isolate; |
1575 friend class v8::Locker; | 1571 friend class v8::Locker; |
1576 friend class v8::Unlocker; | 1572 friend class v8::Unlocker; |
1577 friend class v8::SnapshotCreator; | 1573 friend class v8::SnapshotCreator; |
1578 friend class ::TestIsolate; | |
1579 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*); | 1574 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*); |
1580 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, | 1575 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, |
1581 const char*); | 1576 const char*); |
1582 | 1577 |
1583 DISALLOW_COPY_AND_ASSIGN(Isolate); | 1578 DISALLOW_COPY_AND_ASSIGN(Isolate); |
1584 }; | 1579 }; |
1585 | 1580 |
1586 | 1581 |
1587 #undef FIELD_ACCESSOR | 1582 #undef FIELD_ACCESSOR |
1588 #undef THREAD_LOCAL_TOP_ACCESSOR | 1583 #undef THREAD_LOCAL_TOP_ACCESSOR |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 | 1787 |
1793 EmbeddedVector<char, 128> filename_; | 1788 EmbeddedVector<char, 128> filename_; |
1794 FILE* file_; | 1789 FILE* file_; |
1795 int scope_depth_; | 1790 int scope_depth_; |
1796 }; | 1791 }; |
1797 | 1792 |
1798 } // namespace internal | 1793 } // namespace internal |
1799 } // namespace v8 | 1794 } // namespace v8 |
1800 | 1795 |
1801 #endif // V8_ISOLATE_H_ | 1796 #endif // V8_ISOLATE_H_ |
OLD | NEW |