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-async.h" | 5 #include "src/builtins/builtins-async-gen.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 using compiler::Node; | 10 using compiler::Node; |
11 | 11 |
12 Node* AsyncBuiltinsAssembler::Await( | 12 Node* AsyncBuiltinsAssembler::Await( |
13 Node* context, Node* generator, Node* value, Node* outer_promise, | 13 Node* context, Node* generator, Node* value, Node* outer_promise, |
14 const NodeGenerator1& create_closure_context, int on_resolve_context_index, | 14 const NodeGenerator1& create_closure_context, int on_resolve_context_index, |
15 int on_reject_context_index, bool is_predicted_as_caught) { | 15 int on_reject_context_index, bool is_predicted_as_caught) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 Bind(&do_perform_promise_then); | 80 Bind(&do_perform_promise_then); |
81 InternalPerformPromiseThen(context, wrapped_value, on_resolve, on_reject, | 81 InternalPerformPromiseThen(context, wrapped_value, on_resolve, on_reject, |
82 throwaway_promise, UndefinedConstant(), | 82 throwaway_promise, UndefinedConstant(), |
83 UndefinedConstant()); | 83 UndefinedConstant()); |
84 | 84 |
85 return wrapped_value; | 85 return wrapped_value; |
86 } | 86 } |
87 | 87 |
88 } // namespace internal | 88 } // namespace internal |
89 } // namespace v8 | 89 } // namespace v8 |
OLD | NEW |