| 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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 inline void FireBeforeCallEnteredCallback(); | 1107 inline void FireBeforeCallEnteredCallback(); |
| 1108 | 1108 |
| 1109 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1109 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
| 1110 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); | 1110 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); |
| 1111 void FireMicrotasksCompletedCallback(); | 1111 void FireMicrotasksCompletedCallback(); |
| 1112 | 1112 |
| 1113 void SetPromiseRejectCallback(PromiseRejectCallback callback); | 1113 void SetPromiseRejectCallback(PromiseRejectCallback callback); |
| 1114 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, | 1114 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, |
| 1115 v8::PromiseRejectEvent event); | 1115 v8::PromiseRejectEvent event); |
| 1116 | 1116 |
| 1117 void PromiseResolveThenableJob(Handle<PromiseContainer> container, |
| 1118 MaybeHandle<Object>* result, |
| 1119 MaybeHandle<Object>* maybe_exception); |
| 1117 void EnqueueMicrotask(Handle<Object> microtask); | 1120 void EnqueueMicrotask(Handle<Object> microtask); |
| 1118 void RunMicrotasks(); | 1121 void RunMicrotasks(); |
| 1119 bool IsRunningMicrotasks() const { return is_running_microtasks_; } | 1122 bool IsRunningMicrotasks() const { return is_running_microtasks_; } |
| 1120 | 1123 |
| 1121 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1124 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
| 1122 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1125 void CountUsage(v8::Isolate::UseCounterFeature feature); |
| 1123 | 1126 |
| 1124 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1127 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
| 1125 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1128 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
| 1126 | 1129 |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 | 1691 |
| 1689 EmbeddedVector<char, 128> filename_; | 1692 EmbeddedVector<char, 128> filename_; |
| 1690 FILE* file_; | 1693 FILE* file_; |
| 1691 int scope_depth_; | 1694 int scope_depth_; |
| 1692 }; | 1695 }; |
| 1693 | 1696 |
| 1694 } // namespace internal | 1697 } // namespace internal |
| 1695 } // namespace v8 | 1698 } // namespace v8 |
| 1696 | 1699 |
| 1697 #endif // V8_ISOLATE_H_ | 1700 #endif // V8_ISOLATE_H_ |
| OLD | NEW |