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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 | 1115 |
1116 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1116 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1117 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1117 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1118 | 1118 |
1119 std::string GetTurboCfgFileName(); | 1119 std::string GetTurboCfgFileName(); |
1120 | 1120 |
1121 #if TRACE_MAPS | 1121 #if TRACE_MAPS |
1122 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } | 1122 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } |
1123 #endif | 1123 #endif |
1124 | 1124 |
| 1125 void DebugStateChanged(); |
| 1126 |
| 1127 Address promise_hook_or_debug_is_active_address() { |
| 1128 return reinterpret_cast<Address>(&promise_hook_or_debug_is_active_); |
| 1129 } |
| 1130 |
1125 Address promise_hook_address() { | 1131 Address promise_hook_address() { |
1126 return reinterpret_cast<Address>(&promise_hook_); | 1132 return reinterpret_cast<Address>(&promise_hook_); |
1127 } | 1133 } |
1128 void SetPromiseHook(PromiseHook hook); | 1134 void SetPromiseHook(PromiseHook hook); |
1129 void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, | 1135 void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, |
1130 Handle<Object> parent); | 1136 Handle<Object> parent); |
1131 | 1137 |
1132 // Support for dynamically disabling tail call elimination. | 1138 // Support for dynamically disabling tail call elimination. |
1133 Address is_tail_call_elimination_enabled_address() { | 1139 Address is_tail_call_elimination_enabled_address() { |
1134 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); | 1140 return reinterpret_cast<Address>(&is_tail_call_elimination_enabled_); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1366 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1361 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1367 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1362 regexp_macro_assembler_canonicalize_; | 1368 regexp_macro_assembler_canonicalize_; |
1363 RegExpStack* regexp_stack_; | 1369 RegExpStack* regexp_stack_; |
1364 List<int> regexp_indices_; | 1370 List<int> regexp_indices_; |
1365 DateCache* date_cache_; | 1371 DateCache* date_cache_; |
1366 CallInterfaceDescriptorData* call_descriptor_data_; | 1372 CallInterfaceDescriptorData* call_descriptor_data_; |
1367 AccessCompilerData* access_compiler_data_; | 1373 AccessCompilerData* access_compiler_data_; |
1368 base::RandomNumberGenerator* random_number_generator_; | 1374 base::RandomNumberGenerator* random_number_generator_; |
1369 base::AtomicValue<RAILMode> rail_mode_; | 1375 base::AtomicValue<RAILMode> rail_mode_; |
| 1376 bool promise_hook_or_debug_is_active_; |
1370 PromiseHook promise_hook_; | 1377 PromiseHook promise_hook_; |
1371 base::Mutex rail_mutex_; | 1378 base::Mutex rail_mutex_; |
1372 double load_start_time_ms_; | 1379 double load_start_time_ms_; |
1373 | 1380 |
1374 // Whether the isolate has been created for snapshotting. | 1381 // Whether the isolate has been created for snapshotting. |
1375 bool serializer_enabled_; | 1382 bool serializer_enabled_; |
1376 | 1383 |
1377 // True if fatal error has been signaled for this isolate. | 1384 // True if fatal error has been signaled for this isolate. |
1378 bool has_fatal_error_; | 1385 bool has_fatal_error_; |
1379 | 1386 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 | 1708 |
1702 EmbeddedVector<char, 128> filename_; | 1709 EmbeddedVector<char, 128> filename_; |
1703 FILE* file_; | 1710 FILE* file_; |
1704 int scope_depth_; | 1711 int scope_depth_; |
1705 }; | 1712 }; |
1706 | 1713 |
1707 } // namespace internal | 1714 } // namespace internal |
1708 } // namespace v8 | 1715 } // namespace v8 |
1709 | 1716 |
1710 #endif // V8_ISOLATE_H_ | 1717 #endif // V8_ISOLATE_H_ |
OLD | NEW |