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

Unified Diff: src/code-stub-assembler.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/code-stub-assembler.h ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index d7c47a90ac8a4adeae158ddd39916a38472c1926..7532319bf2a8dc16f9f491b35933df73cbc6b2a6 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -8340,17 +8340,24 @@ void CodeStubAssembler::PromiseSet(Node* promise, Node* status, Node* result) {
}
Node* CodeStubAssembler::AllocatePromiseReactionJobInfo(
- Node* value, Node* promise, Node* tasks, Node* deferred, Node* context) {
+ Node* promise, Node* value, Node* tasks, Node* deferred_promise,
+ Node* deferred_on_resolve, Node* deferred_on_reject, Node* context) {
Node* const result = Allocate(PromiseReactionJobInfo::kSize);
StoreMapNoWriteBarrier(result, Heap::kPromiseReactionJobInfoMapRootIndex);
- StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kPromiseOffset,
- promise);
StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kValueOffset,
value);
+ StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kPromiseOffset,
+ promise);
StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kTasksOffset,
tasks);
StoreObjectFieldNoWriteBarrier(
- result, PromiseReactionJobInfo::kDeferredOffset, deferred);
+ result, PromiseReactionJobInfo::kDeferredPromiseOffset, deferred_promise);
+ StoreObjectFieldNoWriteBarrier(
+ result, PromiseReactionJobInfo::kDeferredOnResolveOffset,
+ deferred_on_resolve);
+ StoreObjectFieldNoWriteBarrier(
+ result, PromiseReactionJobInfo::kDeferredOnRejectOffset,
+ deferred_on_reject);
StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugIdOffset,
Heap::kUndefinedValueRootIndex);
StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugNameOffset,
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698