Lines Matching refs:node
24 void AsyncFunctionBuilder::DirectReturn(const ir::AstNode *node) const
26 pg_->AsyncFunctionResolve(node, funcObj_); // retVal is in acc
27 pg_->NotifyConcurrentResult(node);
29 // invokes the DirectReturn method, the EmitReturn needs to be associated with a valid node
31 pg_->EmitReturn(node);
34 void AsyncFunctionBuilder::ImplicitReturn(const ir::AstNode *node) const
37 pg_->LoadConst(node, Constant::JS_UNDEFINED);
38 DirectReturn(node);
41 void AsyncFunctionBuilder::ExplicitReturn(const ir::AstNode *node) const
43 DirectReturn(node);
46 void AsyncFunctionBuilder::Prepare(const ir::ScriptFunction *node)
48 pg_->AsyncFunctionEnter(node);
49 pg_->StoreAccumulator(node, funcObj_);
50 pg_->SetLabel(node, catchTable_->LabelSet().TryBegin());
53 void AsyncFunctionBuilder::CleanUp(const ir::ScriptFunction *node) const
58 pg_->SetLabel(node, labelSet.TryEnd());
59 pg_->SetLabel(node, labelSet.CatchBegin());
61 pg_->StoreAccumulator(node, exception);
62 pg_->AsyncFunctionReject(node, funcObj_);
63 pg_->NotifyConcurrentResult(node);
64 pg_->EmitReturn(node);
65 pg_->SetLabel(node, labelSet.CatchEnd());