Home
last modified time | relevance | path

Searched refs:funcScope (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DregScope.cpp93 const auto *funcScope = cg_->Scope()->AsFunctionVariableScope(); in InitializeParams() local
96 for (auto *param : funcScope->ParamScope()->Params()) { in InitializeParams()
102 for (const auto it : funcScope->OrderedBindings(cg_->Allocator())) { in InitializeParams()
115 cg_->debugInfo_.VariableDebugInfo().push_back(funcScope); in InitializeParams()
127 const auto *funcScope = pg->Scope()->AsFunctionVariableScope(); in FunctionRegScope() local
130 if (funcScope->NeedLexEnv()) { in FunctionRegScope()
131 pg->NewLexEnv(node, funcScope->LexicalSlots()); in FunctionRegScope()
149 if (funcScope->IsModuleScope()) { in FunctionRegScope()
H A DETSemitter.cpp111 auto *funcScope = scriptFunc->Scope(); in GenScriptFunction() local
112 auto *paramScope = funcScope->ParamScope(); in GenScriptFunction()
114 auto func = pandasm::Function(funcScope->InternalName().Mutf8(), EXTENSION); in GenScriptFunction()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp290 auto *funcScope = scriptFunc->Scope(); in BuildInternalName() local
294 funcScope->BindName(name); in BuildInternalName()
295 funcScope->BindInternalName(BuildFunctionName(name, idx)); in BuildInternalName()
494 void VarBinder::AddCompilableFunctionScope(varbinder::FunctionScope *funcScope) in AddCompilableFunctionScope() argument
496 functionScopes_.push_back(funcScope); in AddCompilableFunctionScope()
501 auto *funcScope = func->Scope(); in VisitScriptFunction() local
503 ASSERT(funcScope != nullptr); in VisitScriptFunction()
504 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope()); in VisitScriptFunction()
521 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in VisitScriptFunction()
660 void VarBinder::LookUpMandatoryReferences(const FunctionScope *funcScope, boo argument
679 [[maybe_unused]] auto *funcScope = *iter++; AddMandatoryParams() local
[all...]
H A DETSBinder.cpp917 auto *funcScope = scriptFunc->Scope(); in BuildInternalName() local
918 funcScope->BindName(recordTable_->RecordName()); in BuildInternalName()
922 recordTable_->Signatures().push_back(funcScope); in BuildInternalName()
940 auto *const funcScope = scriptFunc->Scope(); in BuildInternalNameWithCustomRecordTable() local
941 funcScope->BindName(recordTable->RecordName()); in BuildInternalNameWithCustomRecordTable()
945 recordTable->Signatures().push_back(funcScope); in BuildInternalNameWithCustomRecordTable()
962 auto *funcScope = func->Scope(); in BuildFunctionName() local
965 ASSERT(func->IsArrow() || !funcScope->Name().Empty()); in BuildFunctionName()
966 ss << (func->IsExternalOverload() ? funcScope->InternalName() : funcScope in BuildFunctionName()
[all...]
H A Dvarbinder.h229 void LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj);
249 void AddCompilableFunctionScope(varbinder::FunctionScope *funcScope);
H A Dscope.h463 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() argument
465 functionScope_ = funcScope; in BindFunctionScope()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DregScope.cpp97 const auto *funcScope = pg_->Scope()->AsFunctionVariableScope(); in FunctionRegScope() local
99 for (auto *param : funcScope->ParamScope()->Params()) { in FunctionRegScope()
108 for (const auto &[_, var] : funcScope->Bindings()) { in FunctionRegScope()
120 pg_->debugInfo_.variableDebugInfo.push_back(funcScope); in FunctionRegScope()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp374 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func) in BuildFunction() argument
376 if (funcScope->InFunctionScopes()) { in BuildFunction()
379 functionScopes_.push_back(funcScope); in BuildFunction()
380 funcScope->SetInFunctionScopes(); in BuildFunction()
382 funcScope->SetSelfScopeName(name); in BuildFunction()
384 funcScope->BindNameWithScopeInfo(name, util::UString(recordName, Allocator()).View()); in BuildFunction()
386 anonymousFunctionNames_[func] = util::UString(funcScope->InternalName().Mutf8(), Allocator()).View(); in BuildFunction()
389 LegacyBuildFunction(funcScope, name, func); in BuildFunction()
393 void Binder::LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func) in LegacyBuildFunction() argument
402 funcScope in LegacyBuildFunction()
441 auto *funcScope = scriptFunc->Scope(); BuildScriptFunction() local
781 auto *funcScope = scriptFunc->Scope(); ResolveReference() local
971 [[maybe_unused]] auto *funcScope = *iter++; AddMandatoryParams() local
[all...]
H A Dbinder.h206 void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func = nullptr);
207 void LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func = nullptr);
H A Dscope.h671 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() argument
673 functionScope_ = funcScope; in BindFunctionScope()
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Dhoisting.cpp53 auto *funcScope = scope->EnclosingFunctionVariableScope(); in HoistVar() local
54 CHECK_NOT_NULL(funcScope); in HoistVar()
55 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DlambdaLowering.cpp254 auto *funcScope = func->Scope(); in SetUpCalleeMethod() local
255 auto *paramScope = funcScope->ParamScope(); in SetUpCalleeMethod()
290 varBinder->ResolveReferencesForScopeWithContext(func, funcScope); in SetUpCalleeMethod()
309 auto *funcScope = cmInfo->body == nullptr ? allocator->New<varbinder::FunctionScope>(allocator, paramScope) in GetAndApplyFunctionScope() local
313 funcScope->BindName(info->calleeClass->Definition()->TsType()->AsETSObjectType()->AssemblerName()); in GetAndApplyFunctionScope()
314 func->SetScope(funcScope); in GetAndApplyFunctionScope()
317 cmInfo->body->AsBlockStatement()->SetScope(funcScope); in GetAndApplyFunctionScope()
321 return funcScope; in GetAndApplyFunctionScope()
367 auto funcScope = GetAndApplyFunctionScope(ctx, info, cmInfo, paramScope, func); in CreateCalleeMethod() local
375 funcScope in CreateCalleeMethod()
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dfunction.cpp2032 auto *funcScope = funcCtx.GetScope(); in TransformTraillingLambda() local
2033 funcScope->BindParamScope(funcParamScope); in TransformTraillingLambda()
2034 funcParamScope->BindFunctionScope(funcScope); in TransformTraillingLambda()
2040 var->SetScope(funcScope); in TransformTraillingLambda()
2041 funcScope->InsertBinding(var->Name(), var); in TransformTraillingLambda()
2050 funcNode->SetScope(funcScope); in TransformTraillingLambda()
2051 funcScope->BindNode(funcNode); in TransformTraillingLambda()
2054 trailingBlock->SetScope(funcScope); in TransformTraillingLambda()
2055 ReplaceScope(funcNode->Body(), trailingBlock, funcScope); in TransformTraillingLambda()
2069 auto *funcScope in ExtendArgumentsWithFakeLamda() local
[all...]
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp1927 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsModule() local
1928 binder::FunctionParamScope *funcParamScope = funcScope->ParamScope(); in CreateCallExpressionForTsModule()
1940 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsModule()
1941 tsModuleList_.push_back({paramName, funcScope}); in CreateCallExpressionForTsModule()
1949 blockNode = AllocNode<ir::BlockStatement>(funcScope, std::move(statements)); in CreateCallExpressionForTsModule()
1952 blockNode = AllocNode<ir::BlockStatement>(funcScope, in CreateCallExpressionForTsModule()
1956 funcScope->AddBindsFromParam(); in CreateCallExpressionForTsModule()
1959 funcNode = AllocNode<ir::ScriptFunction>(funcScope, std::move(params), nullptr, blockNode, nullptr, in CreateCallExpressionForTsModule()
1962 funcScope->BindNode(funcNode); in CreateCallExpressionForTsModule()
2066 binder::FunctionScope *funcScope in CreateCallExpressionForTsEnum() local
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DscopesInitPhase.cpp804 auto *funcScope = funcCtx.GetScope(); in VisitClassStaticBlock() local
806 func->Body()->AsBlockStatement()->SetScope(funcScope); in VisitClassStaticBlock()
807 BindScopeNode(funcScope, func); in VisitClassStaticBlock()
809 BindFunctionScopes(funcScope, funcParamScope); in VisitClassStaticBlock()

Completed in 25 milliseconds