/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | arrowFunctionExpression.cpp | 29 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 …]
|
D | functionExpression.cpp | 29 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 …]
|
D | arrowFunctionExpression.h | 37 : Expression(AstNodeType::ARROW_FUNCTION_EXPRESSION), func_(func) in ArrowFunctionExpression() 43 return func_; in Function() 48 return func_; in Function() 58 ScriptFunction *func_;
|
D | functionExpression.h | 36 …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/ |
D | functionDeclaration.cpp | 29 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()
|
D | functionDeclaration.h | 36 …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/ |
D | typeExtractorEmitter.cpp | 33 …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()
|
D | emitter.cpp | 49 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 …]
|
D | emitter.h | 69 return func_; in Function() 97 panda::pandasm::Function *func_ {};
|
D | typeExtractorEmitter.h | 56 panda::pandasm::Function *func_; variable
|
/arkcompiler/runtime_core/libark_defect_scan_aux/ |
D | callee_info.cpp | 48 return func_; in GetCallee() 84 func_ = func; in SetCallee()
|
/arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
D | callee_info.h | 58 const Function *func_ {nullptr};
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | debug_info.cpp | 61 explicit AtReturn(F func) : func_(func) {} in AtReturn() 65 func_(); in ~AtReturn() 72 F func_; member in panda::AtReturn
|