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_ |
| 6 #define V8_BUILTINS_BUILTINS_PROMISE_H_ |
| 7 |
5 #include "src/code-stub-assembler.h" | 8 #include "src/code-stub-assembler.h" |
6 #include "src/contexts.h" | 9 #include "src/contexts.h" |
7 | 10 |
8 namespace v8 { | 11 namespace v8 { |
9 namespace internal { | 12 namespace internal { |
10 | 13 |
11 typedef compiler::Node Node; | 14 typedef compiler::Node Node; |
12 typedef CodeStubAssembler::ParameterMode ParameterMode; | 15 typedef CodeStubAssembler::ParameterMode ParameterMode; |
13 typedef compiler::CodeAssemblerState CodeAssemblerState; | 16 typedef compiler::CodeAssemblerState CodeAssemblerState; |
14 | 17 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool debug_event); | 114 bool debug_event); |
112 void InternalPromiseReject(Node* context, Node* promise, Node* value, | 115 void InternalPromiseReject(Node* context, Node* promise, Node* value, |
113 Node* debug_event); | 116 Node* debug_event); |
114 | 117 |
115 private: | 118 private: |
116 Node* AllocateJSPromise(Node* context); | 119 Node* AllocateJSPromise(Node* context); |
117 }; | 120 }; |
118 | 121 |
119 } // namespace internal | 122 } // namespace internal |
120 } // namespace v8 | 123 } // namespace v8 |
| 124 |
| 125 #endif // V8_BUILTINS_BUILTINS_PROMISE_H_ |
OLD | NEW |