/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | graph_checker_macros.h | 29 #define CHECKER_DO_IF_NOT(cond, func) ASSERT_DO((cond), func) 32 #define CHECKER_DO_IF_NOT_VISITOR_INTERNAL(visitor, klass, cond, func) ASSERT_DO((cond), func) 35 #define CHECKER_DO_IF_NOT_AND_PRINT(cond, func) ASSERT_DO((cond), func; PrintFailedMethodAndPass();) 37 #define CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(visitor, cond, func) \ 38 ASSERT_DO((cond), func; PrintFailedMethodAndPassVisitor(visitor);) 76 #define ABCKIT_DO_IF_NOT_VISITOR(visitor, cond, func) \ 78 func; \ [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/ |
H A D | json_build_helpers.h | 26 void AddElement(std::function<void(JsonArrayBuilder &)> &func, T value) in AddElement() argument 28 func = [func = std::move(func), value = std::move(value)](JsonArrayBuilder &builder) { in AddElement() 29 func(builder); in AddElement() 35 void AddProperty(std::function<void(JsonObjectBuilder &)> &func, const char *key, T value) in AddProperty() argument 37 func = [func = std::move(func), key, value = std::move(value)](JsonObjectBuilder &builder) { in AddProperty() 38 func(builde in AddProperty() [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | stack_walker-inl.h | 27 bool InvokeCallback(Func func, [[maybe_unused]] compiler::VRegInfo regInfo, VRegRef &vreg) in InvokeCallback() argument 33 if (!func(regInfo, vreg)) { in InvokeCallback() 37 if (!func(vreg)) { in InvokeCallback() 45 bool StackWalker::IterateAllRegsForCFrame(Func func) in IterateAllRegsForCFrame() argument 59 if (!InvokeCallback<false, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateAllRegsForCFrame() 68 bool StackWalker::IterateRegsForCFrameStatic(Func func) in IterateRegsForCFrameStatic() argument 80 if (!InvokeCallback<OBJECTS, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateRegsForCFrameStatic() 88 codeInfo_.EnumerateStaticRoots(stackmap_, [this, &cframe, &func](VRegInfo regInfo) { in IterateRegsForCFrameStatic() 93 return !resReg.HasObject() || InvokeCallback<OBJECTS, WITH_REG_INFO>(func, regInfo, resReg); in IterateRegsForCFrameStatic() 98 return IterateAllRegsForCFrame<WITH_REG_INFO>(func); in IterateRegsForCFrameStatic() 102 IterateRegsForCFrameDynamic(Func func) IterateRegsForCFrameDynamic() argument 135 IterateRegsForIFrameInternal(F frameHandler, Func func) IterateRegsForIFrameInternal() argument 156 IterateRegsForIFrame(Func func) IterateRegsForIFrame() argument 171 IterateRegs(Func func) IterateRegs() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_symbol_builder.cpp | 30 // when func is null, create global symbol, otherwise create local symbol 32 MIRFunction *func, uint8 scpID) const in CreateSymbol() 35 (func != nullptr) ? func->GetSymTab()->CreateSymbol(scpID) : GlobalTables::GetGsymTable().CreateSymbol(scpID); in CreateSymbol() 41 if (func != nullptr) { in CreateSymbol() 42 (void)func->GetSymTab()->AddToStringSymbolMap(*st); in CreateSymbol() 50 MIRSymbol *MIRSymbolBuilder::CreatePregFormalSymbol(TyIdx tyIdx, PregIdx pRegIdx, MIRFunction &func) const in CreatePregFormalSymbol() 52 MIRSymbol *st = func.GetSymTab()->CreateSymbol(kScopeLocal); in CreatePregFormalSymbol() 57 MIRPregTable *pregTab = func.GetPregTab(); in CreatePregFormalSymbol() 31 CreateSymbol(TyIdx tyIdx, GStrIdx strIdx, MIRSymKind mClass, MIRStorageClass sClass, MIRFunction *func, uint8 scpID) const CreateSymbol() argument
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | ir_generator.rb | 22 @func = nil 25 def generate_function(func) 26 @func = func 28 Output.scoped_puts "inline bool #{func.name}(Inst* source_inst) {" do 32 Output << "[[maybe_unused]] auto current_inst = source_inst;" if @func.simple_control_flow? 33 func.params.keys.each_with_index do |_, index| 37 func.constants.each { |_, inst| generate_instruction(inst) } 39 if @func.simple_control_flow? 40 @func [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | inline_devirt.cpp | 46 auto &func = node.getFunction(); in RunCheckExternal() local 47 if (func.isDeclaration()) { in RunCheckExternal() 51 passInstrumentation_->runBeforePass<llvm::Function>(externalPass, func); in RunCheckExternal() 54 auto preservedAnalysesExternal = externalPass.run(func, *functionAnalysisManager_); in RunCheckExternal() 55 passInstrumentation_->runAfterPass<llvm::Function>(externalPass, func, preservedAnalysesExternal); in RunCheckExternal() 60 functionAnalysisManager_->invalidate(func, preservedAnalysesExternal); in RunCheckExternal() 98 auto &func = node.getFunction(); in RunDevirt() local 99 if (func.isDeclaration()) { in RunDevirt() 102 [[maybe_unused]] auto shouldRunDevirt = passInstrumentation_->runBeforePass<llvm::Function>(devirtPass, func); in RunDevirt() 105 auto preservedAnalysesDevirt = devirtPass.run(func, *functionAnalysisManager in RunDevirt() [all...] |
H A D | insert_safepoints.cpp | 57 static bool InsertSafepointOnEntry(Function &func, Function *poll) in InsertSafepointOnEntry() argument 61 for (BasicBlock &block : func) { in InsertSafepointOnEntry() 69 auto insertInst = func.getEntryBlock().getFirstNonPHI(); in InsertSafepointOnEntry() 80 static bool InsertSafepointAfterIntrinsics(Function &func, Function *poll) in InsertSafepointAfterIntrinsics() argument 83 for (auto &block : func) { in InsertSafepointAfterIntrinsics() 98 static bool RunLegacyInserter(Function &func) in RunLegacyInserter() argument 100 llvm::legacy::FunctionPassManager manager(func.getParent()); in RunLegacyInserter() 104 auto changed = manager.run(func); in RunLegacyInserter()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | profiler_stub_builder.h | 90 void PGOProfiler(GateRef glue, GateRef pc, GateRef func, GateRef profileTypeInfo, 93 void PGOProfiler(GateRef glue, GateRef func, GateRef profileTypeInfo, GateRef slotIdOrOffset, 96 void TryDump(GateRef glue, GateRef func, GateRef profileTypeInfo); 97 void TryPreDump(GateRef glue, GateRef func, GateRef profileTypeInfo); 100 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef target, GateRef profileTypeInfo); 102 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef target, GateRef profileTypeInfo); 105 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef profileTypeInfo, GateRef type); 107 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef constructor, GateRef profileTypeInfo); 109 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef newObj, GateRef profileTypeInfo); 110 void ProfileBranch(GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRe [all...] |
/arkcompiler/runtime_core/libark_defect_scan_aux/ |
H A D | callee_info.cpp | 81 void CalleeInfo::SetCallee(const Function *func) in SetCallee() argument 83 ASSERT(func != nullptr); in SetCallee() 84 func_ = func; in SetCallee() 86 SetCalleeArgCount(static_cast<int>(func->GetArgCount())); in SetCallee() 87 SetFunctionName(func->GetFunctionName()); in SetCallee() 88 SetClass(func->GetClass()); in SetCallee() 90 SetClassName(func->GetRecordName() + class_->GetClassName()); in SetCallee()
|
H A D | abc_file.cpp | 212 ssize_t AbcFile::GetLineNumberByInst(const Function *func, const Inst &inst) const 214 auto &line_number_table = debug_info_->GetLineNumberTable(func->GetMethodId()); 377 Function *func = func_inst_pair.first; 379 if (func == nullptr || !ld_lex_inst.IsInstLdLexVar()) { 386 Function *cur_func = func; 439 const Function *func = func_inst_pair.first; 441 if (func == nullptr || !ld_global_inst.IsInstLdGlobal()) { 446 std::string record_name = func->GetRecordName(); 646 std::unique_ptr<Function> func = 648 if (func [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_function.cpp | 29 void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionKind kind) in InitializeJSFunction() argument 31 InitializeWithDefaultValue(thread, func); in InitializeJSFunction() 37 func->SetPropertyInlinedProps(thread, PROTOTYPE_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 39 func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 41 func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 49 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunction() 58 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunction() 63 thread, JSHandle<JSObject>(func), globalConst->GetHandledPrototypeString(), desc, SCheckMode::SKIP); in InitializeJSFunction() 68 func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 70 func in InitializeJSFunction() 74 InitializeSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionKind kind) InitializeSFunction() argument 90 InitializeWithDefaultValue(JSThread *thread, const JSHandle<JSFunction> &func) InitializeWithDefaultValue() argument 107 NewJSFunctionPrototype(JSThread *thread, const JSHandle<JSFunction> &func) NewJSFunctionPrototype() argument 163 JSHandle<JSFunction> func = JSHandle<JSFunction>::Cast(self); PrototypeGetter() local 400 MakeConstructor(JSThread *thread, const JSHandle<JSFunction> &func, const JSHandle<JSTaggedValue> &proto, bool writable) MakeConstructor() argument 446 JSHandle<JSTaggedValue> func = info->GetFunction(); Call() local 575 InvokeOptimizedEntrypoint(JSThread *thread, JSHandle<JSFunction> func, EcmaRuntimeCallInfo *info) InvokeOptimizedEntrypoint() argument 660 GetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func) GetFunctionName() argument 667 SetFunctionName(JSThread *thread, const JSHandle<JSFunctionBase> &func, const JSHandle<JSTaggedValue> &name, const JSHandle<JSTaggedValue> &prefix) SetFunctionName() argument 724 SetFunctionLength(JSThread *thread, const JSHandle<JSFunction> &func, JSTaggedValue length, bool cfg) SetFunctionLength() argument 811 SetFunctionNameNoPrefix(JSThread *thread, JSFunction *func, JSTaggedValue name) SetFunctionNameNoPrefix() argument 936 InitializeJSFunction(JSThread *thread, [[maybe_unused]] const JSHandle<GlobalEnv> &env, const JSHandle<JSFunction> &func, FunctionKind kind) InitializeJSFunction() argument 1046 SetProfileTypeInfo(const JSThread *thread, const JSHandle<JSFunction> &func, const JSHandle<JSTaggedValue> &value, BarrierMode mode) SetProfileTypeInfo() argument 1118 InitializeForConcurrentFunction(JSThread *thread, JSHandle<JSFunction> &func) InitializeForConcurrentFunction() argument [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/ |
H A D | generic_call_params.js | 46 function applyFunctionGenericUnion(value1, value2, func) { 47 return func(value1, value2); 49 function applyFunctionGeneric(value1, value2, func) { 50 return func(value1, value2); 52 function applyFunctionGenericTuple(value1, value2, func) { 53 return func(value1, value2); 95 function applyFunctionGenericArray(values, func) { 98 result = func(result, values[i]); 106 function applyFunWithConstraints(value1, value2, func) { 107 return func(value [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | cfgo.h | 33 explicit ChainingPattern(CGFunc &func) : OptimizationPattern(func) in ChainingPattern() argument 54 explicit FlipBRPattern(CGFunc &func, LoopAnalysis &loop) : OptimizationPattern(func), loopInfo(loop) in FlipBRPattern() argument 84 explicit UnreachBBPattern(CGFunc &func) : OptimizationPattern(func) in UnreachBBPattern() argument 103 explicit EmptyBBPattern(CGFunc &func) : OptimizationPattern(func) in EmptyBBPattern() argument 115 CFGOptimizer(CGFunc &func, MemPool &memPool, LoopAnalysis &loop) : Optimizer(func, memPoo argument [all...] |
H A D | cg_cfg.h | 23 explicit InsnVisitor(CGFunc &func) : cgFunc(&func) {} in InsnVisitor() argument 68 void InitInsnVisitor(CGFunc &func) const; 81 static void MergeBB(BB &merger, BB &mergee, CGFunc &func); 95 static bool InSwitchTable(LabelIdx label, const CGFunc &func); 99 static void FindAndMarkUnreachable(CGFunc &func); 100 void FlushUnReachableStatusAndRemoveRelations(BB &bb, const CGFunc &func) const;
|
H A D | optimize_common.h | 35 explicit OptimizationPattern(CGFunc &func) in OptimizationPattern() argument 36 : patternName(func.GetMemoryPool()), cgFunc(&func), dotColor(func.GetMemoryPool()) in OptimizationPattern() 72 Optimizer(CGFunc &func, MemPool &memPool) in Optimizer() argument 73 : cgFunc(&func), in Optimizer() 80 func.GetTheCFG()->InitInsnVisitor(func); in Optimizer()
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info_builder.h | 99 constexpr void EnumerateTables(Func func) in EnumerateTables() argument 102 func(index++, &stackMaps_); in EnumerateTables() 103 func(index++, &inlineInfos_); in EnumerateTables() 104 func(index++, &rootsRegMasks_); in EnumerateTables() 105 func(index++, &rootsStackMasks_); in EnumerateTables() 106 func(index++, &methodIds_); in EnumerateTables() 107 func(index++, &vregMasks_); in EnumerateTables() 108 func(index++, &vregsMap_); in EnumerateTables() 109 func(index++, &vregsCatalogue_); in EnumerateTables() 110 func(inde in EnumerateTables() [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSemitter.cpp | 114 auto func = pandasm::Function(funcScope->InternalName().Mutf8(), EXTENSION); in GenScriptFunction() local 115 func.params.reserve(paramScope->Params().size()); in GenScriptFunction() 118 func.params.emplace_back(PandasmTypeWithRank(var->TsType()), EXTENSION); in GenScriptFunction() 122 func.returnType = pandasm::Type(Signatures::PRIMITIVE_VOID, 0); in GenScriptFunction() 124 func.returnType = PandasmTypeWithRank(scriptFunc->Signature()->ReturnType()); in GenScriptFunction() 135 func.metadata->SetAccessFlags(accessFlags); in GenScriptFunction() 137 return func; in GenScriptFunction() 142 auto func = GenScriptFunction(Cg()->RootNode()->AsScriptFunction()); in GenFunctionSignature() local 145 func.metadata->SetAttribute(Signatures::EXTERNAL); in GenFunctionSignature() 148 auto *funcElement = new pandasm::Function(func in GenFunctionSignature() 163 GenFunctionAnnotations([[maybe_unused]] pandasm::Function *func) GenFunctionAnnotations() argument 171 auto func = pandasm::Function(name, EXTENSION); GenExternalFunction() local 189 auto func = pandasm::Function(signature->InternalName().Mutf8(), EXTENSION); GenExternalFunction() local 221 auto func = scriptFunc->Declare() ? GenExternalFunction(scriptFunc->Signature(), scriptFunc->IsConstructor()) GenAnnotation() local 255 auto func = GenScriptFunction(signature->Node()->AsScriptFunction()); GenExternalRecord() local 324 auto func = GenScriptFunction(scriptFunc); GenInterfaceMethodDefinition() local 381 auto func = GenExternalFunction(signature, true); GenGlobalArrayRecord() local [all...] |
H A D | JSemitter.cpp | 28 auto *func = new pandasm::Function(Cg()->InternalName().Mutf8(), panda_file::SourceLang::ECMASCRIPT); in GenFunctionSignature() local 29 GetProgramElement()->SetFunction(func); in GenFunctionSignature() 32 func->params.reserve(paramCount); in GenFunctionSignature() 35 func->params.emplace_back(pandasm::Type("any", 0), panda_file::SourceLang::ECMASCRIPT); in GenFunctionSignature() 38 func->regsNum = VReg::REG_START - Cg()->TotalRegsNum(); in GenFunctionSignature() 39 func->returnType = pandasm::Type("any", 0); in GenFunctionSignature() 41 return func; in GenFunctionSignature() 54 void JSFunctionEmitter::GenFunctionAnnotations(pandasm::Function *func) in GenFunctionAnnotations() argument 72 func->metadata->AddAnnotations({funcAnnotationData}); in GenFunctionAnnotations()
|
H A D | emitter.cpp | 132 auto *func = GenFunctionSignature(); in Generate() local 133 GenFunctionInstructions(func); in Generate() 134 GenVariablesDebugInfo(func); in Generate() 135 GenSourceFileDebugInfo(func); in Generate() 136 GenFunctionCatchTables(func); in Generate() 137 GenFunctionAnnotations(func); in Generate() 227 void FunctionEmitter::GenFunctionInstructions(pandasm::Function *func) in GenFunctionInstructions() argument 229 func->ins.reserve(cg_->Insns().size()); in GenFunctionInstructions() 234 auto &pandaIns = func->ins.emplace_back(); in GenFunctionInstructions() 241 void FunctionEmitter::GenFunctionAnnotations(pandasm::Function *func) in GenFunctionAnnotations() argument 262 GenFunctionCatchTables(pandasm::Function *func) GenFunctionCatchTables() argument 278 GenSourceFileDebugInfo(pandasm::Function *func) GenSourceFileDebugInfo() argument 315 GenScopeVariableInfoEnd(pandasm::Function *func, const varbinder::Scope *scope, uint32_t count, uint32_t scopeStart, const VariablesStartsMap &starts) const GenScopeVariableInfoEnd() argument 357 GenScopeVariableInfo(pandasm::Function *func, const varbinder::Scope *scope) const GenScopeVariableInfo() argument 396 GenVariablesDebugInfo(pandasm::Function *func) GenVariablesDebugInfo() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | function.cpp | 48 Type *TSChecker::HandleFunctionReturn(ir::ScriptFunction *func) in HandleFunctionReturn() argument 50 if (func->ReturnTypeAnnotation() != nullptr) { in HandleFunctionReturn() 51 func->ReturnTypeAnnotation()->Check(this); in HandleFunctionReturn() 52 Type *returnType = func->ReturnTypeAnnotation()->GetType(this); in HandleFunctionReturn() 54 if (func->IsArrow() && func->Body()->IsExpression()) { in HandleFunctionReturn() 55 ElaborateElementwise(returnType, func->Body()->AsExpression(), func->Body()->Start()); in HandleFunctionReturn() 60 func->ReturnTypeAnnotation()->Start()); in HandleFunctionReturn() 65 func, fun in HandleFunctionReturn() 100 ThrowReturnTypeCircularityError(ir::ScriptFunction *func) ThrowReturnTypeCircularityError() argument 529 ValidateSubsequentNode(const ir::Statement *const subsequentNode, const ir::ScriptFunction *const func) ValidateSubsequentNode() argument 574 ir::ScriptFunction *func = *it; InferFunctionDeclarationType() local 663 CheckAllCodePathsInNonVoidFunctionReturnOrThrow(ir::ScriptFunction *func, lexer::SourcePosition lineInfo, const char *errMsg) CheckAllCodePathsInNonVoidFunctionReturnOrThrow() argument [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_type_comptime_traits.h | 130 * to func is passed argument, such that 133 auto EtsPrimitiveTypeEnumToComptimeConstant(EtsType type, F &&func) in EtsPrimitiveTypeEnumToComptimeConstant() argument 137 return func(std::integral_constant<EtsType, EtsType::BOOLEAN> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 140 return func(std::integral_constant<EtsType, EtsType::BYTE> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 143 return func(std::integral_constant<EtsType, EtsType::CHAR> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 146 return func(std::integral_constant<EtsType, EtsType::SHORT> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 149 return func(std::integral_constant<EtsType, EtsType::INT> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 152 return func(std::integral_constant<EtsType, EtsType::LONG> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 155 return func(std::integral_constant<EtsType, EtsType::FLOAT> {}); in EtsPrimitiveTypeEnumToComptimeConstant() 158 return func(st in EtsPrimitiveTypeEnumToComptimeConstant() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | function.cpp | 50 Type *Checker::HandleFunctionReturn(const ir::ScriptFunction *func) in HandleFunctionReturn() argument 52 if (func->ReturnTypeAnnotation()) { in HandleFunctionReturn() 53 func->ReturnTypeAnnotation()->Check(this); in HandleFunctionReturn() 54 Type *returnType = func->ReturnTypeAnnotation()->AsTypeNode()->GetType(this); in HandleFunctionReturn() 56 if (func->IsArrow() && func->Body()->IsExpression()) { in HandleFunctionReturn() 57 ElaborateElementwise(returnType, func->Body()->AsExpression(), func->Body()->Start()); in HandleFunctionReturn() 62 func->ReturnTypeAnnotation()->Start()); in HandleFunctionReturn() 67 func, fun in HandleFunctionReturn() 102 ThrowReturnTypeCircularityError(const ir::ScriptFunction *func) ThrowReturnTypeCircularityError() argument 562 const ir::ScriptFunction *func = *it; InferFunctionDeclarationType() local 683 CheckAllCodePathsInNonVoidFunctionReturnOrThrow(const ir::ScriptFunction *func, lexer::SourcePosition lineInfo, const char *errMsg) CheckAllCodePathsInNonVoidFunctionReturnOrThrow() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_function_stub_builder.cpp | 34 //1. If IsCallable(func) is false, throw a TypeError exception
in PrototypeApply() 47 // a. Return Call(func, thisArg).
in PrototypeApply() 87 // 6. Return Call(func, thisArg, argList).
in PrototypeApply() 184 // 1. If IsCallable(func) is false, throw a TypeError exception.
in PrototypeCall() 185 GateRef func = thisValue;
in PrototypeCall() local 186 BRANCH(TaggedIsHeapObject(func), &funcIsHeapObject, slowPath);
in PrototypeCall() 188 BRANCH(IsCallable(func), &funcIsCallable, slowPath);
in PrototypeCall() 202 // 5. Return Call(func, thisArg, argList).
in PrototypeCall() 208 CallStubBuilder callBuilder(this, glue, func, Int32(0), 0, nullptr, Circuit::NullGate(), callArgs);
in PrototypeCall() 218 CallStubBuilder callBuilder(this, glue, func, Int3 in PrototypeCall() 491 InitializeSFunction(GateRef glue, GateRef func, GateRef kind, FunctionKind getKind) InitializeSFunction() argument 562 InitializeJSFunction(GateRef glue, GateRef func, GateRef kind, FunctionKind getKind) InitializeJSFunction() argument 693 InitializeFunctionWithMethod(GateRef glue, GateRef func, GateRef method, GateRef hclass) InitializeFunctionWithMethod() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | cg_cfg.cpp | 155 void CGCFG::InitInsnVisitor(CGFunc &func) const in InitInsnVisitor() 157 insnVisitor = func.NewInsnModifier(); in InitInsnVisitor() 219 void CGCFG::MergeBB(BB &merger, BB &mergee, CGFunc &func) in MergeBB() argument 223 if (func.GetLastBB()->GetId() == mergee.GetId()) { in MergeBB() 224 func.SetLastBB(*prevLast); in MergeBB() 227 auto retIt = func.GetExitBBsVec().begin(); in MergeBB() 228 while (retIt != func.GetExitBBsVec().end()) { in MergeBB() 230 (void)func.EraseExitBBsVec(retIt); in MergeBB() 236 func.PushBackExitBBsVec(merger); in MergeBB() 239 auto noRetIt = func in MergeBB() 290 FindAndMarkUnreachable(CGFunc &func) FindAndMarkUnreachable() argument 492 InSwitchTable(LabelIdx label, const CGFunc &func) InSwitchTable() argument [all...] |
/arkcompiler/ets_runtime/test/moduletest/arrayforeach/ |
H A D | arrayforeach.js | 23 let func = (item, index) => `${index}_${JSON.stringify(item)}`; 27 print(func(item, index)); 33 print(func(item, index)); 38 func(item, index); 44 func(item, index);
|