| 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 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1057 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
| 1058 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1058 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
| 1059 void FireMicrotasksCompletedCallback(); | 1059 void FireMicrotasksCompletedCallback(); |
| 1060 | 1060 |
| 1061 void SetPromiseRejectCallback(PromiseRejectCallback callback); | 1061 void SetPromiseRejectCallback(PromiseRejectCallback callback); |
| 1062 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, | 1062 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
| 1063 v8::PromiseRejectEvent event); | 1063 v8::PromiseRejectEvent event); |
| 1064 | 1064 |
| 1065 void EnqueueMicrotask(Handle<Object> microtask); | 1065 void EnqueueMicrotask(Handle<Object> microtask); |
| 1066 void RunMicrotasks(); | 1066 void RunMicrotasks(); |
| 1067 bool IsRunningMicrotasks() const { return is_running_microtasks_; } |
| 1067 | 1068 |
| 1068 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1069 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
| 1069 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1070 void CountUsage(v8::Isolate::UseCounterFeature feature); |
| 1070 | 1071 |
| 1071 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1072 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
| 1072 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1073 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
| 1073 | 1074 |
| 1074 std::string GetTurboCfgFileName(); | 1075 std::string GetTurboCfgFileName(); |
| 1075 | 1076 |
| 1076 #if TRACE_MAPS | 1077 #if TRACE_MAPS |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 #endif | 1337 #endif |
| 1337 | 1338 |
| 1338 // List of callbacks before a Call starts execution. | 1339 // List of callbacks before a Call starts execution. |
| 1339 List<BeforeCallEnteredCallback> before_call_entered_callbacks_; | 1340 List<BeforeCallEnteredCallback> before_call_entered_callbacks_; |
| 1340 | 1341 |
| 1341 // List of callbacks when a Call completes. | 1342 // List of callbacks when a Call completes. |
| 1342 List<CallCompletedCallback> call_completed_callbacks_; | 1343 List<CallCompletedCallback> call_completed_callbacks_; |
| 1343 | 1344 |
| 1344 // List of callbacks after microtasks were run. | 1345 // List of callbacks after microtasks were run. |
| 1345 List<MicrotasksCompletedCallback> microtasks_completed_callbacks_; | 1346 List<MicrotasksCompletedCallback> microtasks_completed_callbacks_; |
| 1347 bool is_running_microtasks_; |
| 1346 | 1348 |
| 1347 v8::Isolate::UseCounterCallback use_counter_callback_; | 1349 v8::Isolate::UseCounterCallback use_counter_callback_; |
| 1348 BasicBlockProfiler* basic_block_profiler_; | 1350 BasicBlockProfiler* basic_block_profiler_; |
| 1349 | 1351 |
| 1350 List<Object*> partial_snapshot_cache_; | 1352 List<Object*> partial_snapshot_cache_; |
| 1351 | 1353 |
| 1352 v8::ArrayBuffer::Allocator* array_buffer_allocator_; | 1354 v8::ArrayBuffer::Allocator* array_buffer_allocator_; |
| 1353 | 1355 |
| 1354 FutexWaitListNode futex_wait_list_node_; | 1356 FutexWaitListNode futex_wait_list_node_; |
| 1355 | 1357 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 | 1582 |
| 1581 EmbeddedVector<char, 128> filename_; | 1583 EmbeddedVector<char, 128> filename_; |
| 1582 FILE* file_; | 1584 FILE* file_; |
| 1583 int scope_depth_; | 1585 int scope_depth_; |
| 1584 }; | 1586 }; |
| 1585 | 1587 |
| 1586 } // namespace internal | 1588 } // namespace internal |
| 1587 } // namespace v8 | 1589 } // namespace v8 |
| 1588 | 1590 |
| 1589 #endif // V8_ISOLATE_H_ | 1591 #endif // V8_ISOLATE_H_ |
| OLD | NEW |