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