| 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 return js_calls_from_api_counter_; | 1046 return js_calls_from_api_counter_; |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 // Get (and lazily initialize) the registry for per-isolate symbols. | 1049 // Get (and lazily initialize) the registry for per-isolate symbols. |
| 1050 Handle<JSObject> GetSymbolRegistry(); | 1050 Handle<JSObject> GetSymbolRegistry(); |
| 1051 | 1051 |
| 1052 void AddCallCompletedCallback(CallCompletedCallback callback); | 1052 void AddCallCompletedCallback(CallCompletedCallback callback); |
| 1053 void RemoveCallCompletedCallback(CallCompletedCallback callback); | 1053 void RemoveCallCompletedCallback(CallCompletedCallback callback); |
| 1054 void FireCallCompletedCallback(); | 1054 void FireCallCompletedCallback(); |
| 1055 | 1055 |
| 1056 void AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback); |
| 1057 void RemoveBeforeCallEnteredCallback(BeforeCallEnteredCallback callback); |
| 1058 void FireBeforeCallEnteredCallback(); |
| 1059 |
| 1056 void SetPromiseRejectCallback(PromiseRejectCallback callback); | 1060 void SetPromiseRejectCallback(PromiseRejectCallback callback); |
| 1057 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, | 1061 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
| 1058 v8::PromiseRejectEvent event); | 1062 v8::PromiseRejectEvent event); |
| 1059 | 1063 |
| 1060 void EnqueueMicrotask(Handle<Object> microtask); | 1064 void EnqueueMicrotask(Handle<Object> microtask); |
| 1061 void RunMicrotasks(); | 1065 void RunMicrotasks(); |
| 1062 | 1066 |
| 1063 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1067 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
| 1064 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1068 void CountUsage(v8::Isolate::UseCounterFeature feature); |
| 1065 | 1069 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 | 1312 |
| 1309 int next_optimization_id_; | 1313 int next_optimization_id_; |
| 1310 | 1314 |
| 1311 // Counts javascript calls from the API. Wraps around on overflow. | 1315 // Counts javascript calls from the API. Wraps around on overflow. |
| 1312 unsigned int js_calls_from_api_counter_; | 1316 unsigned int js_calls_from_api_counter_; |
| 1313 | 1317 |
| 1314 #if TRACE_MAPS | 1318 #if TRACE_MAPS |
| 1315 int next_unique_sfi_id_; | 1319 int next_unique_sfi_id_; |
| 1316 #endif | 1320 #endif |
| 1317 | 1321 |
| 1322 // List of callbacks before a Call starts execution. |
| 1323 List<BeforeCallEnteredCallback> before_call_entered_callbacks_; |
| 1324 |
| 1318 // List of callbacks when a Call completes. | 1325 // List of callbacks when a Call completes. |
| 1319 List<CallCompletedCallback> call_completed_callbacks_; | 1326 List<CallCompletedCallback> call_completed_callbacks_; |
| 1320 | 1327 |
| 1321 v8::Isolate::UseCounterCallback use_counter_callback_; | 1328 v8::Isolate::UseCounterCallback use_counter_callback_; |
| 1322 BasicBlockProfiler* basic_block_profiler_; | 1329 BasicBlockProfiler* basic_block_profiler_; |
| 1323 | 1330 |
| 1324 List<Object*> partial_snapshot_cache_; | 1331 List<Object*> partial_snapshot_cache_; |
| 1325 | 1332 |
| 1326 v8::ArrayBuffer::Allocator* array_buffer_allocator_; | 1333 v8::ArrayBuffer::Allocator* array_buffer_allocator_; |
| 1327 | 1334 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 | 1561 |
| 1555 EmbeddedVector<char, 128> filename_; | 1562 EmbeddedVector<char, 128> filename_; |
| 1556 FILE* file_; | 1563 FILE* file_; |
| 1557 int scope_depth_; | 1564 int scope_depth_; |
| 1558 }; | 1565 }; |
| 1559 | 1566 |
| 1560 } // namespace internal | 1567 } // namespace internal |
| 1561 } // namespace v8 | 1568 } // namespace v8 |
| 1562 | 1569 |
| 1563 #endif // V8_ISOLATE_H_ | 1570 #endif // V8_ISOLATE_H_ |
| OLD | NEW |