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