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

Unified Diff: src/builtins/builtins-promise.h

Issue 2592933004: [promises] Move Promise.resolve to TF (Closed)
Patch Set: fix test Created 3 years, 12 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
Index: src/builtins/builtins-promise.h
diff --git a/src/builtins/builtins-promise.h b/src/builtins/builtins-promise.h
index 4ceedfac22b11e56a36ca0af0c41604ec711cfbb..72a6f987eade45aba4a5fa9da27d2827814aa0aa 100644
--- a/src/builtins/builtins-promise.h
+++ b/src/builtins/builtins-promise.h
@@ -19,7 +19,8 @@ class PromiseBuiltinsAssembler : public CodeStubAssembler {
Node* AllocateAndInitPromise(Node* context, Node* parent);
Node* ThrowIfNotJSReceiver(Node* context, Node* value,
- MessageTemplate::Template msg_template);
+ MessageTemplate::Template msg_template,
+ const char* method_name = NULL);
adamk 2017/01/04 19:19:21 nit: s/NULL/nullptr/
gsathya 2017/01/04 19:37:17 Done.
Node* SpeciesConstructor(Node* context, Node* object,
Node* default_constructor);
@@ -45,6 +46,9 @@ class PromiseBuiltinsAssembler : public CodeStubAssembler {
void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified,
Label* if_ismodified);
+ void BranchIfFastPath(Node* native_context, Node* promise_fun, Node* promise,
+ Label* if_isunmodified, Label* if_ismodified);
+
Node* CreatePromiseContext(Node* native_context, int slots);
Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event,
Node* native_context);

Powered by Google App Engine
This is Rietveld 408576698