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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 Node* CreatePromiseContext(Node* native_context, int slots); | 60 Node* CreatePromiseContext(Node* native_context, int slots); |
61 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, | 61 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, |
62 Node* native_context); | 62 Node* native_context); |
63 | 63 |
64 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( | 64 std::pair<Node*, Node*> CreatePromiseResolvingFunctions( |
65 Node* promise, Node* native_context, Node* promise_context); | 65 Node* promise, Node* native_context, Node* promise_context); |
66 | 66 |
67 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, | 67 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, |
68 Node* promise_capability); | 68 Node* promise_capability); |
69 | 69 |
| 70 void PromiseFulfill(Node* context, Node* promise, Node* result, |
| 71 v8::Promise::PromiseState status); |
| 72 |
70 Node* NewPromiseCapability(Node* context, Node* constructor, | 73 Node* NewPromiseCapability(Node* context, Node* constructor, |
71 Node* debug_event = nullptr); | 74 Node* debug_event = nullptr); |
72 | 75 |
73 protected: | 76 protected: |
74 void PromiseInit(Node* promise); | 77 void PromiseInit(Node* promise); |
75 | 78 |
76 private: | 79 private: |
77 Node* AllocateJSPromise(Node* context); | 80 Node* AllocateJSPromise(Node* context); |
78 }; | 81 }; |
79 | 82 |
80 } // namespace internal | 83 } // namespace internal |
81 } // namespace v8 | 84 } // namespace v8 |
OLD | NEW |