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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 DescriptorLookupCache* descriptor_lookup_cache() { | 878 DescriptorLookupCache* descriptor_lookup_cache() { |
879 return descriptor_lookup_cache_; | 879 return descriptor_lookup_cache_; |
880 } | 880 } |
881 | 881 |
882 HandleScopeData* handle_scope_data() { return &handle_scope_data_; } | 882 HandleScopeData* handle_scope_data() { return &handle_scope_data_; } |
883 | 883 |
884 HandleScopeImplementer* handle_scope_implementer() { | 884 HandleScopeImplementer* handle_scope_implementer() { |
885 DCHECK(handle_scope_implementer_); | 885 DCHECK(handle_scope_implementer_); |
886 return handle_scope_implementer_; | 886 return handle_scope_implementer_; |
887 } | 887 } |
888 Zone* runtime_zone() { return runtime_zone_; } | |
889 | 888 |
890 UnicodeCache* unicode_cache() { | 889 UnicodeCache* unicode_cache() { |
891 return unicode_cache_; | 890 return unicode_cache_; |
892 } | 891 } |
893 | 892 |
894 InnerPointerToCodeCache* inner_pointer_to_code_cache() { | 893 InnerPointerToCodeCache* inner_pointer_to_code_cache() { |
895 return inner_pointer_to_code_cache_; | 894 return inner_pointer_to_code_cache_; |
896 } | 895 } |
897 | 896 |
898 GlobalHandles* global_handles() { return global_handles_; } | 897 GlobalHandles* global_handles() { return global_handles_; } |
(...skipping 20 matching lines...) Expand all Loading... |
919 | 918 |
920 bool has_installed_extensions() { return has_installed_extensions_; } | 919 bool has_installed_extensions() { return has_installed_extensions_; } |
921 | 920 |
922 unibrow::Mapping<unibrow::Ecma262Canonicalize>* | 921 unibrow::Mapping<unibrow::Ecma262Canonicalize>* |
923 regexp_macro_assembler_canonicalize() { | 922 regexp_macro_assembler_canonicalize() { |
924 return ®exp_macro_assembler_canonicalize_; | 923 return ®exp_macro_assembler_canonicalize_; |
925 } | 924 } |
926 | 925 |
927 RegExpStack* regexp_stack() { return regexp_stack_; } | 926 RegExpStack* regexp_stack() { return regexp_stack_; } |
928 | 927 |
| 928 // Same size as a zone segment, preserving behavior from the runtime zone. |
| 929 static const size_t kMaxRegexpIndicesSize = 8 * KB; |
| 930 |
| 931 List<int>* regexp_indices() { return ®exp_indices_; } |
| 932 |
929 unibrow::Mapping<unibrow::Ecma262Canonicalize>* | 933 unibrow::Mapping<unibrow::Ecma262Canonicalize>* |
930 interp_canonicalize_mapping() { | 934 interp_canonicalize_mapping() { |
931 return ®exp_macro_assembler_canonicalize_; | 935 return ®exp_macro_assembler_canonicalize_; |
932 } | 936 } |
933 | 937 |
934 Debug* debug() { return debug_; } | 938 Debug* debug() { return debug_; } |
935 | 939 |
936 bool* is_profiling_address() { return &is_profiling_; } | 940 bool* is_profiling_address() { return &is_profiling_; } |
937 CodeEventDispatcher* code_event_dispatcher() const { | 941 CodeEventDispatcher* code_event_dispatcher() const { |
938 return code_event_dispatcher_.get(); | 942 return code_event_dispatcher_.get(); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 bool capture_stack_trace_for_uncaught_exceptions_; | 1322 bool capture_stack_trace_for_uncaught_exceptions_; |
1319 int stack_trace_for_uncaught_exceptions_frame_limit_; | 1323 int stack_trace_for_uncaught_exceptions_frame_limit_; |
1320 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; | 1324 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |
1321 KeyedLookupCache* keyed_lookup_cache_; | 1325 KeyedLookupCache* keyed_lookup_cache_; |
1322 ContextSlotCache* context_slot_cache_; | 1326 ContextSlotCache* context_slot_cache_; |
1323 DescriptorLookupCache* descriptor_lookup_cache_; | 1327 DescriptorLookupCache* descriptor_lookup_cache_; |
1324 HandleScopeData handle_scope_data_; | 1328 HandleScopeData handle_scope_data_; |
1325 HandleScopeImplementer* handle_scope_implementer_; | 1329 HandleScopeImplementer* handle_scope_implementer_; |
1326 UnicodeCache* unicode_cache_; | 1330 UnicodeCache* unicode_cache_; |
1327 AccountingAllocator* allocator_; | 1331 AccountingAllocator* allocator_; |
1328 Zone* runtime_zone_; | |
1329 InnerPointerToCodeCache* inner_pointer_to_code_cache_; | 1332 InnerPointerToCodeCache* inner_pointer_to_code_cache_; |
1330 GlobalHandles* global_handles_; | 1333 GlobalHandles* global_handles_; |
1331 EternalHandles* eternal_handles_; | 1334 EternalHandles* eternal_handles_; |
1332 ThreadManager* thread_manager_; | 1335 ThreadManager* thread_manager_; |
1333 RuntimeState runtime_state_; | 1336 RuntimeState runtime_state_; |
1334 Builtins builtins_; | 1337 Builtins builtins_; |
1335 bool has_installed_extensions_; | 1338 bool has_installed_extensions_; |
1336 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1339 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1337 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1340 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1338 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1341 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1339 regexp_macro_assembler_canonicalize_; | 1342 regexp_macro_assembler_canonicalize_; |
1340 RegExpStack* regexp_stack_; | 1343 RegExpStack* regexp_stack_; |
| 1344 List<int> regexp_indices_; |
1341 DateCache* date_cache_; | 1345 DateCache* date_cache_; |
1342 CallInterfaceDescriptorData* call_descriptor_data_; | 1346 CallInterfaceDescriptorData* call_descriptor_data_; |
1343 base::RandomNumberGenerator* random_number_generator_; | 1347 base::RandomNumberGenerator* random_number_generator_; |
1344 base::AtomicValue<RAILMode> rail_mode_; | 1348 base::AtomicValue<RAILMode> rail_mode_; |
1345 | 1349 |
1346 // Whether the isolate has been created for snapshotting. | 1350 // Whether the isolate has been created for snapshotting. |
1347 bool serializer_enabled_; | 1351 bool serializer_enabled_; |
1348 | 1352 |
1349 // True if fatal error has been signaled for this isolate. | 1353 // True if fatal error has been signaled for this isolate. |
1350 bool has_fatal_error_; | 1354 bool has_fatal_error_; |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 | 1676 |
1673 EmbeddedVector<char, 128> filename_; | 1677 EmbeddedVector<char, 128> filename_; |
1674 FILE* file_; | 1678 FILE* file_; |
1675 int scope_depth_; | 1679 int scope_depth_; |
1676 }; | 1680 }; |
1677 | 1681 |
1678 } // namespace internal | 1682 } // namespace internal |
1679 } // namespace v8 | 1683 } // namespace v8 |
1680 | 1684 |
1681 #endif // V8_ISOLATE_H_ | 1685 #endif // V8_ISOLATE_H_ |
OLD | NEW |