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

Unified Diff: src/code-stub-assembler.h

Issue 2604273003: [csa] Refactor promises API (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
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 7be1f91b8649f0a828baabcc1c9a7ce1f0422767..bdb29f5db343223624ce8a0f5a0aa54102fbaf55 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1127,12 +1127,9 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
// Promise helpers
Node* IsPromiseHookEnabled();
- Node* AllocateJSPromise(Node* context);
- void PromiseInit(Node* promise);
-
- // Other promise fields may also be need to set/reset. This only
- // provides a helper for certain init patterns.
- void PromiseSet(Node* promise, Node* status, Node* result);
+ Node* AllocateAndInitJSPromise(Node* context);
+ Node* AllocateAndSetJSPromise(Node* context, Node* status, Node* result);
+ void JSPromiseInit(Node* promise);
Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks,
Node* deferred_promise,

Powered by Google App Engine
This is Rietveld 408576698