| 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 // Clear all optimized code stored in native contexts. | 1213 // Clear all optimized code stored in native contexts. |
| 1214 void ClearOSROptimizedCode(); | 1214 void ClearOSROptimizedCode(); |
| 1215 | 1215 |
| 1216 // Ensure that a particular optimized code is evicted. | 1216 // Ensure that a particular optimized code is evicted. |
| 1217 void EvictOSROptimizedCode(Code* code, const char* reason); | 1217 void EvictOSROptimizedCode(Code* code, const char* reason); |
| 1218 | 1218 |
| 1219 bool IsInAnyContext(Object* object, uint32_t index); | 1219 bool IsInAnyContext(Object* object, uint32_t index); |
| 1220 | 1220 |
| 1221 void SetHostImportModuleDynamicallyCallback( |
| 1222 HostImportModuleDynamicallyCallback callback); |
| 1223 void RunHostImportModuleDynamicallyCallback(Handle<String> referrer, |
| 1224 Handle<String> specifier, |
| 1225 Handle<JSPromise> promise); |
| 1226 |
| 1221 void SetRAILMode(RAILMode rail_mode); | 1227 void SetRAILMode(RAILMode rail_mode); |
| 1222 | 1228 |
| 1223 RAILMode rail_mode() { return rail_mode_.Value(); } | 1229 RAILMode rail_mode() { return rail_mode_.Value(); } |
| 1224 | 1230 |
| 1225 double LoadStartTimeMs(); | 1231 double LoadStartTimeMs(); |
| 1226 | 1232 |
| 1227 void IsolateInForegroundNotification(); | 1233 void IsolateInForegroundNotification(); |
| 1228 | 1234 |
| 1229 void IsolateInBackgroundNotification(); | 1235 void IsolateInBackgroundNotification(); |
| 1230 | 1236 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 regexp_macro_assembler_canonicalize_; | 1448 regexp_macro_assembler_canonicalize_; |
| 1443 RegExpStack* regexp_stack_; | 1449 RegExpStack* regexp_stack_; |
| 1444 List<int> regexp_indices_; | 1450 List<int> regexp_indices_; |
| 1445 DateCache* date_cache_; | 1451 DateCache* date_cache_; |
| 1446 CallInterfaceDescriptorData* call_descriptor_data_; | 1452 CallInterfaceDescriptorData* call_descriptor_data_; |
| 1447 AccessCompilerData* access_compiler_data_; | 1453 AccessCompilerData* access_compiler_data_; |
| 1448 base::RandomNumberGenerator* random_number_generator_; | 1454 base::RandomNumberGenerator* random_number_generator_; |
| 1449 base::AtomicValue<RAILMode> rail_mode_; | 1455 base::AtomicValue<RAILMode> rail_mode_; |
| 1450 bool promise_hook_or_debug_is_active_; | 1456 bool promise_hook_or_debug_is_active_; |
| 1451 PromiseHook promise_hook_; | 1457 PromiseHook promise_hook_; |
| 1458 HostImportModuleDynamicallyCallback host_import_module_dynamically_callback_; |
| 1452 base::Mutex rail_mutex_; | 1459 base::Mutex rail_mutex_; |
| 1453 double load_start_time_ms_; | 1460 double load_start_time_ms_; |
| 1454 | 1461 |
| 1455 // Whether the isolate has been created for snapshotting. | 1462 // Whether the isolate has been created for snapshotting. |
| 1456 bool serializer_enabled_; | 1463 bool serializer_enabled_; |
| 1457 | 1464 |
| 1458 // True if fatal error has been signaled for this isolate. | 1465 // True if fatal error has been signaled for this isolate. |
| 1459 bool has_fatal_error_; | 1466 bool has_fatal_error_; |
| 1460 | 1467 |
| 1461 // True if this isolate was initialized from a snapshot. | 1468 // True if this isolate was initialized from a snapshot. |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 | 1798 |
| 1792 EmbeddedVector<char, 128> filename_; | 1799 EmbeddedVector<char, 128> filename_; |
| 1793 FILE* file_; | 1800 FILE* file_; |
| 1794 int scope_depth_; | 1801 int scope_depth_; |
| 1795 }; | 1802 }; |
| 1796 | 1803 |
| 1797 } // namespace internal | 1804 } // namespace internal |
| 1798 } // namespace v8 | 1805 } // namespace v8 |
| 1799 | 1806 |
| 1800 #endif // V8_ISOLATE_H_ | 1807 #endif // V8_ISOLATE_H_ |
| OLD | NEW |