| 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1020 |
| 1021 void DumpAndResetCompilationStats(); | 1021 void DumpAndResetCompilationStats(); |
| 1022 | 1022 |
| 1023 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1023 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1024 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1024 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1025 function_entry_hook_ = function_entry_hook; | 1025 function_entry_hook_ = function_entry_hook; |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1028 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
| 1029 | 1029 |
| 1030 void* vector_store_virtual_register_address() { | 1030 void* virtual_handler_register_address() { |
| 1031 return &vector_store_virtual_register_; | 1031 return &virtual_handler_register_; |
| 1032 } | 1032 } |
| 1033 | 1033 |
| 1034 void* virtual_slot_register_address() { return &virtual_slot_register_; } |
| 1035 |
| 1034 base::RandomNumberGenerator* random_number_generator(); | 1036 base::RandomNumberGenerator* random_number_generator(); |
| 1035 | 1037 |
| 1036 // Given an address occupied by a live code object, return that object. | 1038 // Given an address occupied by a live code object, return that object. |
| 1037 Object* FindCodeObject(Address a); | 1039 Object* FindCodeObject(Address a); |
| 1038 | 1040 |
| 1039 int NextOptimizationId() { | 1041 int NextOptimizationId() { |
| 1040 int id = next_optimization_id_++; | 1042 int id = next_optimization_id_++; |
| 1041 if (!Smi::IsValid(next_optimization_id_)) { | 1043 if (!Smi::IsValid(next_optimization_id_)) { |
| 1042 next_optimization_id_ = 0; | 1044 next_optimization_id_ = 0; |
| 1043 } | 1045 } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1301 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 1300 #undef ISOLATE_FIELD_OFFSET | 1302 #undef ISOLATE_FIELD_OFFSET |
| 1301 #endif | 1303 #endif |
| 1302 | 1304 |
| 1303 DeferredHandles* deferred_handles_head_; | 1305 DeferredHandles* deferred_handles_head_; |
| 1304 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; | 1306 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; |
| 1305 | 1307 |
| 1306 // Counts deopt points if deopt_every_n_times is enabled. | 1308 // Counts deopt points if deopt_every_n_times is enabled. |
| 1307 unsigned int stress_deopt_count_; | 1309 unsigned int stress_deopt_count_; |
| 1308 | 1310 |
| 1309 Address vector_store_virtual_register_; | 1311 Address virtual_handler_register_; |
| 1312 Address virtual_slot_register_; |
| 1310 | 1313 |
| 1311 int next_optimization_id_; | 1314 int next_optimization_id_; |
| 1312 | 1315 |
| 1313 #if TRACE_MAPS | 1316 #if TRACE_MAPS |
| 1314 int next_unique_sfi_id_; | 1317 int next_unique_sfi_id_; |
| 1315 #endif | 1318 #endif |
| 1316 | 1319 |
| 1317 // List of callbacks when a Call completes. | 1320 // List of callbacks when a Call completes. |
| 1318 List<CallCompletedCallback> call_completed_callbacks_; | 1321 List<CallCompletedCallback> call_completed_callbacks_; |
| 1319 | 1322 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 | 1556 |
| 1554 EmbeddedVector<char, 128> filename_; | 1557 EmbeddedVector<char, 128> filename_; |
| 1555 FILE* file_; | 1558 FILE* file_; |
| 1556 int scope_depth_; | 1559 int scope_depth_; |
| 1557 }; | 1560 }; |
| 1558 | 1561 |
| 1559 } // namespace internal | 1562 } // namespace internal |
| 1560 } // namespace v8 | 1563 } // namespace v8 |
| 1561 | 1564 |
| 1562 #endif // V8_ISOLATE_H_ | 1565 #endif // V8_ISOLATE_H_ |
| OLD | NEW |