Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 37) sorted by relevance

12

/arkcompiler/ets_frontend/testTs/expect/expressions/binaryOperators/comparisonOperator/
DcomparisonOperatorWithSubtypeObjectOnCallSignature.txt1 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
2 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
3 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
4 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
5 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
6 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
7 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
8 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
9 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
10 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
[all …]
DcomparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.txt1 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
2 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
3 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
4 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
5 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
6 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
7 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
8 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
9 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
10 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
[all …]
DcomparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.txt1 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
2 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
3 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
4 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
5 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
6 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
7 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
8 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
9 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
10 {'literalBuffer': [{'tag': 2, 'value': 6}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'fn'}, {'tag…
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp65 Func fn {nullptr}; in TEST_F() local
68 Error err = rt.add(&fn, &code); in TEST_F()
71 int result {fn()}; in TEST_F()
108 Func fn {nullptr}; in TEST_F() local
111 Error err = rt.add(&fn, &code); in TEST_F()
114 size_t result {fn(size_t(2), size_t(3))}; in TEST_F()
133 Func fn {nullptr}; in TEST_F() local
136 Error err = rt.add(&fn, &code); in TEST_F()
139 size_t result {fn(size_t(2), size_t(3))}; in TEST_F()
157 Func fn {nullptr}; in TEST_F() local
[all …]
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp41 Func fn {nullptr}; in TEST_F() local
44 Error err = rt.add(&fn, &code); in TEST_F()
47 int result {fn()}; in TEST_F()
84 Func fn {nullptr}; in TEST_F() local
87 Error err = rt.add(&fn, &code); in TEST_F()
90 size_t result {fn(size_t(2), size_t(3))}; in TEST_F()
142 Func fn = (Func)ro_ptr; in TEST_F() local
144 size_t result {fn(size_t(2), size_t(3))}; in TEST_F()
/arkcompiler/ets_runtime/test/aottest/poplexenv/
Dpoplexenv.ts17 function fn(x:any) {
26 fn("hello world");
27 fn([1, 2, 3, 4]);
/arkcompiler/ets_runtime/test/moduletest/objectcloneproperties/
Dobjectcloneproperties.js22 function fn(e) { function
36 var actual = arr.flatMap(fn);
45 actual = [].flatMap.call(arrLike, fn);
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/
Dcallee_info_test.js45 function fn(x, y) { function
49 fn.call(obj, 2, 3);
50 fn.apply(obj, [2, 3]);
51 let bound = fn.bind(obj, 4);
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeRecorder.cpp312 auto fn = [](const auto &map) { in Dump() local
319 fn(classInst_); in Dump()
322 fn(classType_); in Dump()
324 fn(arrayType_); in Dump()
326 fn(unionType_); in Dump()
328 fn(objectType_); in Dump()
330 fn(exportType_); in Dump()
332 fn(declareType_); in Dump()
334 fn(namespaceType_); in Dump()
336 fn(namespacePath_); in Dump()
DtypeExtractor.cpp341 auto fn = [&node, &typeIndex, this](const util::StringView &name) { in GetTypeIndexFromClassDefinition() local
348 fn(identifier->Name()); in GetTypeIndexFromClassDefinition()
351 fn(std::move(DEFAULT_NAME)); in GetTypeIndexFromClassDefinition()
367 auto fn = [&node, &typeIndex, this](const util::StringView &name) { in GetTypeIndexFromInterfaceNode() local
374 fn(identifier->Name()); in GetTypeIndexFromInterfaceNode()
377 fn(std::move(DEFAULT_NAME)); in GetTypeIndexFromInterfaceNode()
551 auto fn = [&node, &typeIndex, this](const util::StringView &name) { in HandleFunctionDeclaration() local
564 fn(identifier->Name()); in HandleFunctionDeclaration()
567 fn(""); in HandleFunctionDeclaration()
575 auto fn = [&node, &typeIndex, &classDef, this](const util::StringView &name) { in HandleClassDeclaration() local
[all …]
DtypeSystem.h356 auto fn = [this](const auto *func) { in FunctionType()
381 fn(node->AsMethodDefinition()->Function()); in FunctionType()
383 fn(node->AsFunctionDeclaration()->Function()); in FunctionType()
385 fn(node->AsFunctionExpression()->Function()); in FunctionType()
387 fn(node->AsTSMethodSignature()); in FunctionType()
560 auto fn = [&fieldInfo, &isStatic, this](const util::StringView &name) { in FillField()
576 fn(std::get<util::StringView>(res)); in FillField()
581 fn(identifier->Name()); in FillField()
588 auto fn = [&method, this](const FunctionType &functionType, const util::StringView &name) { in FillMethod()
600 fn(functionType, name); in FillMethod()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dllvm_codegen.cpp153 for (LLVMValueRef fn = LLVMGetFirstFunction(module_); fn; fn = LLVMGetNextFunction(fn)) { in BuildAndRunPasses() local
154 LLVMRunFunctionPassManager(funcPass, fn); in BuildAndRunPasses()
262 kungfu::CalleeRegAndOffsetVec LLVMAssembler::GetCalleeReg2Offset(LLVMValueRef fn, const CompilerLog… in GetCalleeReg2Offset() argument
265 llvm::Function* func = llvm::unwrap<llvm::Function>(fn); in GetCalleeReg2Offset()
283 int LLVMAssembler::GetFpDeltaPrevFramSp(LLVMValueRef fn, const CompilerLog &log) in GetFpDeltaPrevFramSp() argument
287 LLVMAttributeRef attrirbuteRef = LLVMGetStringAttributeAtIndex(fn, in GetFpDeltaPrevFramSp()
295 … LOG_COMPILER(DEBUG) << " funcName: " << LLVMGetValueName2(fn, &length) << " fpToCallerSpDelta:" in GetFpDeltaPrevFramSp()
Dllvm_codegen.h228 static int GetFpDeltaPrevFramSp(LLVMValueRef fn, const CompilerLog &log);
229 … static kungfu::CalleeRegAndOffsetVec GetCalleeReg2Offset(LLVMValueRef fn, const CompilerLog &log);
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dstub_tests.cpp132 auto fn = reinterpret_cast<JSTaggedValue (*)(uintptr_t, int64_t, int64_t)>( in HWTEST_F_L0() local
134 auto resA = fn(thread->GetGlueAddr(), JSTaggedValue(1).GetRawData(), in HWTEST_F_L0()
136 auto resB = fn(thread->GetGlueAddr(), JSTaggedValue(2).GetRawData(), in HWTEST_F_L0()
138 auto resC = fn(thread->GetGlueAddr(), JSTaggedValue(11).GetRawData(), in HWTEST_F_L0()
148 …auto resG = fn(thread->GetGlueAddr(), JSTaggedValue(x1).GetRawData(), JSTaggedValue(y1).GetRawData… in HWTEST_F_L0()
175 auto fn = reinterpret_cast<JSTaggedValue (*)(uintptr_t, int64_t, int64_t)>( in HWTEST_F_L0() local
177 auto resA = fn(thread->GetGlueAddr(), JSTaggedValue(2).GetRawData(), in HWTEST_F_L0()
179 auto resB = fn(thread->GetGlueAddr(), JSTaggedValue(7).GetRawData(), in HWTEST_F_L0()
181 auto resC = fn(thread->GetGlueAddr(), JSTaggedValue(11).GetRawData(), in HWTEST_F_L0()
214 auto fn = reinterpret_cast<JSTaggedValue (*)(uintptr_t, int64_t, int64_t)>( in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/test/moduletest/forawaitof/
Dforawaitof.js25 async function fn() { function
35 let promise = fn();
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DfunctionCall.ts30 function func3(fn: callAbleObj1): number {
31 return fn(5);
/arkcompiler/ets_frontend/test262/
Des2021_tests.txt419 built-ins/String/prototype/replaceAll/replaceValue-fn-skip-toString.js
433 built-ins/String/prototype/replaceAll/searchValue-replacer-RegExp-call-fn.js
681 language/expressions/dynamic-import/eval-export-dflt-expr-fn-named.js
682 language/expressions/dynamic-import/eval-export-dflt-expr-fn-anon.js
856 language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-arrow.js
877 language/expressions/async-generator/named-unscopables-with-in-nested-fn.js
909 language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-eval.js
922 language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body-in-arrow.js
959 language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body.js
1007 language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body.js
[all …]
/arkcompiler/ets_frontend/testTs/expect/statements/tryStatements/
DtryStatements.txt1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'fn'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}…
/arkcompiler/ets_frontend/es2panda/
Des2panda.h50 SourceFile(std::string fn, std::string rn, parser::ScriptKind sk) in SourceFile()
51 : fileName(fn), recordName(rn), scriptKind(sk) in SourceFile()
/arkcompiler/runtime_core/runtime/tests/
Dbitmap_test_base.h59 static void RunTest(TestFn &&fn) in RunTest() argument
100 fn(&bm, heap_begin + offset, heap_begin + end, manual); in RunTest()
/arkcompiler/ets_runtime/ecmascript/
Dtagged_tree.h137 JSTaggedValue fn = tree->GetCompare(); in EntryCompare() local
138 if (fn.IsHole()) { in EntryCompare()
142 JSHandle<JSTaggedValue> compareFn(thread, fn); in EntryCompare()
181 inline void SetCompare(const JSThread *thread, JSTaggedValue fn) in SetCompare() argument
183 Set(thread, COMPARE_FUNCTION_INDEX, fn); in SetCompare()
Djs_array.cpp384 …d JSArray::Sort(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &fn) in Sort() argument
386 if (!fn->IsUndefined() && !fn->IsCallable()) { in Sort()
408 … int32_t compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in Sort()
Djs_array.h91 …atic void Sort(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &fn);
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt1049 language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-elem-id-init-fn-name-arrow.js
1050 language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-elem-id-init-fn-name-class.js
1051 language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-elem-id-init-fn-name-cover.js
1052 language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-elem-id-init-fn-name-fn.js
1053 language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-elem-id-init-fn-name-gen.js
1088 language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-elem-id-init-fn-name-arrow.js
1089 language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-elem-id-init-fn-name-class.js
1090 language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-elem-id-init-fn-name-cover.js
1091 language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-elem-id-init-fn-name-fn.js
1092 language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-elem-id-init-fn-name-gen.js
[all …]
/arkcompiler/runtime_core/runtime/include/
Dclass_linker_extension.h182 void RegisterContext(const ContextGetterFn &fn) in RegisterContext() argument
185 auto *context = fn(); in RegisterContext()

12