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 #include "src/code-stub-assembler.h" | 5 #include "src/code-stub-assembler.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 typedef compiler::Node Node; | 10 typedef compiler::Node Node; |
(...skipping 11 matching lines...) Expand all Loading... |
22 Node* SpeciesConstructor(Node* context, Node* object, | 22 Node* SpeciesConstructor(Node* context, Node* object, |
23 Node* default_constructor); | 23 Node* default_constructor); |
24 | 24 |
25 Node* PromiseHasHandler(Node* promise); | 25 Node* PromiseHasHandler(Node* promise); |
26 | 26 |
27 void PromiseSetHasHandler(Node* promise); | 27 void PromiseSetHasHandler(Node* promise); |
28 | 28 |
29 void AppendPromiseCallback(int offset, compiler::Node* promise, | 29 void AppendPromiseCallback(int offset, compiler::Node* promise, |
30 compiler::Node* value); | 30 compiler::Node* value); |
31 | 31 |
| 32 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve, |
| 33 Node* on_reject); |
| 34 |
32 Node* InternalPerformPromiseThen(Node* context, Node* promise, | 35 Node* InternalPerformPromiseThen(Node* context, Node* promise, |
33 Node* on_resolve, Node* on_reject, | 36 Node* on_resolve, Node* on_reject, |
34 Node* deferred); | 37 Node* deferred); |
35 | 38 |
36 void InternalResolvePromise(Node* context, Node* promise, Node* result, | 39 void InternalResolvePromise(Node* context, Node* promise, Node* result); |
37 Label* out); | |
38 | 40 |
39 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, | 41 void BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, |
40 Label* if_ismodified); | 42 Label* if_ismodified); |
41 | 43 |
42 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, | 44 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, |
43 Node* native_context); | 45 Node* native_context); |
44 | 46 |
45 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( | 47 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( |
46 Node* promise, Node* native_context, Node* promise_context); | 48 Node* promise, Node* native_context, Node* promise_context); |
47 }; | 49 }; |
48 | 50 |
49 } // namespace internal | 51 } // namespace internal |
50 } // namespace v8 | 52 } // namespace v8 |
OLD | NEW |