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

Unified Diff: src/factory.cc

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.h ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 2b10db93564437e9378f4dc684961be910eac9ce..27a3d93a9f7b48a5d4dcf49a0451f5b03fe8fd4e 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -92,7 +92,6 @@ Handle<Box> Factory::NewBox(Handle<Object> value) {
return result;
}
-
Handle<PrototypeInfo> Factory::NewPrototypeInfo() {
Handle<PrototypeInfo> result =
Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE));
@@ -899,6 +898,20 @@ Handle<Struct> Factory::NewStruct(InstanceType type) {
Struct);
}
+Handle<PromiseContainer> Factory::NewPromiseContainer(
+ Handle<JSReceiver> thenable, Handle<JSFunction> then,
+ Handle<JSFunction> resolve, Handle<JSFunction> reject,
+ Handle<Object> before_debug_event, Handle<Object> after_debug_event) {
+ Handle<PromiseContainer> result =
+ Handle<PromiseContainer>::cast(NewStruct(PROMISE_CONTAINER_TYPE));
+ result->set_thenable(*thenable);
+ result->set_then(*then);
+ result->set_resolve(*resolve);
+ result->set_reject(*reject);
+ result->set_before_debug_event(*before_debug_event);
+ result->set_after_debug_event(*after_debug_event);
+ return result;
+}
Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
int aliased_context_slot) {
« no previous file with comments | « src/factory.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698