Home
last modified time | relevance | path

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

12345678910>>...55

/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/runtime_core/static_core/plugins/ets/stdlib/escompat/
Dtaskpool.sts21 constructor(name: string, func: Function0<NullishType>) {
23 this.func = func;
33 constructor(func: Function0<NullishType>) {
34 this("", func);
50 result = this.func();
65 func: Function0<NullishType>;
72 static execute(func: Function0<NullishType>): Promise<NullishType> {
73 return launch func();
75 static execute<A1>(func: Function1<A1, NullishType>, a1: A1): Promise<NullishType> {
76 return launch func(a1);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dfunction_expression.ts.json22 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
29 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
43 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
50 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
57 … "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)"
71 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
78 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
85 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
106 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)"
[all …]
Dfunction_object_methods.ts.json29 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
43 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
50 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
57 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
70 … "rule": "\"Function.apply\", \"Function.call\" are not supported (arkts-no-func-apply-call)"
84 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
91 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
98 "rule": "\"Function.bind\" is not supported (arkts-no-func-bind)"
104 … "rule": "\"Function.apply\", \"Function.call\" are not supported (arkts-no-func-apply-call)"
110 … "rule": "\"Function.apply\", \"Function.call\" are not supported (arkts-no-func-apply-call)"
[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/libpandabase/os/
Dthread.h92 template <class Func, typename Tuple, size_t... I>
93 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */)
95 func(std::get<I>(args)...);
98 template <class Func, typename Tuple, size_t N>
99 static void CallFunc(Func &func, Tuple &args)
101 CallFunc(func, args, GenArgSeq<N>());
104 template <typename Func, typename Tuple, size_t N>
118 Func *func = std::get<0>(argsTuple);
119 CallFunc<Func, Tuple, N>(*func, argsTuple);
125 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/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/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dbin_func_import.cpp42 void BinaryMplImport::ImportFuncIdInfo(MIRFunction *func) in ImportFuncIdInfo() argument
46 func->SetPuidxOrigin(static_cast<PUIdx>(ReadNum())); in ImportFuncIdInfo()
47 ImportInfoVector(func->GetInfoVector(), func->InfoIsString()); in ImportFuncIdInfo()
49 func->SetFrameSize(static_cast<uint32>(ReadNum())); in ImportFuncIdInfo()
59 MIRSymbol *BinaryMplImport::ImportLocalSymbol(MIRFunction *func) in ImportLocalSymbol() argument
70 MIRSymbol *sym = func->GetSymTab()->CreateSymbol(kScopeLocal); in ImportLocalSymbol()
73 (void)func->GetSymTab()->AddToStringSymbolMap(*sym); in ImportLocalSymbol()
83 PregIdx pregidx = ImportPreg(func); in ImportLocalSymbol()
84 MIRPreg *preg = func->GetPregTab()->PregFromPregIdx(pregidx); in ImportLocalSymbol()
90 PregIdx BinaryMplImport::ImportPreg(MIRFunction *func) in ImportPreg() argument
[all …]
Dmir_symbol_builder.cpp85 // when func is null, create global symbol, otherwise create local symbol
87 MIRFunction *func, uint8 scpID) const in CreateSymbol() argument
90 …(func != nullptr) ? func->GetSymTab()->CreateSymbol(scpID) : GlobalTables::GetGsymTable().CreateSy… in CreateSymbol()
96 if (func != nullptr) { in CreateSymbol()
97 (void)func->GetSymTab()->AddToStringSymbolMap(*st); in CreateSymbol()
104 MIRSymbol *MIRSymbolBuilder::CreatePregFormalSymbol(TyIdx tyIdx, PregIdx pRegIdx, MIRFunction &func in CreatePregFormalSymbol()
106 MIRSymbol *st = func.GetSymTab()->CreateSymbol(kScopeLocal); in CreatePregFormalSymbol()
111 MIRPregTable *pregTab = func.GetPregTab(); in CreatePregFormalSymbol()
116 size_t MIRSymbolBuilder::GetSymbolTableSize(const MIRFunction *func) const in GetSymbolTableSize()
118 return (func == nullptr) ? GlobalTables::GetGsymTable().GetSymbolTableSize() in GetSymbolTableSize()
[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/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/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 …]
/arkcompiler/ets_runtime/ecmascript/
Djs_function.cpp29 void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionK… in InitializeJSFunction() argument
31 InitializeWithDefaultValue(thread, func); in InitializeJSFunction()
37func->SetPropertyInlinedProps(thread, PROTOTYPE_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
39func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
41func->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()
68func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
70func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
Dasmjit_test.cpp68 using Func = int (*)(); in TEST_F() typedef
69 Func fn {nullptr}; in TEST_F()
93 FuncDetail func; in TEST_F() local
94 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
97 frame.init(func); in TEST_F()
100 FuncArgsAssignment args(&func); in TEST_F()
111 using Func = size_t (*)(size_t, size_t); in TEST_F() typedef
112 Func fn {nullptr}; in TEST_F()
136 using Func = size_t (*)(size_t, size_t); in TEST_F() typedef
137 Func fn {nullptr}; in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_function_stub_builder.cpp34 //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, Int32(1), 0, nullptr, Circuit::NullGate(), callArgs); in PrototypeCall()
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Dinline_devirt.cpp46 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 …sed]] auto shouldRunDevirt = passInstrumentation_->runBeforePass<llvm::Function>(devirtPass, func); in RunDevirt()
105 auto preservedAnalysesDevirt = devirtPass.run(func, *functionAnalysisManager_); in RunDevirt()
[all …]

12345678910>>...55