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/execution.h" | 17 #include "src/execution.h" |
18 #include "src/frames.h" | 18 #include "src/frames.h" |
19 #include "src/futex-emulation.h" | 19 #include "src/futex-emulation.h" |
20 #include "src/global-handles.h" | 20 #include "src/global-handles.h" |
21 #include "src/handles.h" | 21 #include "src/handles.h" |
22 #include "src/heap/heap.h" | 22 #include "src/heap/heap.h" |
23 #include "src/messages.h" | 23 #include "src/messages.h" |
24 #include "src/regexp/regexp-stack.h" | 24 #include "src/regexp/regexp-stack.h" |
25 #include "src/runtime/runtime.h" | 25 #include "src/runtime/runtime.h" |
26 #include "src/zone.h" | 26 #include "src/zone/zone.h" |
27 | 27 |
28 namespace v8 { | 28 namespace v8 { |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class AccountingAllocator; | |
32 class RandomNumberGenerator; | 31 class RandomNumberGenerator; |
33 } | 32 } |
34 | 33 |
35 namespace internal { | 34 namespace internal { |
36 | 35 |
37 class BasicBlockProfiler; | 36 class BasicBlockProfiler; |
38 class Bootstrapper; | 37 class Bootstrapper; |
39 class CancelableTaskManager; | 38 class CancelableTaskManager; |
40 class CallInterfaceDescriptorData; | 39 class CallInterfaceDescriptorData; |
41 class CodeAgingHelper; | 40 class CodeAgingHelper; |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1160 interpreter::Interpreter* interpreter() const { return interpreter_; } |
1162 | 1161 |
1163 base::AccountingAllocator* allocator() { return allocator_; } | 1162 AccountingAllocator* allocator() { return allocator_; } |
1164 | 1163 |
1165 bool IsInAnyContext(Object* object, uint32_t index); | 1164 bool IsInAnyContext(Object* object, uint32_t index); |
1166 | 1165 |
1167 void SetRAILMode(RAILMode rail_mode); | 1166 void SetRAILMode(RAILMode rail_mode); |
1168 | 1167 |
1169 void IsolateInForegroundNotification(); | 1168 void IsolateInForegroundNotification(); |
1170 | 1169 |
1171 void IsolateInBackgroundNotification(); | 1170 void IsolateInBackgroundNotification(); |
1172 | 1171 |
1173 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1172 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 ThreadLocalTop thread_local_top_; | 1328 ThreadLocalTop thread_local_top_; |
1330 bool capture_stack_trace_for_uncaught_exceptions_; | 1329 bool capture_stack_trace_for_uncaught_exceptions_; |
1331 int stack_trace_for_uncaught_exceptions_frame_limit_; | 1330 int stack_trace_for_uncaught_exceptions_frame_limit_; |
1332 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; | 1331 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |
1333 KeyedLookupCache* keyed_lookup_cache_; | 1332 KeyedLookupCache* keyed_lookup_cache_; |
1334 ContextSlotCache* context_slot_cache_; | 1333 ContextSlotCache* context_slot_cache_; |
1335 DescriptorLookupCache* descriptor_lookup_cache_; | 1334 DescriptorLookupCache* descriptor_lookup_cache_; |
1336 HandleScopeData handle_scope_data_; | 1335 HandleScopeData handle_scope_data_; |
1337 HandleScopeImplementer* handle_scope_implementer_; | 1336 HandleScopeImplementer* handle_scope_implementer_; |
1338 UnicodeCache* unicode_cache_; | 1337 UnicodeCache* unicode_cache_; |
1339 base::AccountingAllocator* allocator_; | 1338 AccountingAllocator* allocator_; |
1340 Zone* runtime_zone_; | 1339 Zone* runtime_zone_; |
1341 InnerPointerToCodeCache* inner_pointer_to_code_cache_; | 1340 InnerPointerToCodeCache* inner_pointer_to_code_cache_; |
1342 GlobalHandles* global_handles_; | 1341 GlobalHandles* global_handles_; |
1343 EternalHandles* eternal_handles_; | 1342 EternalHandles* eternal_handles_; |
1344 ThreadManager* thread_manager_; | 1343 ThreadManager* thread_manager_; |
1345 RuntimeState runtime_state_; | 1344 RuntimeState runtime_state_; |
1346 Builtins builtins_; | 1345 Builtins builtins_; |
1347 bool has_installed_extensions_; | 1346 bool has_installed_extensions_; |
1348 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1347 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1349 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1348 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 | 1688 |
1690 EmbeddedVector<char, 128> filename_; | 1689 EmbeddedVector<char, 128> filename_; |
1691 FILE* file_; | 1690 FILE* file_; |
1692 int scope_depth_; | 1691 int scope_depth_; |
1693 }; | 1692 }; |
1694 | 1693 |
1695 } // namespace internal | 1694 } // namespace internal |
1696 } // namespace v8 | 1695 } // namespace v8 |
1697 | 1696 |
1698 #endif // V8_ISOLATE_H_ | 1697 #endif // V8_ISOLATE_H_ |
OLD | NEW |