| 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 Object* FindCodeObject(Address a); | 1039 Object* FindCodeObject(Address a); |
| 1040 | 1040 |
| 1041 int NextOptimizationId() { | 1041 int NextOptimizationId() { |
| 1042 int id = next_optimization_id_++; | 1042 int id = next_optimization_id_++; |
| 1043 if (!Smi::IsValid(next_optimization_id_)) { | 1043 if (!Smi::IsValid(next_optimization_id_)) { |
| 1044 next_optimization_id_ = 0; | 1044 next_optimization_id_ = 0; |
| 1045 } | 1045 } |
| 1046 return id; | 1046 return id; |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 void IncrementJsCallsFromApiCounter() { ++js_calls_from_api_counter_; } |
| 1050 |
| 1051 unsigned int js_calls_from_api_counter() { |
| 1052 return js_calls_from_api_counter_; |
| 1053 } |
| 1054 |
| 1049 // Get (and lazily initialize) the registry for per-isolate symbols. | 1055 // Get (and lazily initialize) the registry for per-isolate symbols. |
| 1050 Handle<JSObject> GetSymbolRegistry(); | 1056 Handle<JSObject> GetSymbolRegistry(); |
| 1051 | 1057 |
| 1052 void AddCallCompletedCallback(CallCompletedCallback callback); | 1058 void AddCallCompletedCallback(CallCompletedCallback callback); |
| 1053 void RemoveCallCompletedCallback(CallCompletedCallback callback); | 1059 void RemoveCallCompletedCallback(CallCompletedCallback callback); |
| 1054 void FireCallCompletedCallback(); | 1060 void FireCallCompletedCallback(); |
| 1055 | 1061 |
| 1056 void SetPromiseRejectCallback(PromiseRejectCallback callback); | 1062 void SetPromiseRejectCallback(PromiseRejectCallback callback); |
| 1057 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, | 1063 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
| 1058 v8::PromiseRejectEvent event); | 1064 v8::PromiseRejectEvent event); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; | 1312 OptimizingCompileDispatcher* optimizing_compile_dispatcher_; |
| 1307 | 1313 |
| 1308 // Counts deopt points if deopt_every_n_times is enabled. | 1314 // Counts deopt points if deopt_every_n_times is enabled. |
| 1309 unsigned int stress_deopt_count_; | 1315 unsigned int stress_deopt_count_; |
| 1310 | 1316 |
| 1311 Address virtual_handler_register_; | 1317 Address virtual_handler_register_; |
| 1312 Address virtual_slot_register_; | 1318 Address virtual_slot_register_; |
| 1313 | 1319 |
| 1314 int next_optimization_id_; | 1320 int next_optimization_id_; |
| 1315 | 1321 |
| 1322 // Counts javascript calls from the API. Wraps around on overflow. |
| 1323 unsigned int js_calls_from_api_counter_; |
| 1324 |
| 1316 #if TRACE_MAPS | 1325 #if TRACE_MAPS |
| 1317 int next_unique_sfi_id_; | 1326 int next_unique_sfi_id_; |
| 1318 #endif | 1327 #endif |
| 1319 | 1328 |
| 1320 // List of callbacks when a Call completes. | 1329 // List of callbacks when a Call completes. |
| 1321 List<CallCompletedCallback> call_completed_callbacks_; | 1330 List<CallCompletedCallback> call_completed_callbacks_; |
| 1322 | 1331 |
| 1323 v8::Isolate::UseCounterCallback use_counter_callback_; | 1332 v8::Isolate::UseCounterCallback use_counter_callback_; |
| 1324 BasicBlockProfiler* basic_block_profiler_; | 1333 BasicBlockProfiler* basic_block_profiler_; |
| 1325 | 1334 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 | 1565 |
| 1557 EmbeddedVector<char, 128> filename_; | 1566 EmbeddedVector<char, 128> filename_; |
| 1558 FILE* file_; | 1567 FILE* file_; |
| 1559 int scope_depth_; | 1568 int scope_depth_; |
| 1560 }; | 1569 }; |
| 1561 | 1570 |
| 1562 } // namespace internal | 1571 } // namespace internal |
| 1563 } // namespace v8 | 1572 } // namespace v8 |
| 1564 | 1573 |
| 1565 #endif // V8_ISOLATE_H_ | 1574 #endif // V8_ISOLATE_H_ |
| OLD | NEW |