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

Side by Side Diff: src/isolate.h

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: dont create handles if not in debug Created 4 years, 3 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') | src/isolate.cc » ('J')
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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 inline void FireBeforeCallEnteredCallback(); 1106 inline void FireBeforeCallEnteredCallback();
1107 1107
1108 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); 1108 void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
1109 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); 1109 void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
1110 void FireMicrotasksCompletedCallback(); 1110 void FireMicrotasksCompletedCallback();
1111 1111
1112 void SetPromiseRejectCallback(PromiseRejectCallback callback); 1112 void SetPromiseRejectCallback(PromiseRejectCallback callback);
1113 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, 1113 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value,
1114 v8::PromiseRejectEvent event); 1114 v8::PromiseRejectEvent event);
1115 1115
1116 void PromiseResolveThenableJob(Handle<PromiseContainer> container,
1117 MaybeHandle<Object>* result,
1118 MaybeHandle<Object>* maybe_exception);
1116 void EnqueueMicrotask(Handle<Object> microtask); 1119 void EnqueueMicrotask(Handle<Object> microtask);
1117 void RunMicrotasks(); 1120 void RunMicrotasks();
1118 bool IsRunningMicrotasks() const { return is_running_microtasks_; } 1121 bool IsRunningMicrotasks() const { return is_running_microtasks_; }
1119 1122
1120 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1123 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1121 void CountUsage(v8::Isolate::UseCounterFeature feature); 1124 void CountUsage(v8::Isolate::UseCounterFeature feature);
1122 1125
1123 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); 1126 BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
1124 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } 1127 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
1125 1128
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 1690
1688 EmbeddedVector<char, 128> filename_; 1691 EmbeddedVector<char, 128> filename_;
1689 FILE* file_; 1692 FILE* file_;
1690 int scope_depth_; 1693 int scope_depth_;
1691 }; 1694 };
1692 1695
1693 } // namespace internal 1696 } // namespace internal
1694 } // namespace v8 1697 } // namespace v8
1695 1698
1696 #endif // V8_ISOLATE_H_ 1699 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698