OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |