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 | |
29 namespace v8 { | 31 namespace v8 { |
30 | 32 |
31 namespace base { | 33 namespace base { |
32 class RandomNumberGenerator; | 34 class RandomNumberGenerator; |
33 } | 35 } |
34 | 36 |
35 namespace internal { | 37 namespace internal { |
36 | 38 |
37 class AccessCompilerData; | 39 class AccessCompilerData; |
38 class AddressToIndexHashMap; | 40 class AddressToIndexHashMap; |
(...skipping 28 matching lines...) Expand all Loading... | |
67 class HStatistics; | 69 class HStatistics; |
68 class HTracer; | 70 class HTracer; |
69 class InlineRuntimeFunctionsTable; | 71 class InlineRuntimeFunctionsTable; |
70 class InnerPointerToCodeCache; | 72 class InnerPointerToCodeCache; |
71 class Logger; | 73 class Logger; |
72 class MaterializedObjectStore; | 74 class MaterializedObjectStore; |
73 class OptimizingCompileDispatcher; | 75 class OptimizingCompileDispatcher; |
74 class RegExpStack; | 76 class RegExpStack; |
75 class RuntimeProfiler; | 77 class RuntimeProfiler; |
76 class SaveContext; | 78 class SaveContext; |
79 class SetupBuiltinsDelegate; | |
77 class StatsTable; | 80 class StatsTable; |
78 class StringTracker; | 81 class StringTracker; |
79 class StubCache; | 82 class StubCache; |
80 class SweeperThread; | 83 class SweeperThread; |
81 class ThreadManager; | 84 class ThreadManager; |
82 class ThreadState; | 85 class ThreadState; |
83 class ThreadVisitor; // Defined in v8threads.h | 86 class ThreadVisitor; // Defined in v8threads.h |
84 class UnicodeCache; | 87 class UnicodeCache; |
85 template <StateTag Tag> class VMState; | 88 template <StateTag Tag> class VMState; |
86 | 89 |
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1409 HandleScopeData handle_scope_data_; | 1412 HandleScopeData handle_scope_data_; |
1410 HandleScopeImplementer* handle_scope_implementer_; | 1413 HandleScopeImplementer* handle_scope_implementer_; |
1411 UnicodeCache* unicode_cache_; | 1414 UnicodeCache* unicode_cache_; |
1412 AccountingAllocator* allocator_; | 1415 AccountingAllocator* allocator_; |
1413 InnerPointerToCodeCache* inner_pointer_to_code_cache_; | 1416 InnerPointerToCodeCache* inner_pointer_to_code_cache_; |
1414 GlobalHandles* global_handles_; | 1417 GlobalHandles* global_handles_; |
1415 EternalHandles* eternal_handles_; | 1418 EternalHandles* eternal_handles_; |
1416 ThreadManager* thread_manager_; | 1419 ThreadManager* thread_manager_; |
1417 RuntimeState runtime_state_; | 1420 RuntimeState runtime_state_; |
1418 Builtins builtins_; | 1421 Builtins builtins_; |
1422 SetupBuiltinsDelegate* setup_builtins_delegate_; | |
Jakob Kummerow
2017/03/21 16:38:00
The only reason we need this Delegate is so that t
| |
1419 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1423 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1420 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1424 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1421 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1425 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1422 regexp_macro_assembler_canonicalize_; | 1426 regexp_macro_assembler_canonicalize_; |
1423 RegExpStack* regexp_stack_; | 1427 RegExpStack* regexp_stack_; |
1424 List<int> regexp_indices_; | 1428 List<int> regexp_indices_; |
1425 DateCache* date_cache_; | 1429 DateCache* date_cache_; |
1426 CallInterfaceDescriptorData* call_descriptor_data_; | 1430 CallInterfaceDescriptorData* call_descriptor_data_; |
1427 AccessCompilerData* access_compiler_data_; | 1431 AccessCompilerData* access_compiler_data_; |
1428 base::RandomNumberGenerator* random_number_generator_; | 1432 base::RandomNumberGenerator* random_number_generator_; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1547 friend class OptimizingCompileDispatcher; | 1551 friend class OptimizingCompileDispatcher; |
1548 friend class SweeperThread; | 1552 friend class SweeperThread; |
1549 friend class ThreadManager; | 1553 friend class ThreadManager; |
1550 friend class Simulator; | 1554 friend class Simulator; |
1551 friend class StackGuard; | 1555 friend class StackGuard; |
1552 friend class ThreadId; | 1556 friend class ThreadId; |
1553 friend class v8::Isolate; | 1557 friend class v8::Isolate; |
1554 friend class v8::Locker; | 1558 friend class v8::Locker; |
1555 friend class v8::Unlocker; | 1559 friend class v8::Unlocker; |
1556 friend class v8::SnapshotCreator; | 1560 friend class v8::SnapshotCreator; |
1561 friend class ::TestIsolate; | |
1557 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*); | 1562 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*); |
1558 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, | 1563 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, |
1559 const char*); | 1564 const char*); |
1560 | 1565 |
1561 DISALLOW_COPY_AND_ASSIGN(Isolate); | 1566 DISALLOW_COPY_AND_ASSIGN(Isolate); |
1562 }; | 1567 }; |
1563 | 1568 |
1564 | 1569 |
1565 #undef FIELD_ACCESSOR | 1570 #undef FIELD_ACCESSOR |
1566 #undef THREAD_LOCAL_TOP_ACCESSOR | 1571 #undef THREAD_LOCAL_TOP_ACCESSOR |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1770 | 1775 |
1771 EmbeddedVector<char, 128> filename_; | 1776 EmbeddedVector<char, 128> filename_; |
1772 FILE* file_; | 1777 FILE* file_; |
1773 int scope_depth_; | 1778 int scope_depth_; |
1774 }; | 1779 }; |
1775 | 1780 |
1776 } // namespace internal | 1781 } // namespace internal |
1777 } // namespace v8 | 1782 } // namespace v8 |
1778 | 1783 |
1779 #endif // V8_ISOLATE_H_ | 1784 #endif // V8_ISOLATE_H_ |
OLD | NEW |