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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 | 1055 |
1056 void DumpAndResetCompilationStats(); | 1056 void DumpAndResetCompilationStats(); |
1057 | 1057 |
1058 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1058 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
1059 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1059 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
1060 function_entry_hook_ = function_entry_hook; | 1060 function_entry_hook_ = function_entry_hook; |
1061 } | 1061 } |
1062 | 1062 |
1063 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1063 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
1064 | 1064 |
1065 void* virtual_handler_register_address() { | |
1066 return &virtual_handler_register_; | |
1067 } | |
1068 | |
1069 void* virtual_slot_register_address() { return &virtual_slot_register_; } | |
1070 | |
1071 base::RandomNumberGenerator* random_number_generator(); | 1065 base::RandomNumberGenerator* random_number_generator(); |
1072 | 1066 |
1073 // Given an address occupied by a live code object, return that object. | 1067 // Given an address occupied by a live code object, return that object. |
1074 Object* FindCodeObject(Address a); | 1068 Object* FindCodeObject(Address a); |
1075 | 1069 |
1076 int NextOptimizationId() { | 1070 int NextOptimizationId() { |
1077 int id = next_optimization_id_++; | 1071 int id = next_optimization_id_++; |
1078 if (!Smi::IsValid(next_optimization_id_)) { | 1072 if (!Smi::IsValid(next_optimization_id_)) { |
1079 next_optimization_id_ = 0; | 1073 next_optimization_id_ = 0; |
1080 } | 1074 } |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1399 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
1406 #undef ISOLATE_FIELD_OFFSET | 1400 #undef ISOLATE_FIELD_OFFSET |
1407 #endif | 1401 #endif |
1408 | 1402 |
1409 DeferredHandles* deferred_handles_head_; | 1403 DeferredHandles* deferred_handles_head_; |
1410 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; | 1404 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; |
1411 | 1405 |
1412 // Counts deopt points if deopt_every_n_times is enabled. | 1406 // Counts deopt points if deopt_every_n_times is enabled. |
1413 unsigned int stress_deopt_count_; | 1407 unsigned int stress_deopt_count_; |
1414 | 1408 |
1415 Address virtual_handler_register_; | |
1416 Address virtual_slot_register_; | |
1417 | |
1418 int next_optimization_id_; | 1409 int next_optimization_id_; |
1419 | 1410 |
1420 // Counts javascript calls from the API. Wraps around on overflow. | 1411 // Counts javascript calls from the API. Wraps around on overflow. |
1421 unsigned int js_calls_from_api_counter_; | 1412 unsigned int js_calls_from_api_counter_; |
1422 | 1413 |
1423 #if TRACE_MAPS | 1414 #if TRACE_MAPS |
1424 int next_unique_sfi_id_; | 1415 int next_unique_sfi_id_; |
1425 #endif | 1416 #endif |
1426 | 1417 |
1427 // List of callbacks before a Call starts execution. | 1418 // List of callbacks before a Call starts execution. |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 | 1674 |
1684 EmbeddedVector<char, 128> filename_; | 1675 EmbeddedVector<char, 128> filename_; |
1685 FILE* file_; | 1676 FILE* file_; |
1686 int scope_depth_; | 1677 int scope_depth_; |
1687 }; | 1678 }; |
1688 | 1679 |
1689 } // namespace internal | 1680 } // namespace internal |
1690 } // namespace v8 | 1681 } // namespace v8 |
1691 | 1682 |
1692 #endif // V8_ISOLATE_H_ | 1683 #endif // V8_ISOLATE_H_ |
OLD | NEW |