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

Unified Diff: src/factory.cc

Issue 2590563003: [promises] Remove deferred object (Closed)
Patch Set: rebase Created 4 years 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.cc » ('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 abcd679e6a1ab0c1365666ffc4f23b080fd56503..094ada8ecbd976fb9d68b9fa66edc20c6f044abb 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1031,16 +1031,18 @@ Handle<PromiseResolveThenableJobInfo> Factory::NewPromiseResolveThenableJobInfo(
Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo(
Handle<JSPromise> promise, Handle<Object> value, Handle<Object> tasks,
- Handle<Object> deferred, Handle<Object> debug_id, Handle<Object> debug_name,
- Handle<Context> context) {
+ Handle<Object> deferred_promise, Handle<Object> deferred_on_resolve,
+ Handle<Object> deferred_on_reject, Handle<Context> context) {
Handle<PromiseReactionJobInfo> result = Handle<PromiseReactionJobInfo>::cast(
NewStruct(PROMISE_REACTION_JOB_INFO_TYPE));
result->set_promise(*promise);
result->set_value(*value);
result->set_tasks(*tasks);
- result->set_deferred(*deferred);
- result->set_debug_id(*debug_id);
- result->set_debug_name(*debug_name);
+ result->set_deferred_promise(*deferred_promise);
+ result->set_deferred_on_resolve(*deferred_on_resolve);
+ result->set_deferred_on_reject(*deferred_on_reject);
+ result->set_debug_id(isolate()->heap()->undefined_value());
+ result->set_debug_name(isolate()->heap()->undefined_value());
result->set_context(*context);
return result;
}
« no previous file with comments | « src/factory.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698