Lines Matching refs:node
23 void AsyncFunctionBuilder::DirectReturn(const ir::AstNode *node) const
25 pg_->AsyncFunctionResolve(node, funcObj_);
26 pg_->EmitReturn(node);
29 void AsyncFunctionBuilder::ImplicitReturn(const ir::AstNode *node) const
31 pg_->LoadConst(node, Constant::JS_UNDEFINED);
32 DirectReturn(node);
35 void AsyncFunctionBuilder::Prepare(const ir::ScriptFunction *node) const
37 pg_->AsyncFunctionEnter(node);
38 pg_->StoreAccumulator(node, funcObj_);
39 pg_->SetLabel(node, catchTable_->LabelSet().TryBegin());
42 void AsyncFunctionBuilder::CleanUp(const ir::ScriptFunction *node) const
46 pg_->SetLabel(node, labelSet.TryEnd());
47 pg_->SetLabel(node, labelSet.CatchBegin());
48 pg_->AsyncFunctionReject(node, funcObj_);
49 pg_->EmitReturn(node);
50 pg_->SetLabel(node, labelSet.CatchEnd());