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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1182 } | 1182 } |
1183 | 1183 |
1184 // Clear all optimized code stored in native contexts. | 1184 // Clear all optimized code stored in native contexts. |
1185 void ClearOSROptimizedCode(); | 1185 void ClearOSROptimizedCode(); |
1186 | 1186 |
1187 // Ensure that a particular optimized code is evicted. | 1187 // Ensure that a particular optimized code is evicted. |
1188 void EvictOSROptimizedCode(Code* code, const char* reason); | 1188 void EvictOSROptimizedCode(Code* code, const char* reason); |
1189 | 1189 |
1190 bool IsInAnyContext(Object* object, uint32_t index); | 1190 bool IsInAnyContext(Object* object, uint32_t index); |
1191 | 1191 |
| 1192 void SetHostImportModuleDynamicallyCallback( |
| 1193 HostImportModuleDynamicallyCallback callback); |
| 1194 void RunHostImportModuleDynamicallyCallback(Handle<String> source_url, |
| 1195 Handle<String> specifier, |
| 1196 Handle<JSPromise> promise); |
| 1197 |
1192 void SetRAILMode(RAILMode rail_mode); | 1198 void SetRAILMode(RAILMode rail_mode); |
1193 | 1199 |
1194 RAILMode rail_mode() { return rail_mode_.Value(); } | 1200 RAILMode rail_mode() { return rail_mode_.Value(); } |
1195 | 1201 |
1196 double LoadStartTimeMs(); | 1202 double LoadStartTimeMs(); |
1197 | 1203 |
1198 void IsolateInForegroundNotification(); | 1204 void IsolateInForegroundNotification(); |
1199 | 1205 |
1200 void IsolateInBackgroundNotification(); | 1206 void IsolateInBackgroundNotification(); |
1201 | 1207 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 regexp_macro_assembler_canonicalize_; | 1417 regexp_macro_assembler_canonicalize_; |
1412 RegExpStack* regexp_stack_; | 1418 RegExpStack* regexp_stack_; |
1413 List<int> regexp_indices_; | 1419 List<int> regexp_indices_; |
1414 DateCache* date_cache_; | 1420 DateCache* date_cache_; |
1415 CallInterfaceDescriptorData* call_descriptor_data_; | 1421 CallInterfaceDescriptorData* call_descriptor_data_; |
1416 AccessCompilerData* access_compiler_data_; | 1422 AccessCompilerData* access_compiler_data_; |
1417 base::RandomNumberGenerator* random_number_generator_; | 1423 base::RandomNumberGenerator* random_number_generator_; |
1418 base::AtomicValue<RAILMode> rail_mode_; | 1424 base::AtomicValue<RAILMode> rail_mode_; |
1419 bool promise_hook_or_debug_is_active_; | 1425 bool promise_hook_or_debug_is_active_; |
1420 PromiseHook promise_hook_; | 1426 PromiseHook promise_hook_; |
| 1427 HostImportModuleDynamicallyCallback host_import_module_dynamically_callback_; |
1421 base::Mutex rail_mutex_; | 1428 base::Mutex rail_mutex_; |
1422 double load_start_time_ms_; | 1429 double load_start_time_ms_; |
1423 | 1430 |
1424 // Whether the isolate has been created for snapshotting. | 1431 // Whether the isolate has been created for snapshotting. |
1425 bool serializer_enabled_; | 1432 bool serializer_enabled_; |
1426 | 1433 |
1427 // True if fatal error has been signaled for this isolate. | 1434 // True if fatal error has been signaled for this isolate. |
1428 bool has_fatal_error_; | 1435 bool has_fatal_error_; |
1429 | 1436 |
1430 // True if this isolate was initialized from a snapshot. | 1437 // True if this isolate was initialized from a snapshot. |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 | 1764 |
1758 EmbeddedVector<char, 128> filename_; | 1765 EmbeddedVector<char, 128> filename_; |
1759 FILE* file_; | 1766 FILE* file_; |
1760 int scope_depth_; | 1767 int scope_depth_; |
1761 }; | 1768 }; |
1762 | 1769 |
1763 } // namespace internal | 1770 } // namespace internal |
1764 } // namespace v8 | 1771 } // namespace v8 |
1765 | 1772 |
1766 #endif // V8_ISOLATE_H_ | 1773 #endif // V8_ISOLATE_H_ |
OLD | NEW |