diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins-async-function-gen.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins-async-function-gen.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/src/builtins/builtins-async-function-gen.cc b/deps/v8/src/builtins/builtins-async-function-gen.cc index aec64b9ccd3..e84442295cf 100644 --- a/deps/v8/src/builtins/builtins-async-function-gen.cc +++ b/deps/v8/src/builtins/builtins-async-function-gen.cc @@ -271,10 +271,12 @@ void AsyncFunctionBuiltinsAssembler::AsyncFunctionAwait( Goto(&after_debug_hook); BIND(&after_debug_hook); - Await(context, async_function_object, value, outer_promise, - Context::ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, - Context::ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, - is_predicted_as_caught); + TNode<SharedFunctionInfo> on_resolve_sfi = + AsyncFunctionAwaitResolveSharedFunConstant(); + TNode<SharedFunctionInfo> on_reject_sfi = + AsyncFunctionAwaitRejectSharedFunConstant(); + Await(context, async_function_object, value, outer_promise, on_resolve_sfi, + on_reject_sfi, is_predicted_as_caught); // Return outer promise to avoid adding an load of the outer promise before // suspending in BytecodeGenerator. |