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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 inline void FireBeforeCallEnteredCallback(); | 1098 inline void FireBeforeCallEnteredCallback(); |
1099 | 1099 |
1100 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1100 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
1101 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1101 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
1102 void FireMicrotasksCompletedCallback(); | 1102 void FireMicrotasksCompletedCallback(); |
1103 | 1103 |
1104 void SetPromiseRejectCallback(PromiseRejectCallback callback); | 1104 void SetPromiseRejectCallback(PromiseRejectCallback callback); |
1105 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, | 1105 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
1106 v8::PromiseRejectEvent event); | 1106 v8::PromiseRejectEvent event); |
1107 | 1107 |
| 1108 void PromiseResolveThenableJob(Handle<PromiseContainer> container); |
1108 void EnqueueMicrotask(Handle<Object> microtask); | 1109 void EnqueueMicrotask(Handle<Object> microtask); |
1109 void RunMicrotasks(); | 1110 void RunMicrotasks(); |
1110 bool IsRunningMicrotasks() const { return is_running_microtasks_; } | 1111 bool IsRunningMicrotasks() const { return is_running_microtasks_; } |
1111 | 1112 |
1112 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1113 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
1113 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1114 void CountUsage(v8::Isolate::UseCounterFeature feature); |
1114 | 1115 |
1115 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1116 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1116 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1117 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1117 | 1118 |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 | 1672 |
1672 EmbeddedVector<char, 128> filename_; | 1673 EmbeddedVector<char, 128> filename_; |
1673 FILE* file_; | 1674 FILE* file_; |
1674 int scope_depth_; | 1675 int scope_depth_; |
1675 }; | 1676 }; |
1676 | 1677 |
1677 } // namespace internal | 1678 } // namespace internal |
1678 } // namespace v8 | 1679 } // namespace v8 |
1679 | 1680 |
1680 #endif // V8_ISOLATE_H_ | 1681 #endif // V8_ISOLATE_H_ |
OLD | NEW |