Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/isolate.h

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: simplify error handling Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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,
neis 2017/03/17 10:36:32 Nit: keep the name source_url in sync with v8.h (t
gsathya 2017/03/17 21:47:59 Done.
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 regexp_macro_assembler_canonicalize_; 1418 regexp_macro_assembler_canonicalize_;
1413 RegExpStack* regexp_stack_; 1419 RegExpStack* regexp_stack_;
1414 List<int> regexp_indices_; 1420 List<int> regexp_indices_;
1415 DateCache* date_cache_; 1421 DateCache* date_cache_;
1416 CallInterfaceDescriptorData* call_descriptor_data_; 1422 CallInterfaceDescriptorData* call_descriptor_data_;
1417 AccessCompilerData* access_compiler_data_; 1423 AccessCompilerData* access_compiler_data_;
1418 base::RandomNumberGenerator* random_number_generator_; 1424 base::RandomNumberGenerator* random_number_generator_;
1419 base::AtomicValue<RAILMode> rail_mode_; 1425 base::AtomicValue<RAILMode> rail_mode_;
1420 bool promise_hook_or_debug_is_active_; 1426 bool promise_hook_or_debug_is_active_;
1421 PromiseHook promise_hook_; 1427 PromiseHook promise_hook_;
1428 HostImportModuleDynamicallyCallback host_import_module_dynamically_callback_;
1422 base::Mutex rail_mutex_; 1429 base::Mutex rail_mutex_;
1423 double load_start_time_ms_; 1430 double load_start_time_ms_;
1424 1431
1425 // Whether the isolate has been created for snapshotting. 1432 // Whether the isolate has been created for snapshotting.
1426 bool serializer_enabled_; 1433 bool serializer_enabled_;
1427 1434
1428 // True if fatal error has been signaled for this isolate. 1435 // True if fatal error has been signaled for this isolate.
1429 bool has_fatal_error_; 1436 bool has_fatal_error_;
1430 1437
1431 // True if this isolate was initialized from a snapshot. 1438 // True if this isolate was initialized from a snapshot.
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 1767
1761 EmbeddedVector<char, 128> filename_; 1768 EmbeddedVector<char, 128> filename_;
1762 FILE* file_; 1769 FILE* file_;
1763 int scope_depth_; 1770 int scope_depth_;
1764 }; 1771 };
1765 1772
1766 } // namespace internal 1773 } // namespace internal
1767 } // namespace v8 1774 } // namespace v8
1768 1775
1769 #endif // V8_ISOLATE_H_ 1776 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698