Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Side by Side Diff: src/isolate.h

Issue 2406343002: [promises] Move PromiseReactionJob to c++ (Closed)
Patch Set: fix promisedebugeventscope Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 inline void FireBeforeCallEnteredCallback(); 1102 inline void FireBeforeCallEnteredCallback();
1103 1103
1104 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); 1104 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
1105 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); 1105 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
1106 void FireMicrotasksCompletedCallback(); 1106 void FireMicrotasksCompletedCallback();
1107 1107
1108 void SetPromiseRejectCallback(PromiseRejectCallback callback); 1108 void SetPromiseRejectCallback(PromiseRejectCallback callback);
1109 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, 1109 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value,
1110 v8::PromiseRejectEvent event); 1110 v8::PromiseRejectEvent event);
1111 1111
1112 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info,
1113 MaybeHandle<Object>* result,
1114 MaybeHandle<Object>* maybe_exception);
1112 void PromiseResolveThenableJob(Handle<PromiseContainer> container, 1115 void PromiseResolveThenableJob(Handle<PromiseContainer> container,
1113 MaybeHandle<Object>* result, 1116 MaybeHandle<Object>* result,
1114 MaybeHandle<Object>* maybe_exception); 1117 MaybeHandle<Object>* maybe_exception);
1115 void EnqueueMicrotask(Handle<Object> microtask); 1118 void EnqueueMicrotask(Handle<Object> microtask);
1116 void RunMicrotasks(); 1119 void RunMicrotasks();
1117 bool IsRunningMicrotasks() const { return is_running_microtasks_; } 1120 bool IsRunningMicrotasks() const { return is_running_microtasks_; }
1118 1121
1119 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1122 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1120 void CountUsage(v8::Isolate::UseCounterFeature feature); 1123 void CountUsage(v8::Isolate::UseCounterFeature feature);
1121 1124
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 1685
1683 EmbeddedVector<char, 128> filename_; 1686 EmbeddedVector<char, 128> filename_;
1684 FILE* file_; 1687 FILE* file_;
1685 int scope_depth_; 1688 int scope_depth_;
1686 }; 1689 };
1687 1690
1688 } // namespace internal 1691 } // namespace internal
1689 } // namespace v8 1692 } // namespace v8
1690 1693
1691 #endif // V8_ISOLATE_H_ 1694 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698