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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 } | 1156 } |
1157 | 1157 |
1158 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1158 interpreter::Interpreter* interpreter() const { return interpreter_; } |
1159 | 1159 |
1160 AccountingAllocator* allocator() { return allocator_; } | 1160 AccountingAllocator* allocator() { return allocator_; } |
1161 | 1161 |
1162 bool IsInAnyContext(Object* object, uint32_t index); | 1162 bool IsInAnyContext(Object* object, uint32_t index); |
1163 | 1163 |
1164 void SetRAILMode(RAILMode rail_mode); | 1164 void SetRAILMode(RAILMode rail_mode); |
1165 | 1165 |
| 1166 RAILMode rail_mode() { return rail_mode_.Value(); } |
| 1167 |
| 1168 double LoadStartTimeMs(); |
| 1169 |
1166 void IsolateInForegroundNotification(); | 1170 void IsolateInForegroundNotification(); |
1167 | 1171 |
1168 void IsolateInBackgroundNotification(); | 1172 void IsolateInBackgroundNotification(); |
1169 | 1173 |
1170 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1174 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
1171 | 1175 |
1172 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); | 1176 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); |
1173 | 1177 |
1174 #ifdef USE_SIMULATOR | 1178 #ifdef USE_SIMULATOR |
1175 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } | 1179 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1349 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1346 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1350 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1347 regexp_macro_assembler_canonicalize_; | 1351 regexp_macro_assembler_canonicalize_; |
1348 RegExpStack* regexp_stack_; | 1352 RegExpStack* regexp_stack_; |
1349 List<int> regexp_indices_; | 1353 List<int> regexp_indices_; |
1350 DateCache* date_cache_; | 1354 DateCache* date_cache_; |
1351 CallInterfaceDescriptorData* call_descriptor_data_; | 1355 CallInterfaceDescriptorData* call_descriptor_data_; |
1352 AccessCompilerData* access_compiler_data_; | 1356 AccessCompilerData* access_compiler_data_; |
1353 base::RandomNumberGenerator* random_number_generator_; | 1357 base::RandomNumberGenerator* random_number_generator_; |
1354 base::AtomicValue<RAILMode> rail_mode_; | 1358 base::AtomicValue<RAILMode> rail_mode_; |
| 1359 base::Mutex rail_mutex_; |
| 1360 double load_start_time_ms_; |
1355 | 1361 |
1356 // Whether the isolate has been created for snapshotting. | 1362 // Whether the isolate has been created for snapshotting. |
1357 bool serializer_enabled_; | 1363 bool serializer_enabled_; |
1358 | 1364 |
1359 // True if fatal error has been signaled for this isolate. | 1365 // True if fatal error has been signaled for this isolate. |
1360 bool has_fatal_error_; | 1366 bool has_fatal_error_; |
1361 | 1367 |
1362 // True if this isolate was initialized from a snapshot. | 1368 // True if this isolate was initialized from a snapshot. |
1363 bool initialized_from_snapshot_; | 1369 bool initialized_from_snapshot_; |
1364 | 1370 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 | 1688 |
1683 EmbeddedVector<char, 128> filename_; | 1689 EmbeddedVector<char, 128> filename_; |
1684 FILE* file_; | 1690 FILE* file_; |
1685 int scope_depth_; | 1691 int scope_depth_; |
1686 }; | 1692 }; |
1687 | 1693 |
1688 } // namespace internal | 1694 } // namespace internal |
1689 } // namespace v8 | 1695 } // namespace v8 |
1690 | 1696 |
1691 #endif // V8_ISOLATE_H_ | 1697 #endif // V8_ISOLATE_H_ |
OLD | NEW |