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

Side by Side Diff: src/builtins/builtins-promise.h

Issue 2643023002: [async-await] Move remaining async-await code to TF (Closed)
Patch Set: Typo Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_BUILTINS_BUILTINS_PROMISE_H_ 5 #ifndef V8_BUILTINS_BUILTINS_PROMISE_H_
6 #define V8_BUILTINS_BUILTINS_PROMISE_H_ 6 #define V8_BUILTINS_BUILTINS_PROMISE_H_
7 7
8 #include "src/code-stub-assembler.h" 8 #include "src/code-stub-assembler.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void PromiseInit(Node* promise); 74 void PromiseInit(Node* promise);
75 75
76 Node* ThrowIfNotJSReceiver(Node* context, Node* value, 76 Node* ThrowIfNotJSReceiver(Node* context, Node* value,
77 MessageTemplate::Template msg_template, 77 MessageTemplate::Template msg_template,
78 const char* method_name = nullptr); 78 const char* method_name = nullptr);
79 79
80 Node* SpeciesConstructor(Node* context, Node* object, 80 Node* SpeciesConstructor(Node* context, Node* object,
81 Node* default_constructor); 81 Node* default_constructor);
82 82
83 void PromiseSetHasHandler(Node* promise); 83 void PromiseSetHasHandler(Node* promise);
84 void PromiseSetHandledHint(Node* promise);
84 85
85 void AppendPromiseCallback(int offset, compiler::Node* promise, 86 void AppendPromiseCallback(int offset, compiler::Node* promise,
86 compiler::Node* value); 87 compiler::Node* value);
87 88
88 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve, 89 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve,
89 Node* on_reject); 90 Node* on_reject);
90 91
91 Node* InternalPerformPromiseThen(Node* context, Node* promise, 92 Node* InternalPerformPromiseThen(Node* context, Node* promise,
92 Node* on_resolve, Node* on_reject, 93 Node* on_resolve, Node* on_reject,
93 Node* deferred_promise, 94 Node* deferred_promise,
(...skipping 22 matching lines...) Expand all
116 Node* debug_event); 117 Node* debug_event);
117 118
118 private: 119 private:
119 Node* AllocateJSPromise(Node* context); 120 Node* AllocateJSPromise(Node* context);
120 }; 121 };
121 122
122 } // namespace internal 123 } // namespace internal
123 } // namespace v8 124 } // namespace v8
124 125
125 #endif // V8_BUILTINS_BUILTINS_PROMISE_H_ 126 #endif // V8_BUILTINS_BUILTINS_PROMISE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698