Home
last modified time | relevance | path

Searched full:find (Results 1 – 25 of 1225) sorted by relevance

12345678910>>...49

/arkcompiler/runtime_core/disassembler/tests/
Dinstructions_test.cpp.in34 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos);
45 size_t beg_g = ss.str().find("g() <static> {");
46 size_t end_g = ss.str().find('}', beg_g);
52 EXPECT_TRUE(body_g.find("\tmov v0, v1") != std::string::npos);
53 EXPECT_TRUE(body_g.find("\tmov.64 v2, v3") != std::string::npos);
54 EXPECT_TRUE(body_g.find("\tmov.obj v4, v5") != std::string::npos);
56 EXPECT_TRUE(body_g.find("\tmovi v0, 0xffffffffffffffff") != std::string::npos);
57 EXPECT_TRUE(body_g.find("\tmovi.64 v0, 0x2") != std::string::npos);
58 EXPECT_TRUE(body_g.find("\tfmovi.64 v0, 0x4008147ae147ae14") != std::string::npos);
60 EXPECT_TRUE(body_g.find("\tlda v1") != std::string::npos);
[all …]
Dlabels_test.cpp.in34 size_t beg_g = ss.str().find("u1 g() <static> {\n");
35 size_t end_g = ss.str().find('}', beg_g);
36 size_t beg_gg = ss.str().find("u1 gg() <static> {\n");
37 size_t end_gg = ss.str().find('}', beg_gg);
59 size_t beg_g = ss.str().find("g() <static> {");
60 size_t end_g = ss.str().find('}', beg_g);
66 …EXPECT_TRUE(body_g.find("jump_label_0:\n\tmovi v0, 0x0") != std::string::npos) << "jump_label_0 no…
67 …EXPECT_TRUE(body_g.find("jump_label_2:\n\tmovi v0, 0x1") != std::string::npos) << "jump_label_1 no…
68 …EXPECT_TRUE(body_g.find("jump_label_4:\n\tmovi v0, 0x2") != std::string::npos) << "jump_label_2 no…
69 …EXPECT_TRUE(body_g.find("jump_label_6:\n\tmovi v0, 0x3") != std::string::npos) << "jump_label_3 no…
[all …]
Drecords_test.cpp.in34 …EXPECT_TRUE(ss.str().find(".record A {\n}") != std::string::npos) << "record translated incorrectl…
45 EXPECT_TRUE(ss.str().find("u1 a") != std::string::npos) << "u1 translated incorrectly";
46 EXPECT_TRUE(ss.str().find("i8 b") != std::string::npos) << "i8 translated incorrectly";
47 EXPECT_TRUE(ss.str().find("u8 c") != std::string::npos) << "u8 translated incorrectly";
48 EXPECT_TRUE(ss.str().find("i16 d") != std::string::npos) << "i16 translated incorrectly";
49 EXPECT_TRUE(ss.str().find("u16 e") != std::string::npos) << "u16 translated incorrectly";
50 EXPECT_TRUE(ss.str().find("i32 f") != std::string::npos) << "i32 translated incorrectly";
51 EXPECT_TRUE(ss.str().find("u32 g") != std::string::npos) << "u32 translated incorrectly";
52 EXPECT_TRUE(ss.str().find("f32 h") != std::string::npos) << "f32 translated incorrectly";
53 EXPECT_TRUE(ss.str().find("f64 i") != std::string::npos) << "f64 translated incorrectly";
[all …]
Dliterals_test.cpp.in34 ASSERT_NE(ss.str().find(".language PandaAssembly"), std::string::npos);
36 ASSERT_NE(ss.str().find(".array array_0 i32 3 { 2 3 4 }"), std::string::npos);
37 ASSERT_NE(ss.str().find(".array array_1 i32 3 { 2 3 4 }"), std::string::npos);
38 ASSERT_NE(ss.str().find(".array array_2 i32 3 { 2 3 4 }"), std::string::npos);
39 ASSERT_NE(ss.str().find(".array array_3 i32 3 { 2 3 4 }"), std::string::npos);
50 ASSERT_NE(ss.str().find(".language PandaAssembly"), std::string::npos);
52 ASSERT_NE(ss.str().find(".record panda.String <external>"), std::string::npos);
53 ASSERT_NE(ss.str().find("panda.String 3 { \"a\" \"ab\" \"abc\" }"), std::string::npos);
54 ASSERT_NE(ss.str().find("u1 3 { 0 1 0 }"), std::string::npos);
55 ASSERT_NE(ss.str().find("i32 3 { 2 3 4 }"), std::string::npos);
[all …]
Dmetadata_test.cpp.in36 EXPECT_TRUE(prog.find(".function u1 GGG() <native, static>") != std::string::npos);
37 EXPECT_TRUE(prog.find(".function u1 FFF() <noimpl, static>") != std::string::npos);
38 … EXPECT_TRUE(prog.find(".function u1 A._cctor_(u1 a0) <cctor, static> {\n}") != std::string::npos);
39 EXPECT_TRUE(prog.find(".function u1 A.EEE(A a0, u1 a1) {\n") != std::string::npos);
40 EXPECT_TRUE(prog.find("\tcall.short DDD:(u1), v0") != std::string::npos);
41 EXPECT_TRUE(prog.find(".function u1 A._ctor_(u1 a0) <ctor, static> {\n}") != std::string::npos);
42 EXPECT_TRUE(prog.find(".function u1 DDD(u1 a0) <external, static>") != std::string::npos);
43 EXPECT_TRUE(prog.find("initobj.short A._ctor_:(u1), v0") != std::string::npos);
44 EXPECT_TRUE(prog.find("initobj.short A._cctor_:(u1), v1") != std::string::npos);
46 EXPECT_TRUE(prog.find(".record A {\n}") != std::string::npos);
[all …]
Dfunctions_test.cpp.in34 ASSERT_TRUE(ss.str().find(".function void A(i32 a0) <static> {\n}") != std::string::npos);
45 ASSERT_NE(ss.str().find(".function void f() <static> {\n}"), std::string::npos);
46 ASSERT_NE(ss.str().find(".function void f(u1 a0, i8 a1) <static> {\n}"), std::string::npos);
47 ASSERT_NE(ss.str().find(".function void f(u1 a0) <static> {\n}"), std::string::npos);
48 ASSERT_NE(ss.str().find("call.short f:()\n\t"
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/FindFindIndex/
DbuiltinArrayFindFindIndex.ts18 //aot: [trace] aot inline builtin: Array.prototype.find, caller function name:func_main_0@builtinAr…
19 var inlineFind = x.find(x=>{
22 //aot: [trace] aot inline builtin: Array.prototype.find, caller function name:func_main_0@builtinAr…
23 var inlineNotFind = x.find(x=>{
40 //aot: [trace] aot inline builtin: Array.prototype.find, caller function name:func_main_0@builtinAr…
41 var inlineFindNumber = x.find(x=>{
44 //aot: [trace] aot inline builtin: Array.prototype.find, caller function name:func_main_0@builtinAr…
45 var inlineNotFindNumber = x.find(x=>{
64 …//aot: [trace] aot inline builtin: Array.prototype.find, caller function name:func_main_0@builtinA…
65 print(x.find(x => true)) //: 1
[all …]
/arkcompiler/runtime_core/static_core/disassembler/tests/
Dliterals_test.cpp25 auto beg = text.find(header); in ExtractArrayBody()
26 auto end = text.find('}', beg); in ExtractArrayBody()
54 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos); in TEST()
55 EXPECT_TRUE(ss.str().find(".array array_0 i32 3 { 2 3 4 }") != std::string::npos); in TEST()
56 EXPECT_TRUE(ss.str().find(".array array_1 i32 3 { 2 3 4 }") != std::string::npos); in TEST()
57 EXPECT_TRUE(ss.str().find(".array array_2 i32 3 { 2 3 4 }") != std::string::npos); in TEST()
58 EXPECT_TRUE(ss.str().find(".array array_3 i32 3 { 2 3 4 }") != std::string::npos); in TEST()
83 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos); in TEST()
84 …EXPECT_TRUE(ss.str().find(".array array_0 panda.String 3 { \"a\" \"ab\" \"abc\" }") != std::string… in TEST()
85 EXPECT_TRUE(ss.str().find(".array array_1 u1 3 { 0 1 0 }") != std::string::npos); in TEST()
[all …]
Dtest_debug_info.cpp26 auto beg = text.find(header); in ExtractFuncBody()
27 auto end = text.find('}', beg); in ExtractFuncBody()
78 ASSERT_NE(bodyG.find("# LINE_NUMBER_TABLE:"), std::string::npos); in TEST()
79 ASSERT_NE(bodyG.find("#\tline 14: 0\n"), std::string::npos); in TEST()
81 size_t codeStart = bodyG.find("# CODE:\n"); in TEST()
83 size_t codeEnd = bodyG.find("\n\n"); // First gap in function body is code section end in TEST()
94 auto gIt = progInfo.methodsInfo.find("g:()"); in TEST()
100 ASSERT_EQ(bodyG.find("# LOCAL_VARIABLE_TABLE:"), std::string::npos); in TEST()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Ddebug_info_cache.cpp101 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 2U)), curr.end()); in TEST_F()
102 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 3U)), curr.end()); in TEST_F()
103 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 4U)), curr.end()); in TEST_F()
107 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 5U)), curr.end()); in TEST_F()
108 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 6U)), curr.end()); in TEST_F()
112 ASSERT_NE(curr.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 10U)), curr.end()); in TEST_F()
150 ASSERT_NE(disasm_file.find(fileName), std::string::npos); in TEST_F()
155 ASSERT_NE(disasm_file.find(fileName), std::string::npos); in TEST_F()
161 …ASSERT_NE(set_locs.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 6U)), set_locs.end()); in TEST_F()
162 …ASSERT_NE(set_locs.find(PtLocation(fileName.c_str(), methodFoo->GetFileId(), 5U)), set_locs.end()); in TEST_F()
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
Darrayfind.js18 const found = array1.find((element) => element > 10);
27 console.log(Array.prototype.find.call(arrayLike, (x) => !Number.isInteger(x)));
31 array.find((value, index) => {
35 array.find((value, index) => {
53 console.log([4, 6, 8, 12].find(isPrime));
54 console.log([4, 5, 8, 12].find(isPrime));
59 .find((num, idx, arr) => {
67 const deleteWords = words.find((word, index, arr) => {
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DBuiltinArrayAlgorithms.sts30 * tries to find a lower bound of a key in sorted arr.
34 …* @param arr array to find a lower bound of a key. Has to be sorted, otherwise the answer is imple…
36 * @param key a value to find lower bound of. It may be not in arr, lower bound will present anyway
68 * tries to find a lower bound of a key in sorted arr.
72 …* @param arr array to find a lower bound of a key. Has to be sorted, otherwise the answer is imple…
74 * @param key a value to find lower bound of. It may be not in arr, lower bound will present anyway
83 * tries to find an upper bound of a key in sorted arr.
87 …* @param arr array to find a upper bound of a key. Has to be sorted, otherwise the answer is imple…
89 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway
121 * tries to find an upper bound of a key in sorted arr.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/
DArray_builtin_algorithms.sts.j234 * tries to find a lower bound of a key in sorted arr.
38 …* @param arr array to find a lower bound of a key. Has to be sorted, otherwise the answer is imple…
40 * @param key a value to find lower bound of
72 * tries to find a lower bound of a key in sorted arr.
76 …* @param arr array to find a lower bound of a key. Has to be sorted, otherwise the answer is imple…
78 * @param key a value to find lower bound of
87 * tries to find an upper bound of a key in sorted arr.
91 …* @param arr array to find a upper bound of a key. Has to be sorted, otherwise the answer is imple…
93 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway
125 * tries to find an upper bound of a key in sorted arr.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_taskpool.cpp35 auto taskIter = tasks.find(taskId); in DecrementTaskCounter()
48 if (tasksToBeCanceled_.find(taskId) != tasksToBeCanceled_.end()) { in TaskStarted()
49 if ((waitingTasksCountWithId == 0) && (runningTasks_.find(taskId) == runningTasks_.end())) { in TaskStarted()
67 if (tasksToBeCanceled_.find(taskId) != tasksToBeCanceled_.end()) { in TaskFinished()
68 if ((runningTasksCountWithId == 0) && (waitingTasks_.find(taskId) == waitingTasks_.end())) { in TaskFinished()
81 …if ((waitingTasks_.find(taskId) == waitingTasks_.end()) && (runningTasks_.find(taskId) == runningT… in CancelTask()
92 auto it = executingTasks_.find(coroutineId); in IsTaskCanceled()
98 return tasksToBeCanceled_.find(taskId) != tasksToBeCanceled_.end(); in IsTaskCanceled()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Dstack_trace_test.cpp75 pos = captured.find("Test message", pos); in TEST_F()
78 pos = captured.find("StackTraceTest.throwing", pos); in TEST_F()
81 pos = captured.find("StackTraceTest.nestedFunc2", pos); in TEST_F()
84 pos = captured.find("StackTraceTest.nestedFunc1", pos); in TEST_F()
87 pos = captured.find("StackTraceTest.invokeException", pos); in TEST_F()
108 pos = captured.find("Test message", pos); in TEST_F()
111 pos = captured.find("StackTraceTest.throwing", pos); in TEST_F()
114 pos = captured.find("StackTraceTest.nestedFunc2", pos); in TEST_F()
117 pos = captured.find("StackTraceTest.nestedFunc1", pos); in TEST_F()
120 pos = captured.find("StackTraceTest.invokeUnhandledException", pos); in TEST_F()
/arkcompiler/toolchain/websocket/
Dhttp.cpp23 auto startPos = headersText.find(headerName); in DecodeHeader()
25 auto endOfLinePos = headersText.find(EOL, startPos); in DecodeHeader()
41 auto endOfLinePos = request.find(EOL, methodStartPos); in DecodeVersion()
43 methodStartPos = request.find(' ', methodStartPos); in DecodeVersion()
45 methodStartPos = request.find(' ', methodStartPos + 1); in DecodeVersion()
59 auto pos = request.find(GET); in Decode()
78 auto versionEndPos = response.find(' ', versionStartPos); in DecodeVersion()
93 auto statusEndPos = response.find(' ', statusStartPos); in DecodeStatus()
94 …statusEndPos = (statusEndPos == std::string::npos) ? response.find(EOL, statusStartPos) : statusEn… in DecodeStatus()
107 // find start of status-line in Decode()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/
Descompat_Array_find.sts28 failures += check((): int => { return testFind()}, "Test find method")
29 failures += check((): int => { return testFindMissData()}, "Test find missed data")
30 failures += check((): int => { return testFindIndex()}, "Test find index method")
31 failures += check((): int => { return testFindMissIndex()}, "Test find missed index method")
33 failures += check((): int => { return testFindStatic()}, "Test static find method")
34 failures += check((): int => { return testFindMissDataStatic()}, "Test static find missed data")
35 failures += check((): int => { return testFindIndexStatic()}, "Test static find method")
36 …failures += check((): int => { return testFindMissIndex()}, "Test static find missed index method")
38 failures += check((): int => { return testFindLast()}, "Test find backward")
39 failures += check((): int => { return testFindLastMissed()}, "Test find backward missed")
[all …]
/arkcompiler/ets_runtime/test/aottest/privateproperty/
Dexpect_output.txt29 TypeError : invalid or cannot find private key
30 TypeError : invalid or cannot find private key
31 TypeError: invalid or cannot find private key
32 TypeError: invalid or cannot find private key
Dpgo_expect_output.txt29 TypeError : invalid or cannot find private key
30 TypeError : invalid or cannot find private key
31 TypeError: invalid or cannot find private key
32 TypeError: invalid or cannot find private key
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompiler_log.cpp21 … outputCIR_ = (logOpt.find("cir") != std::string::npos) || (logOpt.find("0") != std::string::npos); in CompilerLog()
22 …outputLLIR_ = (logOpt.find("llir") != std::string::npos) || (logOpt.find("1") != std::string::npos… in CompilerLog()
23 … outputASM_ = (logOpt.find("asm") != std::string::npos) || (logOpt.find("2") != std::string::npos); in CompilerLog()
24 …outputType_ = (logOpt.find("type") != std::string::npos) || (logOpt.find("3") != std::string::npos… in CompilerLog()
25 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog()
26 …cerMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") != std::string::npos… in CompilerLog()
27 …noneMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") == std::string::npo… in CompilerLog()
52 bool found = methods_.find(methodName) != std::string::npos; in IncludesMethod()
58 if (fileMethods_.find(fileName) == fileMethods_.end()) { in IncludesMethod()
62 auto it = find(methodVector.begin(), methodVector.end(), methodName); in IncludesMethod()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dchecks_elimination_osr.sts18 //! METHOD "ETSGLOBAL::find"
19 //! EVENT /Compilation,ETSGLOBAL::find,0.*,COMPILED/
20 //! EVENT_NOT /OsrEntry,ETSGLOBAL::find,.*,AFTER_IFRAME,SUCCESS/
24 function find(arr: byte[], indexes: byte[], elem: int): int {
45 throw new ArrayIndexOutOfBoundsError("find failed: out of range");
52 return find(byteArr, indArr, 2) - 10;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/
Dtest_find.js24 …natenko) enable below after interop will work properly instead of returning undefined from arr.find
43 ASSERT_EQ([1, 2, 3].find(fnTrue), 1);
44 ASSERT_TRUE([1, 2, 3].find(fnFalse) === null); // null or undefined
47 let found = arr.find(fnTrue);
53 let foundNull = arr.find(fnFalse);
/arkcompiler/runtime_core/bytecode_optimizer/
Dir_interface.h38 auto it = maps_->methods.find(offset); in GetMethodIdByOffset()
46 auto it = maps_->strings.find(offset); in GetStringIdByOffset()
54 auto it = maps_->literalarrays.find(offset); in GetLiteralArrayByOffset()
67 auto it = prog_->literalarray_table.find(id); in GetLiteralArrayIdByOffset()
74 auto it = maps_->classes.find(offset); in GetTypeIdByOffset()
82 auto it = maps_->fields.find(offset); in GetFieldIdByOffset()
98 auto iter = pc_ins_map_.find(pc); in GetLineNumberByPc()
110 auto iter = pc_ins_map_.find(pc); in GetColumnNumberByPc()
/arkcompiler/ets_frontend/es2panda/util/
DcommonUtil.cpp31 size_t pos = str.find(delimiter); in Split()
36 pos = str.find(delimiter, start); in Split()
47 size_t pos = normalizedImport.find(SLASH_TAG); in GetPkgNameFromNormalizedImport()
52 pos = normalizedImport.find(SLASH_TAG, pos + 1); in GetPkgNameFromNormalizedImport()
86 …if (std::find(externalPkgNames.begin(), externalPkgNames.end(), pkgName) != externalPkgNames.end()… in IsExternalPkgNames()
102 if (ohmurl.find(util::NORMALIZED_OHMURL_NOT_SO) != 0) { in UpdatePackageVersionIfNeeded()
110 auto iter = pkgContextInfo.find(packageName); in UpdatePackageVersionIfNeeded()
124 return recordName.find(util::CHAR_VERTICAL_LINE) == std::string::npos; in RecordNotGeneratedFromBytecode()
/arkcompiler/ets_runtime/ecmascript/base/
Dpath_helper.h49 size_t pos = moduleName.find(NAME_SPACE_TAG); in DeleteNamespace()
62 size_t pos = moduleName.find(NAME_SPACE_TAG); in GetHarName()
73 size_t pos = recordName.find(SLASH_TAG); in AdaptOldIsaRecord()
75 pos = recordName.find(SLASH_TAG, pos + 1); in AdaptOldIsaRecord()
88 size_t pos = moduleRequestName.find(COLON_TAG); in GetStrippedModuleName()
101 size_t pos = moduleRequestName.find(COLON_TAG); in GetInternalModulePrefix()

12345678910>>...49