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/builtins/builtins-constructor.h" | 5 #include "src/builtins/builtins-promise-gen.h" |
6 #include "src/builtins/builtins-promise.h" | 6 |
| 7 #include "src/builtins/builtins-constructor-gen.h" |
7 #include "src/builtins/builtins-utils-gen.h" | 8 #include "src/builtins/builtins-utils-gen.h" |
8 #include "src/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
9 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
10 #include "src/code-stub-assembler.h" | 11 #include "src/code-stub-assembler.h" |
11 #include "src/objects-inl.h" | 12 #include "src/objects-inl.h" |
12 | 13 |
13 namespace v8 { | 14 namespace v8 { |
14 namespace internal { | 15 namespace internal { |
15 | 16 |
16 using compiler::Node; | 17 using compiler::Node; |
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1754 // 5. Return ? Invoke(promise, "then", « thenFinally, catchFinally »). | 1755 // 5. Return ? Invoke(promise, "then", « thenFinally, catchFinally »). |
1755 Node* const result = | 1756 Node* const result = |
1756 CallJS(call_callable, context, then, promise, var_then_finally.value(), | 1757 CallJS(call_callable, context, then, promise, var_then_finally.value(), |
1757 var_catch_finally.value()); | 1758 var_catch_finally.value()); |
1758 Return(result); | 1759 Return(result); |
1759 } | 1760 } |
1760 } | 1761 } |
1761 | 1762 |
1762 } // namespace internal | 1763 } // namespace internal |
1763 } // namespace v8 | 1764 } // namespace v8 |
OLD | NEW |