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

Unified Diff: src/factory.cc

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 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 075ea0cdeb38bba4ab2c08728dab9b4153efa445..91b25c27a3f3db20195f1cd0af3699eac565259d 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -937,6 +937,21 @@ Handle<PromiseContainer> Factory::NewPromiseContainer(
return result;
}
+Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo(
+ Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred,
+ Handle<Object> before_debug_event, Handle<Object> after_debug_event,
+ Handle<Context> context) {
+ Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast(
+ NewStruct(PROMISE_REACTION_JOB_INFO_TYPE));
+ result->set_value(*value);
+ result->set_tasks(*tasks);
+ result->set_deferred(*deferred);
+ result->set_before_debug_event(*before_debug_event);
+ result->set_after_debug_event(*after_debug_event);
+ result->set_context(*context);
+ return result;
+}
+
Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
int aliased_context_slot) {
Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast(
« 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