| 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 // Clear all optimized code stored in native contexts. | 1194 // Clear all optimized code stored in native contexts. |
| 1195 void ClearOSROptimizedCode(); | 1195 void ClearOSROptimizedCode(); |
| 1196 | 1196 |
| 1197 // Ensure that a particular optimized code is evicted. | 1197 // Ensure that a particular optimized code is evicted. |
| 1198 void EvictOSROptimizedCode(Code* code, const char* reason); | 1198 void EvictOSROptimizedCode(Code* code, const char* reason); |
| 1199 | 1199 |
| 1200 bool IsInAnyContext(Object* object, uint32_t index); | 1200 bool IsInAnyContext(Object* object, uint32_t index); |
| 1201 | 1201 |
| 1202 void SetHostImportModuleDynamicallyCallback( |
| 1203 HostImportModuleDynamicallyCallback callback); |
| 1204 void RunHostImportModuleDynamicallyCallback(Handle<String> referrer, |
| 1205 Handle<String> specifier, |
| 1206 Handle<JSPromise> promise); |
| 1207 |
| 1202 void SetRAILMode(RAILMode rail_mode); | 1208 void SetRAILMode(RAILMode rail_mode); |
| 1203 | 1209 |
| 1204 RAILMode rail_mode() { return rail_mode_.Value(); } | 1210 RAILMode rail_mode() { return rail_mode_.Value(); } |
| 1205 | 1211 |
| 1206 double LoadStartTimeMs(); | 1212 double LoadStartTimeMs(); |
| 1207 | 1213 |
| 1208 void IsolateInForegroundNotification(); | 1214 void IsolateInForegroundNotification(); |
| 1209 | 1215 |
| 1210 void IsolateInBackgroundNotification(); | 1216 void IsolateInBackgroundNotification(); |
| 1211 | 1217 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 regexp_macro_assembler_canonicalize_; | 1428 regexp_macro_assembler_canonicalize_; |
| 1423 RegExpStack* regexp_stack_; | 1429 RegExpStack* regexp_stack_; |
| 1424 List<int> regexp_indices_; | 1430 List<int> regexp_indices_; |
| 1425 DateCache* date_cache_; | 1431 DateCache* date_cache_; |
| 1426 CallInterfaceDescriptorData* call_descriptor_data_; | 1432 CallInterfaceDescriptorData* call_descriptor_data_; |
| 1427 AccessCompilerData* access_compiler_data_; | 1433 AccessCompilerData* access_compiler_data_; |
| 1428 base::RandomNumberGenerator* random_number_generator_; | 1434 base::RandomNumberGenerator* random_number_generator_; |
| 1429 base::AtomicValue<RAILMode> rail_mode_; | 1435 base::AtomicValue<RAILMode> rail_mode_; |
| 1430 bool promise_hook_or_debug_is_active_; | 1436 bool promise_hook_or_debug_is_active_; |
| 1431 PromiseHook promise_hook_; | 1437 PromiseHook promise_hook_; |
| 1438 HostImportModuleDynamicallyCallback host_import_module_dynamically_callback_; |
| 1432 base::Mutex rail_mutex_; | 1439 base::Mutex rail_mutex_; |
| 1433 double load_start_time_ms_; | 1440 double load_start_time_ms_; |
| 1434 | 1441 |
| 1435 // Whether the isolate has been created for snapshotting. | 1442 // Whether the isolate has been created for snapshotting. |
| 1436 bool serializer_enabled_; | 1443 bool serializer_enabled_; |
| 1437 | 1444 |
| 1438 // True if fatal error has been signaled for this isolate. | 1445 // True if fatal error has been signaled for this isolate. |
| 1439 bool has_fatal_error_; | 1446 bool has_fatal_error_; |
| 1440 | 1447 |
| 1441 // True if this isolate was initialized from a snapshot. | 1448 // True if this isolate was initialized from a snapshot. |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 | 1777 |
| 1771 EmbeddedVector<char, 128> filename_; | 1778 EmbeddedVector<char, 128> filename_; |
| 1772 FILE* file_; | 1779 FILE* file_; |
| 1773 int scope_depth_; | 1780 int scope_depth_; |
| 1774 }; | 1781 }; |
| 1775 | 1782 |
| 1776 } // namespace internal | 1783 } // namespace internal |
| 1777 } // namespace v8 | 1784 } // namespace v8 |
| 1778 | 1785 |
| 1779 #endif // V8_ISOLATE_H_ | 1786 #endif // V8_ISOLATE_H_ |
| OLD | NEW |