Home
last modified time | relevance | path

Searched full:func (Results 1 – 25 of 1536) sorted by relevance

12345678910>>...62

/arkcompiler/runtime_core/static_core/runtime/include/
Dstack_walker-inl.h25 template <bool OBJECTS, bool WITH_REG_INFO, class VRegRef, typename Func>
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()
44 template <bool WITH_REG_INFO, typename Func>
45 bool StackWalker::IterateAllRegsForCFrame(Func func) in IterateAllRegsForCFrame() argument
59 if (!InvokeCallback<false, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateAllRegsForCFrame()
67 template <bool OBJECTS, bool WITH_REG_INFO, typename Func>
68 bool StackWalker::IterateRegsForCFrameStatic(Func func) in IterateRegsForCFrameStatic() argument
80 if (!InvokeCallback<OBJECTS, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateRegsForCFrameStatic()
[all …]
Dstack_walker.h136 template <typename Func>
137 bool IterateObjects(Func func) in IterateObjects() argument
139 return IterateRegs<true, false>(func); in IterateObjects()
142 template <typename Func>
143 bool IterateObjectsWithInfo(Func func) in IterateObjectsWithInfo() argument
145 return IterateRegs<true, true>(func); in IterateObjectsWithInfo()
148 template <typename Func>
149 bool IterateVRegsWithInfo(Func func) in IterateVRegsWithInfo() argument
151 return IterateRegs<false, true>(func); in IterateVRegsWithInfo()
288 template <bool OBJECTS, bool WITH_REG_INFO, typename Func>
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/03.bigint_literals/
Dbigint_func.params.yaml16 - { func: 'BigInt("1n")', res: 1n }
17 - { func: 'BigInt("1234567890n")', res: 1234567890n }
19 - { func: 'BigInt("1")', res: 1n }
20 - { func: 'BigInt("1234567890")', res: 1234567890n }
22 - { func: 'BigInt(1 as long)', res: 1n }
23 - { func: 'BigInt(1234567890 as long)', res: 1234567890n }
25 - { func: 'BigInt.asIntN(32, 0n)', res: 0n }
26 - { func: 'BigInt.asIntN(0, 12345678901234567890n)', res: 0n }
27 - { func: 'BigInt.asIntN(4, 16n)', res: 0n }
28 - { func: 'BigInt.asIntN(4, 15n)', res: -1n }
[all …]
/arkcompiler/ets_runtime/test/aottest/fast_call_builtins/
Dfast_call_builtins.ts29 let func = Math.sqrt
30 print(func(9))
31 func = Math.sin
32 print(func(9))
33 func = Math.cos
34 print(func(9))
35 func = Math.acos
36 print(func(9))
37 func = Math.atan
38 print(func(9))
[all …]
/arkcompiler/ets_runtime/test/moduletest/sendableclassuseimport/
DsendableUseLocalModuleValue.ts19 * @tc.type: FUNC
29 func(tag : string) {
42 func(tag : string) { method in LocalClass
51 new SendableLocalClass().func("SendableUseLocalModuleValue::start");
53 new LocalClass().func("SendableUseLocalModuleValue::start");
57 new SendableLocalClass().func("SendableUseLocalModuleValue::static block");
59 new LocalClass().func("SendableUseLocalModuleValue::static block");
66 new SendableLocalClass().func("InStaticSendableClass::foo");
68 new LocalClass().func("InStaticSendableClass::foo");
75 new SendableLocalClass().func("InStaticClass::foo");
[all …]
/arkcompiler/runtime_core/static_core/tests/checked/
Dinline_ic.pa17 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/
24 .function i32 A1.func(A1 a0) {
29 .function i32 B1.func(B1 a0) {
35 call.virt A1.func, a0
60 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/
86 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/
89 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_POLYMORPHIC,SUCCESS/
90 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_POLYMORPHIC,SUCCESS/
128 #! EVENT /InterpProfiling,START,B2::func,1/
129 #! EVENT_NEXT /Inline,B2::func,C2::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/
[all …]
/arkcompiler/ets_runtime/test/aottest/suspendgeneratorfor/
Dsuspendgeneratorfor.ts36 var func = genFun(); variable
37 print(func.next().value);
38 print(func.next().value);
39 print(func.next().value);
40 print(func.next().value);
41 print(func.next().value);
42 print(func.next().value);
43 print(func.next().value);
44 print(func.next().value);
45 print(func.next().value);
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DFunctionOverload.sts17 public static func(): string {
21 public static func(a: number): string {
25 public static func(a: number, b: number): string {
29 public static func(...args: number[]): string {
35 assert Overload.func() == "zero";
36 assert Overload.func(1) == "one";
37 assert Overload.func(1, 2) == "two";
38 assert Overload.func(1, 2, 3) == "variadic";
41 assert Overload.func(...arr) == "variadic";
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dgraph_checker_macros.h29 #define CHECKER_DO_IF_NOT(cond, func) ASSERT_DO((cond), func) argument
32 #define CHECKER_DO_IF_NOT_VISITOR_INTERNAL(visitor, klass, cond, func) ASSERT_DO((cond), func) argument
35 #define CHECKER_DO_IF_NOT_AND_PRINT(cond, func) ASSERT_DO((cond), func; PrintFailedMethodAndPass();) argument
37 #define CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(visitor, cond, func) \ argument
38 ASSERT_DO((cond), func; PrintFailedMethodAndPassVisitor(visitor);)
76 #define ABCKIT_DO_IF_NOT_VISITOR(visitor, cond, func) \ argument
78 func; \
82 #define ABCKIT_DO_IF_NOT(cond, func) \ argument
84 func; \
88 #define CHECKER_DO_IF_NOT(cond, func) \ argument
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dthread.h91 template <class Func, typename Tuple, size_t... I>
92 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */)
94 func(std::get<I>(args)...);
97 template <class Func, typename Tuple, size_t N>
98 static void CallFunc(Func &func, Tuple &args)
100 CallFunc(func, args, GenArgSeq<N>());
103 template <typename Func, typename Tuple, size_t N>
117 Func *func = std::get<0>(argsTuple);
118 CallFunc<Func, Tuple, N>(*func, argsTuple);
124 template <typename Func, typename... Args>
[all …]
/arkcompiler/runtime_core/libpandabase/os/
Dthread.h86 template <class Func, typename Tuple, size_t... I>
87 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */)
89 func(std::get<I>(args)...);
92 template <class Func, typename Tuple, size_t N>
93 static void CallFunc(Func &func, Tuple &args)
95 CallFunc(func, args, GenArgSeq<N>());
98 template <typename Func, typename Tuple, size_t N>
112 Func *func = std::get<0>(args_tuple);
113 CallFunc<Func, Tuple, N>(*func, args_tuple);
119 template <typename Func, typename... Args>
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/dyn_call/
Dcall_dynamic.cpp118 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallarg0() local
119 ASSERT_NE(func, nullptr); in TransformIrCallarg0()
122 auto call0 = g_dynG->iCreateCallarg0(graph, func); in TransformIrCallarg0()
126 g_implG->iInsertAfter(call0, func); in TransformIrCallarg0()
132 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallarg1() local
133 ASSERT_NE(func, nullptr); in TransformIrCallarg1()
139 auto call1 = g_dynG->iCreateCallarg1(graph, func, param0); in TransformIrCallarg1()
143 g_implG->iInsertAfter(call1, func); in TransformIrCallarg1()
149 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallargs2() local
150 ASSERT_NE(func, nullptr); in TransformIrCallargs2()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dfunction_expression.ts.json24 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
34 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
54 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
64 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
74 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
84 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
94 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
104 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
114 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
144 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)",
[all …]
/arkcompiler/runtime_core/libabckit/src/wrappers/
Dpandasm_wrapper.cpp35 auto *func = reinterpret_cast<pandasm::Function *>(impl); in Fill() local
36 name = func->name; in Fill()
37 regsNum = func->regs_num; in Fill()
38 valueOfFirstParam = func->value_of_first_param; in Fill()
39 for (const auto &cb : func->catch_blocks) { in Fill()
49 auto *func = reinterpret_cast<pandasm::Function *>(impl); in Update() local
50 func->ins.clear(); in Update()
51 func->catch_blocks.clear(); in Update()
52 func->name = name; in Update()
53 func->regs_num = regsNum; in Update()
[all …]
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp40 typedef int (*Func)(void); in TEST_F() typedef
41 Func fn {nullptr}; in TEST_F()
65 FuncDetail func; in TEST_F() local
66 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
69 frame.init(func); in TEST_F()
72 FuncArgsAssignment args(&func); in TEST_F()
83 typedef size_t (*Func)(size_t, size_t); in TEST_F() typedef
84 Func fn {nullptr}; in TEST_F()
107 FuncDetail func; in TEST_F() local
108 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/x86/
Dasmjit_test.cpp39 typedef int (*Func)(void); in TEST_F() typedef
40 Func fn {nullptr}; in TEST_F()
64 FuncDetail func; in TEST_F() local
65 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
68 frame.init(func); in TEST_F()
71 FuncArgsAssignment args(&func); in TEST_F()
82 typedef size_t (*Func)(size_t, size_t); in TEST_F() typedef
83 Func fn {nullptr}; in TEST_F()
106 FuncDetail func; in TEST_F() local
107 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/dyn_call_this/
Dcall_this_dynamic.cpp101 …tic void TestHelper(void (*transformIrCall)(AbckitGraph *graph, AbckitInst *obj, AbckitInst *func), in TestHelper() argument
117 …auto func = g_dynG->iCreateLdobjbyname(graph, obj, g_implM->createString(file, "func", strlen("fun… in TestHelper() local
118 ASSERT_NE(func, nullptr); in TestHelper()
121 g_implG->iInsertAfter(func, obj); in TestHelper()
124 transformIrCall(graph, obj, func); in TestHelper()
137 static void TransformIrCallThisarg0(AbckitGraph *graph, AbckitInst *obj, AbckitInst *func) in TransformIrCallThisarg0() argument
139 auto call0 = g_dynG->iCreateCallthis0(graph, func, obj); in TransformIrCallThisarg0()
143 g_implG->iInsertAfter(call0, func); in TransformIrCallThisarg0()
147 static void TransformIrCallThisarg1(AbckitGraph *graph, AbckitInst *obj, AbckitInst *func) in TransformIrCallThisarg1() argument
152 auto call1 = g_dynG->iCreateCallthis1(graph, func, obj, param0); in TransformIrCallThisarg1()
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp64 typedef int (*Func)(void); in TEST_F() typedef
65 Func fn {nullptr}; in TEST_F()
89 FuncDetail func; in TEST_F() local
90 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
93 frame.init(func); in TEST_F()
96 FuncArgsAssignment args(&func); in TEST_F()
107 typedef size_t (*Func)(size_t, size_t); in TEST_F() typedef
108 Func fn {nullptr}; in TEST_F()
132 typedef size_t (*Func)(size_t, size_t); in TEST_F() typedef
133 Func fn {nullptr}; in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dprofiler_stub_builder.h90 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, GateRef profileTypeInfo, bool …
[all …]
/arkcompiler/runtime_core/static_core/compiler/code_info/
Dcode_info_builder.h98 template <typename Func>
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()
[all …]
/arkcompiler/ets_runtime/compiler_service/test/unittest/aotcompilerproxy_unit/
Daotcompilerproxy_unit.cpp114 * @tc.type: Func
129 * @tc.type: Func
142 * @tc.type: Func
156 * @tc.type: Func
171 * @tc.type: Func
187 * @tc.type: Func
194 auto func = [](MessageParcel &data, MessageParcel &reply) -> int32_t { in __anon1258fdc70202() variable
199 Times(1).WillOnce(testing::Invoke(func));
207 * @tc.type: Func
214 auto func = [](MessageParcel &data, MessageParcel &reply) -> int32_t { in __anon1258fdc70302() variable
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_function.cpp30 void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionK… in InitializeJSFunction() argument
32 InitializeWithDefaultValue(thread, func); in InitializeJSFunction()
38func->SetPropertyInlinedProps(thread, PROTOTYPE_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
40func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
42func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
50 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunction()
59 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunction()
64 …thread, JSHandle<JSObject>(func), globalConst->GetHandledPrototypeString(), desc, SCheckMode::SKIP… in InitializeJSFunction()
69func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
71func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/templates/
DTemplate.swift74 class func consumeBool(_ v: Bool) throws { in consumeBool()
80 class func consumeChar(_ v: Character) throws { in consumeChar()
86 class func consumeShort(_ v: Int16) throws { in consumeShort()
92 class func consumeInt(_ v: Int) throws { in consumeInt()
98 class func consumeLong(_ v: Int64) throws { in consumeLong()
104 class func consumeFloat(_ v: Float) throws { in consumeFloat()
110 class func consumeDouble(_ v: Double) throws { in consumeDouble()
116 class func consumeObj(_ v: AnyObject) { in consumeObj()
129 class func consumeObjs(_ v: [AnyObject]) { in consumeObjs()
135 class func consume(_ v: Bool) throws { in consume()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_symbol_builder.cpp30 // when func is null, create global symbol, otherwise create local symbol
32 MIRFunction *func, uint8 scpID) const in CreateSymbol() argument
35 …(func != nullptr) ? func->GetSymTab()->CreateSymbol(scpID) : GlobalTables::GetGsymTable().CreateSy… 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 in CreatePregFormalSymbol()
52 MIRSymbol *st = func.GetSymTab()->CreateSymbol(kScopeLocal); in CreatePregFormalSymbol()
57 MIRPregTable *pregTab = func.GetPregTab(); in CreatePregFormalSymbol()
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
Dir-dyn-base-types.h.erb49 % Common::each_plugin_suboption("compiler_base_types", "func_resolve_numeric_type") do |func, plugi…
52 return <%= func %>(type);
62 % Common::each_plugin_suboption("compiler_base_types", "func_resolve_string_type") do |func, plugin…
65 return <%= func %>();
88 …uboption("compiler_base_types", "func_is_any_type_can_be_subtype_of") do |func, plugin_lang, plugi…
91 return <%= func %>(superType, type, superAllowedTypes, allowedTypes);
142 …mmon::each_plugin_suboption("compiler_base_types", "func_compare_implementation_codegen") do |func|
143 if (<%= func %>(cati, enc)) {
154 …mon::each_plugin_suboption("compiler_base_types", "func_get_name_implementation_codegen") do |func|
155 if (<%= func %>(cati, enc)) {
[all …]

12345678910>>...62