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 12 matching lines...) Expand all Loading... |
23 // hook. | 23 // hook. |
24 Node* AllocateAndInitJSPromise(Node* context); | 24 Node* AllocateAndInitJSPromise(Node* context); |
25 // This uses the given parent as the parent promise for the promise | 25 // This uses the given parent as the parent promise for the promise |
26 // init hook. | 26 // init hook. |
27 Node* AllocateAndInitJSPromise(Node* context, Node* parent); | 27 Node* AllocateAndInitJSPromise(Node* context, Node* parent); |
28 | 28 |
29 // This allocates and initializes a promise with the given state and | 29 // This allocates and initializes a promise with the given state and |
30 // fields. | 30 // fields. |
31 Node* AllocateAndSetJSPromise(Node* context, Node* status, Node* result); | 31 Node* AllocateAndSetJSPromise(Node* context, Node* status, Node* result); |
32 | 32 |
| 33 Node* AllocatePromiseResolveThenableJobInfo(Node* result, Node* then, |
| 34 Node* resolve, Node* reject, |
| 35 Node* context); |
| 36 |
33 Node* ThrowIfNotJSReceiver(Node* context, Node* value, | 37 Node* ThrowIfNotJSReceiver(Node* context, Node* value, |
34 MessageTemplate::Template msg_template, | 38 MessageTemplate::Template msg_template, |
35 const char* method_name = nullptr); | 39 const char* method_name = nullptr); |
36 | 40 |
37 Node* SpeciesConstructor(Node* context, Node* object, | 41 Node* SpeciesConstructor(Node* context, Node* object, |
38 Node* default_constructor); | 42 Node* default_constructor); |
39 | 43 |
40 Node* PromiseHasHandler(Node* promise); | 44 Node* PromiseHasHandler(Node* promise); |
41 | 45 |
42 void PromiseSetHasHandler(Node* promise); | 46 void PromiseSetHasHandler(Node* promise); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 83 |
80 protected: | 84 protected: |
81 void PromiseInit(Node* promise); | 85 void PromiseInit(Node* promise); |
82 | 86 |
83 private: | 87 private: |
84 Node* AllocateJSPromise(Node* context); | 88 Node* AllocateJSPromise(Node* context); |
85 }; | 89 }; |
86 | 90 |
87 } // namespace internal | 91 } // namespace internal |
88 } // namespace v8 | 92 } // namespace v8 |
OLD | NEW |