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