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 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 // Clear all optimized code stored in native contexts. | 1170 // Clear all optimized code stored in native contexts. |
1171 void ClearOSROptimizedCode(); | 1171 void ClearOSROptimizedCode(); |
1172 | 1172 |
1173 // Ensure that a particular optimized code is evicted. | 1173 // Ensure that a particular optimized code is evicted. |
1174 void EvictOSROptimizedCode(Code* code, const char* reason); | 1174 void EvictOSROptimizedCode(Code* code, const char* reason); |
1175 | 1175 |
1176 bool IsInAnyContext(Object* object, uint32_t index); | 1176 bool IsInAnyContext(Object* object, uint32_t index); |
1177 | 1177 |
1178 void SetRAILMode(RAILMode rail_mode); | 1178 void SetRAILMode(RAILMode rail_mode); |
1179 | 1179 |
| 1180 RAILMode rail_mode() { return rail_mode_.Value(); } |
| 1181 |
| 1182 double LoadStartTimeMs(); |
| 1183 |
1180 void IsolateInForegroundNotification(); | 1184 void IsolateInForegroundNotification(); |
1181 | 1185 |
1182 void IsolateInBackgroundNotification(); | 1186 void IsolateInBackgroundNotification(); |
1183 | 1187 |
1184 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1188 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
1185 | 1189 |
1186 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); | 1190 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); |
1187 | 1191 |
1188 #ifdef USE_SIMULATOR | 1192 #ifdef USE_SIMULATOR |
1189 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } | 1193 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1359 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1356 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1360 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1357 regexp_macro_assembler_canonicalize_; | 1361 regexp_macro_assembler_canonicalize_; |
1358 RegExpStack* regexp_stack_; | 1362 RegExpStack* regexp_stack_; |
1359 List<int> regexp_indices_; | 1363 List<int> regexp_indices_; |
1360 DateCache* date_cache_; | 1364 DateCache* date_cache_; |
1361 CallInterfaceDescriptorData* call_descriptor_data_; | 1365 CallInterfaceDescriptorData* call_descriptor_data_; |
1362 AccessCompilerData* access_compiler_data_; | 1366 AccessCompilerData* access_compiler_data_; |
1363 base::RandomNumberGenerator* random_number_generator_; | 1367 base::RandomNumberGenerator* random_number_generator_; |
1364 base::AtomicValue<RAILMode> rail_mode_; | 1368 base::AtomicValue<RAILMode> rail_mode_; |
| 1369 base::Mutex rail_mutex_; |
| 1370 double load_start_time_ms_; |
1365 | 1371 |
1366 // Whether the isolate has been created for snapshotting. | 1372 // Whether the isolate has been created for snapshotting. |
1367 bool serializer_enabled_; | 1373 bool serializer_enabled_; |
1368 | 1374 |
1369 // True if fatal error has been signaled for this isolate. | 1375 // True if fatal error has been signaled for this isolate. |
1370 bool has_fatal_error_; | 1376 bool has_fatal_error_; |
1371 | 1377 |
1372 // True if this isolate was initialized from a snapshot. | 1378 // True if this isolate was initialized from a snapshot. |
1373 bool initialized_from_snapshot_; | 1379 bool initialized_from_snapshot_; |
1374 | 1380 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 | 1699 |
1694 EmbeddedVector<char, 128> filename_; | 1700 EmbeddedVector<char, 128> filename_; |
1695 FILE* file_; | 1701 FILE* file_; |
1696 int scope_depth_; | 1702 int scope_depth_; |
1697 }; | 1703 }; |
1698 | 1704 |
1699 } // namespace internal | 1705 } // namespace internal |
1700 } // namespace v8 | 1706 } // namespace v8 |
1701 | 1707 |
1702 #endif // V8_ISOLATE_H_ | 1708 #endif // V8_ISOLATE_H_ |
OLD | NEW |