Home
last modified time | relevance | path

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

12345678910>>...62

/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 …]
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 …]
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 …]
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 …]
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 …]
Ddisassembler_source_lang_test.cpp41 bool Find(std::stringstream &ss, const std::string &dst) in Find() function in panda::disasm::DisasmSourceLangTest
43 return ss.str().find(dst) != std::string::npos; in Find()
60 EXPECT_TRUE(Find(ss, CHECK_ECMASCRIPT));
61 EXPECT_TRUE(Find(ss, CHECK_JAVASCRIPT));
62 EXPECT_TRUE(Find(ss, CHECK_ARKTSSCRIPT));
63 EXPECT_TRUE(Find(ss, CHECK_TYPESCRIPT));
65 EXPECT_TRUE(Find(ss, CHECK_ETS_STR_ANNO));
66 EXPECT_TRUE(Find(ss, CHECK_TS_ANNO));
67 EXPECT_TRUE(Find(ss, CHECK_PANDA_STR));
/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/ets_frontend/ets2panda/public/headers_parser/
Dline_iterator.py64 self.current_line.find("#if") != -1 # if, ifdef, ifndef
65 or self.current_line.find("#el") != -1 # else, elif
66 or self.current_line.find("#undef") != -1
67 or self.current_line.find("#end") != -1
71 return self.current_line.find("template") != -1
74 return self.current_line.find("namespace") != -1
77 return self.current_line.find("enum ") != -1
80 return self.current_line.find("struct ") != -1
84 self.current_line.find("using ") != -1
85 or self.current_line.find("namespace ") != -1
[all …]
Dparse_enum.py29 equally_pos = data.find("=")
31 raise RuntimeError("Can't find '='.")
33 if data.find("~") != -1 or data.find("&") != -1:
41 if data.find("=") == -1 or data.find("<<") != -1:
43 if data.find("|") != -1:
46 value = data[data.find("=") + 1 :].strip(" ")
60 value_end = data.find(",", value_start)
62 if data.find("#define") != -1:
93 value_end = data.find(",", value_start)
104 start_of_name = data.find("enum ", start)
[all …]
Dprepare_header.py28 double_slash_pos = data.find("//")
31 end_of_line = data.find("\n", double_slash_pos)
38 double_slash_pos = data.find("//")
41 multiline_comment_start = data.find("/*")
44 multiline_comment_end = data.find("*/", multiline_comment_start)
47 raise RuntimeError("Error find end of multiline-comment")
50 multiline_comment_start = data.find("/*")
60 current_pos = data.find("#include")
67 include_end = data.find('"', include_start + 1)
77 current_pos = data.find("#include", current_pos)
/arkcompiler/runtime_core/libabckit/src/adapter_dynamic/templates/
Dinst_props_helpers_dynamic.inc.erb20 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic}
21 % method_id_operand = inst.operands.find {|op| op.method_id?}
36 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic}
37 % method_id_operand = inst.operands.find {|op| op.method_id?}
76 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic }
77 % string_id_operand = inst.operands.find {|op| op.string_id?}
95 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic }
96 % string_id_operand = inst.operands.find {|op| op.string_id?}
111 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic }
112 % litarr_id_operand = inst.operands.find {|op| op.literalarray_id?}
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
Dexpect_output.txt36 Find Test case 1:
39 Find Test case 2:
42 Find Test case 3:
45 Find Test case 4:
48 Find Test case 5:
51 Find Test case 6:
54 Find Test case 7:
57 Find Test case 8:
60 Find Test case 9:
63 Find Test case 10:
[all …]
Darrayfind.js18 const found = array1.find((element) => element > 10);
27 print(Array.prototype.find.call(arrayLike, (x) => !Number.isInteger(x)));
31 array.find((value, index) => {
35 array.find((value, index) => {
53 print([4, 6, 8, 12].find(isPrime));
54 print([4, 5, 8, 12].find(isPrime));
59 .find((num, idx, arr) => {
67 const deleteWords = words.find((word, index, arr) => {
78 const result = [1, 2, 3, 4].find((x, i, arr) => {
87 const result = [1, 2, 3, 4].find((x, i, arr) => {
[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 …]
/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()
65 if (request.find(ORIGIN) != std::string::npos) { in Decode()
82 auto versionEndPos = response.find(' ', versionStartPos); in DecodeVersion()
97 auto statusEndPos = response.find(' ', statusStartPos); in DecodeStatus()
98 …statusEndPos = (statusEndPos == std::string::npos) ? response.find(EOL, statusStartPos) : statusEn… in DecodeStatus()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/unit/lsp/
Dclass_hierarchy_info_test.cpp51 auto pos = text.find("Child"); in TEST_F()
60 auto it = methods.find("publicMethod(): void"); in TEST_F()
65 it = methods.find("action(fileName: string, position: number): number"); in TEST_F()
105 auto pos = text.find("Magpie"); in TEST_F()
114 auto it = methods.find("sleep(): void"); in TEST_F()
137 auto pos = text.find("Animal"); in TEST_F()
172 auto pos = text.find("jj"); in TEST_F()
181 auto it = methods.find("Body(): string"); in TEST_F()
186 it = methods.find("Body(value: string)"); in TEST_F()
221 auto pos = text.find("/*1*/"); in TEST_F()
[all …]
/arkcompiler/toolchain/tooling/static/tests/
Ddebug_info_cache.cpp107 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 2U)), curr.end()); in TEST_F()
108 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 3U)), curr.end()); in TEST_F()
109 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 4U)), curr.end()); in TEST_F()
113 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 5U)), curr.end()); in TEST_F()
114 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 6U)), curr.end()); in TEST_F()
118 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 10U)), curr.end()); in TEST_F()
158 ASSERT_NE(disasm_file.find(ASM_FILE_NAME.data()), std::string::npos); in TEST_F()
163 ASSERT_NE(disasm_file.find(ASM_FILE_NAME.data()), std::string::npos); in TEST_F()
169 …ASSERT_NE(set_locs.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 6U)), set_locs.en… in TEST_F()
170 …ASSERT_NE(set_locs.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 5U)), set_locs.en… in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Ddebug_info_cache.cpp107 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 2U)), curr.end()); in TEST_F()
108 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 3U)), curr.end()); in TEST_F()
109 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 4U)), curr.end()); in TEST_F()
113 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 5U)), curr.end()); in TEST_F()
114 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 6U)), curr.end()); in TEST_F()
118 ASSERT_NE(curr.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 10U)), curr.end()); in TEST_F()
158 ASSERT_NE(disasm_file.find(ASM_FILE_NAME.data()), std::string::npos); in TEST_F()
163 ASSERT_NE(disasm_file.find(ASM_FILE_NAME.data()), std::string::npos); in TEST_F()
169 …ASSERT_NE(set_locs.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 6U)), set_locs.en… in TEST_F()
170 …ASSERT_NE(set_locs.find(PtLocation(ASM_FILE_NAME.data(), methodFoo->GetFileId(), 5U)), set_locs.en… in TEST_F()
[all …]
/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/runtime_core/static_core/plugins/ets/stdlib/std/core/
DBuiltinArrayAlgorithms.ets30 * 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.ets.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/tests/stdlib-templates/escompat/
Descompat_Array_find.ets28 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 …]

12345678910>>...62