Home
last modified time | relevance | path

Searched refs:func_ (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/expressions/
DarrowFunctionExpression.cpp29 cb(func_); in Iterate()
34 dumper->Add({{"type", "ArrowFunctionExpression"}, {"function", func_}}); in Dump()
39 pg->DefineFunction(func_, func_, func_->Scope()->InternalName()); in Compile()
46 if (func_->Parent()->Parent() && func_->Parent()->Parent()->IsVariableDeclarator() && in Check()
47 func_->Parent()->Parent()->AsVariableDeclarator()->Id()->IsIdentifier()) { in Check()
48 … funcVar = func_->Parent()->Parent()->AsVariableDeclarator()->Id()->AsIdentifier()->Variable(); in Check()
51 checker::ScopeContext scopeCtx(checker, func_->Scope()); in Check()
54 checker->CheckFunctionParameterDeclarations(func_->Params(), signatureInfo); in Check()
64 signature->SetReturnType(checker->HandleFunctionReturn(func_)); in Check()
66 if (!func_->Body()->IsExpression()) { in Check()
[all …]
DfunctionExpression.cpp29 cb(func_); in Iterate()
34 dumper->Add({{"type", "FunctionExpression"}, {"function", func_}}); in Dump()
39 pg->DefineFunction(func_, func_, func_->Scope()->InternalName()); in Compile()
46 if (func_->Parent()->Parent() && func_->Parent()->Parent()->IsVariableDeclarator() && in Check()
47 func_->Parent()->Parent()->AsVariableDeclarator()->Id()->IsIdentifier()) { in Check()
48 … funcVar = func_->Parent()->Parent()->AsVariableDeclarator()->Id()->AsIdentifier()->Variable(); in Check()
51 checker::ScopeContext scopeCtx(checker, func_->Scope()); in Check()
54 checker->CheckFunctionParameterDeclarations(func_->Params(), signatureInfo); in Check()
64 signature->SetReturnType(checker->HandleFunctionReturn(func_)); in Check()
66 func_->Body()->Check(checker); in Check()
[all …]
DarrowFunctionExpression.h37 : Expression(AstNodeType::ARROW_FUNCTION_EXPRESSION), func_(func) in ArrowFunctionExpression()
43 return func_; in Function()
48 return func_; in Function()
58 ScriptFunction *func_;
DfunctionExpression.h36 …tionExpression(ScriptFunction *func) : Expression(AstNodeType::FUNCTION_EXPRESSION), func_(func) {} in FunctionExpression()
40 return func_; in Function()
45 return func_; in Function()
55 ScriptFunction *func_;
/arkcompiler/ets_frontend/es2panda/ir/statements/
DfunctionDeclaration.cpp29 cb(func_); in Iterate()
34 …dumper->Add({{"type", func_->IsOverload() ? "TSDeclareFunction" : "FunctionDeclaration"}, {"functi… in Dump()
41 if (func_->IsOverload()) { in Check()
45 const util::StringView &funcName = func_->Id()->Name(); in Check()
49 checker::ScopeContext scopeCtx(checker, func_->Scope()); in Check()
55 func_->Body()->Check(checker); in Check()
62 if (func_) { in UpdateSelf()
63 func_ = std::get<ir::AstNode *>(cb(func_))->AsScriptFunction(); in UpdateSelf()
DfunctionDeclaration.h36 …ionDeclaration(ScriptFunction *func) : Statement(AstNodeType::FUNCTION_DECLARATION), func_(func) {} in FunctionDeclaration()
40 return func_; in Function()
50 ScriptFunction *func_;
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.cpp33 …er::TypeExtractorEmitter(const PandaGen *pg, panda::pandasm::Function *func) : pg_(pg), func_(func) in TypeExtractorEmitter()
98 if (func_->ins[index].opcode == panda::pandasm::Opcode::INVALID) { in GenFunctionTypeInfo()
110 …DCOUT << "[LOG] " << func_->name << ": " << func_->ins[index].ToString("", true, func_->regs_num) … in GenFunctionTypeInfo()
120 DCOUT << "[LOG]" << func_->name << ": -1 | " << pg_->TypedFunc().first << std::endl; in GenFunctionTypeInfo()
125 DCOUT << "[LOG]" << func_->name << ": -2 | " << pg_->TypedFunc().second << std::endl; in GenFunctionTypeInfo()
134 func_->name + "_" + std::to_string(literalId_--); in GenFunctionTypeInfo()
142 func_->metadata->AddAnnotations({ funcTypeAnnotation }); in GenFunctionTypeInfo()
173 func_->name + "_" + std::to_string(literalId_--); in GenImportOrDeclareTypeInfo()
187 func_->metadata->AddAnnotations({ funcTypeAnnotation }); in GenExportTypeInfo()
195 func_->metadata->AddAnnotations({ funcTypeAnnotation }); in GenDeclareTypeInfo()
Demitter.cpp49 func_ = allocator->New<panda::pandasm::Function>(pg->InternalName().Mutf8(), LANG_EXT); in FunctionEmitter()
52 func_->params.reserve(paramCount); in FunctionEmitter()
55 func_->params.emplace_back(panda::pandasm::Type("any", 0), LANG_EXT); in FunctionEmitter()
58 func_->regs_num = pg->TotalRegsNum(); in FunctionEmitter()
59 func_->return_type = panda::pandasm::Type("any", 0); in FunctionEmitter()
73 patchFixHelper->ProcessFunction(pg_, func_, literalBuffers_); in Generate()
84 func_->SetFunctionKind(static_cast<panda::panda_file::FunctionKind>(pg_->GetFunctionKind())); in GenFunctionKind()
89 func_->SetSlotsNum(pg_->GetCurrentSlot()); in GenIcSize()
191 func_->ins.reserve(pg_->Insns().size()); in GenFunctionInstructions()
194 auto &pandaIns = func_->ins.emplace_back(); in GenFunctionInstructions()
[all …]
Demitter.h69 return func_; in Function()
97 panda::pandasm::Function *func_ {};
DtypeExtractorEmitter.h56 panda::pandasm::Function *func_; variable
/arkcompiler/runtime_core/libark_defect_scan_aux/
Dcallee_info.cpp48 return func_; in GetCallee()
84 func_ = func; in SetCallee()
/arkcompiler/runtime_core/libark_defect_scan_aux/include/
Dcallee_info.h58 const Function *func_ {nullptr};
/arkcompiler/runtime_core/libpandabase/os/
Ddebug_info.cpp61 explicit AtReturn(F func) : func_(func) {} in AtReturn()
65 func_(); in ~AtReturn()
72 F func_; member in panda::AtReturn