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

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

Issue 2571663002: [promises] Refactor CreatePromise (Closed)
Patch Set: rename to allocatejspromise 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/builtins/builtins-promise.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index bf0fb1f0606c424cdbe727b74a6a0b019239636c..836aab7b78573988efadc643edbf1284f69b9ba8 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1053,6 +1053,13 @@ 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);
+
protected:
void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof,
Label* if_found, Variable* var_name_index,
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698