| 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 <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 | 1017 |
| 1018 void DumpAndResetCompilationStats(); | 1018 void DumpAndResetCompilationStats(); |
| 1019 | 1019 |
| 1020 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1020 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1021 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1021 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1022 function_entry_hook_ = function_entry_hook; | 1022 function_entry_hook_ = function_entry_hook; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1025 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
| 1026 | 1026 |
| 1027 void* vector_store_virtual_register_address() { | |
| 1028 return &vector_store_virtual_register_; | |
| 1029 } | |
| 1030 | |
| 1031 base::RandomNumberGenerator* random_number_generator(); | 1027 base::RandomNumberGenerator* random_number_generator(); |
| 1032 | 1028 |
| 1033 // Given an address occupied by a live code object, return that object. | 1029 // Given an address occupied by a live code object, return that object. |
| 1034 Object* FindCodeObject(Address a); | 1030 Object* FindCodeObject(Address a); |
| 1035 | 1031 |
| 1036 int NextOptimizationId() { | 1032 int NextOptimizationId() { |
| 1037 int id = next_optimization_id_++; | 1033 int id = next_optimization_id_++; |
| 1038 if (!Smi::IsValid(next_optimization_id_)) { | 1034 if (!Smi::IsValid(next_optimization_id_)) { |
| 1039 next_optimization_id_ = 0; | 1035 next_optimization_id_ = 0; |
| 1040 } | 1036 } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1292 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 1297 #undef ISOLATE_FIELD_OFFSET | 1293 #undef ISOLATE_FIELD_OFFSET |
| 1298 #endif | 1294 #endif |
| 1299 | 1295 |
| 1300 DeferredHandles* deferred_handles_head_; | 1296 DeferredHandles* deferred_handles_head_; |
| 1301 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; | 1297 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; |
| 1302 | 1298 |
| 1303 // Counts deopt points if deopt_every_n_times is enabled. | 1299 // Counts deopt points if deopt_every_n_times is enabled. |
| 1304 unsigned int stress_deopt_count_; | 1300 unsigned int stress_deopt_count_; |
| 1305 | 1301 |
| 1306 Address vector_store_virtual_register_; | |
| 1307 | |
| 1308 int next_optimization_id_; | 1302 int next_optimization_id_; |
| 1309 | 1303 |
| 1310 #if TRACE_MAPS | 1304 #if TRACE_MAPS |
| 1311 int next_unique_sfi_id_; | 1305 int next_unique_sfi_id_; |
| 1312 #endif | 1306 #endif |
| 1313 | 1307 |
| 1314 // List of callbacks when a Call completes. | 1308 // List of callbacks when a Call completes. |
| 1315 List<CallCompletedCallback> call_completed_callbacks_; | 1309 List<CallCompletedCallback> call_completed_callbacks_; |
| 1316 | 1310 |
| 1317 v8::Isolate::UseCounterCallback use_counter_callback_; | 1311 v8::Isolate::UseCounterCallback use_counter_callback_; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 } | 1540 } |
| 1547 | 1541 |
| 1548 EmbeddedVector<char, 128> filename_; | 1542 EmbeddedVector<char, 128> filename_; |
| 1549 FILE* file_; | 1543 FILE* file_; |
| 1550 int scope_depth_; | 1544 int scope_depth_; |
| 1551 }; | 1545 }; |
| 1552 | 1546 |
| 1553 } } // namespace v8::internal | 1547 } } // namespace v8::internal |
| 1554 | 1548 |
| 1555 #endif // V8_ISOLATE_H_ | 1549 #endif // V8_ISOLATE_H_ |
| OLD | NEW |