5 #ifndef V8_BUILTINS_BUILTINS_ASYNC_GEN_H_ 6 #define V8_BUILTINS_BUILTINS_ASYNC_GEN_H_ 8 #include "src/builtins/builtins-promise-gen.h" 25 Node* on_resolve_context_index,
Node* on_reject_context_index,
26 Node* is_predicted_as_caught);
28 int on_resolve_context_index,
int on_reject_context_index,
29 Node* is_predicted_as_caught) {
30 return Await(context, generator, value, outer_promise,
31 IntPtrConstant(on_resolve_context_index),
32 IntPtrConstant(on_reject_context_index),
33 is_predicted_as_caught);
36 int on_resolve_context_index,
int on_reject_context_index,
37 bool is_predicted_as_caught) {
38 return Await(context, generator, value, outer_promise,
39 on_resolve_context_index, on_reject_context_index,
40 BooleanConstant(is_predicted_as_caught));
45 Node* CreateUnwrapClosure(
Node*
const native_context,
Node*
const done);
48 void InitializeNativeClosure(
Node* context,
Node* native_context,
49 Node*
function,
Node* context_index);
50 Node* AllocateAsyncIteratorValueUnwrapContext(
Node* native_context,
54 Node* outer_promise,
Node* on_resolve_context_index,
55 Node* on_reject_context_index,
Node* is_predicted_as_caught);
57 Node* outer_promise,
Node* on_resolve_context_index,
58 Node* on_reject_context_index,
59 Node* is_predicted_as_caught);
65 #endif // V8_BUILTINS_BUILTINS_ASYNC_GEN_H_