| 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 #include <set> | 10 #include <set> |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 bool PropagatePendingExceptionToExternalTryCatch(); | 1246 bool PropagatePendingExceptionToExternalTryCatch(); |
| 1247 | 1247 |
| 1248 // Remove per-frame stored materialized objects when we are unwinding | 1248 // Remove per-frame stored materialized objects when we are unwinding |
| 1249 // the frame. | 1249 // the frame. |
| 1250 void RemoveMaterializedObjectsOnUnwind(StackFrame* frame); | 1250 void RemoveMaterializedObjectsOnUnwind(StackFrame* frame); |
| 1251 | 1251 |
| 1252 void RunMicrotasksInternal(); | 1252 void RunMicrotasksInternal(); |
| 1253 | 1253 |
| 1254 const char* RAILModeName(RAILMode rail_mode) const { | 1254 const char* RAILModeName(RAILMode rail_mode) const { |
| 1255 switch (rail_mode) { | 1255 switch (rail_mode) { |
| 1256 case PERFORMANCE_DEFAULT: | |
| 1257 return "DEFAULT"; | |
| 1258 case PERFORMANCE_RESPONSE: | 1256 case PERFORMANCE_RESPONSE: |
| 1259 return "RESPONSE"; | 1257 return "RESPONSE"; |
| 1260 case PERFORMANCE_ANIMATION: | 1258 case PERFORMANCE_ANIMATION: |
| 1261 return "ANIMATION"; | 1259 return "ANIMATION"; |
| 1262 case PERFORMANCE_IDLE: | 1260 case PERFORMANCE_IDLE: |
| 1263 return "IDLE"; | 1261 return "IDLE"; |
| 1264 case PERFORMANCE_LOAD: | 1262 case PERFORMANCE_LOAD: |
| 1265 return "LOAD"; | 1263 return "LOAD"; |
| 1266 default: | |
| 1267 UNREACHABLE(); | |
| 1268 } | 1264 } |
| 1269 return ""; | 1265 return ""; |
| 1270 } | 1266 } |
| 1271 | 1267 |
| 1272 base::Atomic32 id_; | 1268 base::Atomic32 id_; |
| 1273 EntryStackItem* entry_stack_; | 1269 EntryStackItem* entry_stack_; |
| 1274 int stack_trace_nesting_level_; | 1270 int stack_trace_nesting_level_; |
| 1275 StringStream* incomplete_message_; | 1271 StringStream* incomplete_message_; |
| 1276 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1272 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
| 1277 Bootstrapper* bootstrapper_; | 1273 Bootstrapper* bootstrapper_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1308 Builtins builtins_; | 1304 Builtins builtins_; |
| 1309 bool has_installed_extensions_; | 1305 bool has_installed_extensions_; |
| 1310 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1306 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
| 1311 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1307 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
| 1312 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1308 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
| 1313 regexp_macro_assembler_canonicalize_; | 1309 regexp_macro_assembler_canonicalize_; |
| 1314 RegExpStack* regexp_stack_; | 1310 RegExpStack* regexp_stack_; |
| 1315 DateCache* date_cache_; | 1311 DateCache* date_cache_; |
| 1316 CallInterfaceDescriptorData* call_descriptor_data_; | 1312 CallInterfaceDescriptorData* call_descriptor_data_; |
| 1317 base::RandomNumberGenerator* random_number_generator_; | 1313 base::RandomNumberGenerator* random_number_generator_; |
| 1318 RAILMode rail_mode_; | 1314 base::AtomicValue<RAILMode> rail_mode_; |
| 1319 | 1315 |
| 1320 // Whether the isolate has been created for snapshotting. | 1316 // Whether the isolate has been created for snapshotting. |
| 1321 bool serializer_enabled_; | 1317 bool serializer_enabled_; |
| 1322 | 1318 |
| 1323 // True if fatal error has been signaled for this isolate. | 1319 // True if fatal error has been signaled for this isolate. |
| 1324 bool has_fatal_error_; | 1320 bool has_fatal_error_; |
| 1325 | 1321 |
| 1326 // True if this isolate was initialized from a snapshot. | 1322 // True if this isolate was initialized from a snapshot. |
| 1327 bool initialized_from_snapshot_; | 1323 bool initialized_from_snapshot_; |
| 1328 | 1324 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 | 1640 |
| 1645 EmbeddedVector<char, 128> filename_; | 1641 EmbeddedVector<char, 128> filename_; |
| 1646 FILE* file_; | 1642 FILE* file_; |
| 1647 int scope_depth_; | 1643 int scope_depth_; |
| 1648 }; | 1644 }; |
| 1649 | 1645 |
| 1650 } // namespace internal | 1646 } // namespace internal |
| 1651 } // namespace v8 | 1647 } // namespace v8 |
| 1652 | 1648 |
| 1653 #endif // V8_ISOLATE_H_ | 1649 #endif // V8_ISOLATE_H_ |
| OLD | NEW |