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; | 31 class AccountingAllocator; |
32 class RandomNumberGenerator; | 32 class RandomNumberGenerator; |
33 } | 33 } |
34 | 34 |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 } | 1151 } |
1152 | 1152 |
1153 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } | 1153 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } |
1154 | 1154 |
1155 CancelableTaskManager* cancelable_task_manager() { | 1155 CancelableTaskManager* cancelable_task_manager() { |
1156 return cancelable_task_manager_; | 1156 return cancelable_task_manager_; |
1157 } | 1157 } |
1158 | 1158 |
1159 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1159 interpreter::Interpreter* interpreter() const { return interpreter_; } |
1160 | 1160 |
1161 base::AccountingAllocator* allocator() { return allocator_; } | 1161 AccountingAllocator* allocator() { return allocator_; } |
1162 | 1162 |
1163 bool IsInAnyContext(Object* object, uint32_t index); | 1163 bool IsInAnyContext(Object* object, uint32_t index); |
1164 | 1164 |
1165 void SetRAILMode(RAILMode rail_mode); | 1165 void SetRAILMode(RAILMode rail_mode); |
1166 | 1166 |
1167 void IsolateInForegroundNotification(); | 1167 void IsolateInForegroundNotification(); |
1168 | 1168 |
1169 void IsolateInBackgroundNotification(); | 1169 void IsolateInBackgroundNotification(); |
1170 | 1170 |
1171 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1171 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 ThreadLocalTop thread_local_top_; | 1327 ThreadLocalTop thread_local_top_; |
1328 bool capture_stack_trace_for_uncaught_exceptions_; | 1328 bool capture_stack_trace_for_uncaught_exceptions_; |
1329 int stack_trace_for_uncaught_exceptions_frame_limit_; | 1329 int stack_trace_for_uncaught_exceptions_frame_limit_; |
1330 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; | 1330 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |
1331 KeyedLookupCache* keyed_lookup_cache_; | 1331 KeyedLookupCache* keyed_lookup_cache_; |
1332 ContextSlotCache* context_slot_cache_; | 1332 ContextSlotCache* context_slot_cache_; |
1333 DescriptorLookupCache* descriptor_lookup_cache_; | 1333 DescriptorLookupCache* descriptor_lookup_cache_; |
1334 HandleScopeData handle_scope_data_; | 1334 HandleScopeData handle_scope_data_; |
1335 HandleScopeImplementer* handle_scope_implementer_; | 1335 HandleScopeImplementer* handle_scope_implementer_; |
1336 UnicodeCache* unicode_cache_; | 1336 UnicodeCache* unicode_cache_; |
1337 base::AccountingAllocator* allocator_; | 1337 AccountingAllocator* allocator_; |
1338 Zone* runtime_zone_; | 1338 Zone* runtime_zone_; |
1339 InnerPointerToCodeCache* inner_pointer_to_code_cache_; | 1339 InnerPointerToCodeCache* inner_pointer_to_code_cache_; |
1340 GlobalHandles* global_handles_; | 1340 GlobalHandles* global_handles_; |
1341 EternalHandles* eternal_handles_; | 1341 EternalHandles* eternal_handles_; |
1342 ThreadManager* thread_manager_; | 1342 ThreadManager* thread_manager_; |
1343 RuntimeState runtime_state_; | 1343 RuntimeState runtime_state_; |
1344 Builtins builtins_; | 1344 Builtins builtins_; |
1345 bool has_installed_extensions_; | 1345 bool has_installed_extensions_; |
1346 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1346 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1347 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1347 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 | 1687 |
1688 EmbeddedVector<char, 128> filename_; | 1688 EmbeddedVector<char, 128> filename_; |
1689 FILE* file_; | 1689 FILE* file_; |
1690 int scope_depth_; | 1690 int scope_depth_; |
1691 }; | 1691 }; |
1692 | 1692 |
1693 } // namespace internal | 1693 } // namespace internal |
1694 } // namespace v8 | 1694 } // namespace v8 |
1695 | 1695 |
1696 #endif // V8_ISOLATE_H_ | 1696 #endif // V8_ISOLATE_H_ |
OLD | NEW |