| /arkcompiler/runtime_core/disassembler/tests/ |
| D | instructions_test.cpp.in | 34 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 …]
|
| D | labels_test.cpp.in | 34 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 …]
|
| D | records_test.cpp.in | 34 …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 …]
|
| D | metadata_test.cpp.in | 36 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 …]
|
| D | literals_test.cpp.in | 34 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 …]
|
| D | functions_test.cpp.in | 34 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/ecmascript/compiler/ |
| D | compiler_log.cpp | 21 outputCIR_ = logOpt.find("cir") != std::string::npos || in CompilerLog() 22 logOpt.find("0") != std::string::npos; in CompilerLog() 23 outputLLIR_ = logOpt.find("llir") != std::string::npos || in CompilerLog() 24 logOpt.find("1") != std::string::npos; in CompilerLog() 25 outputASM_ = logOpt.find("asm") != std::string::npos || in CompilerLog() 26 logOpt.find("2") != std::string::npos; in CompilerLog() 27 outputType_ = logOpt.find("type") != std::string::npos || in CompilerLog() 28 logOpt.find("3") != std::string::npos; in CompilerLog() 29 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog() 30 cerMethod_ = logOpt.find("all") == std::string::npos && in CompilerLog() [all …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | scope.test.ts | 36 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 46 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 56 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 66 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 84 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 94 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 104 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 114 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 133 let { scope: sp, level: lv, v: outVariable } = scope.find("x"); 135 let { scope: spParent, level: lvParent, v: outVariableParent } = parent.find("x"); [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | ir_interface.h | 38 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_runtime/ecmascript/jspandafile/ |
| D | js_pandafile.h | 60 auto iter = vmListOfParsedConstPool.find(vm); in IsParsedConstpoolOfCurrentVM() 146 auto info = jsRecordInfo_.find(recordName); 156 auto info = jsRecordInfo_.find(recordName); in GetConstpoolMapByReocrd() 160 LOG_FULL(FATAL) << "find entryPoint failed: " << recordName; in GetConstpoolMapByReocrd() 177 auto info = jsRecordInfo_.find(recordName); 191 auto info = jsRecordInfo_.find(recordName); 235 auto info = jsRecordInfo_.find(recordName); in HasRecord() 244 auto info = jsRecordInfo_.find(recordName); in FindRecordInfo() 246 LOG_FULL(FATAL) << "find recordName failed: " << recordName; in FindRecordInfo() 301 auto it = jsRecordInfo_.find(recordName); in HasTSTypes() [all …]
|
| D | quick_fix_manager.cpp | 55 if (quickFixLoaders_.find(patchFileName) != quickFixLoaders_.end()) { in LoadPatch() 75 if (quickFixLoaders_.find(patchFileName) != quickFixLoaders_.end()) { in LoadPatch() 94 auto loaderIter = quickFixLoaders_.find(patchFileName); in UnloadPatch() 137 methodNames.find(CString(patchMethodName)) != methodNames.end()) { in IsQuickFixCausedException() 153 firstIndex = stackInfo.find(" at ", lineIndex + 1); in ParseStackInfo() 154 nextIndex = stackInfo.find("(", lineIndex + 1); in ParseStackInfo() 158 lineIndex = stackInfo.find("\n", lineIndex + 1); in ParseStackInfo()
|
| D | js_pandafile.cpp | 63 if (info.first.find(PACKAGE_PATH_SEGMENT) != CString::npos || in CheckIsRecordWithBundleName() 64 info.first.find(NPM_PATH_SEGMENT) != CString::npos) { in CheckIsRecordWithBundleName() 105 auto it = map->find(offset); in GetOrInsertConstantPool() 195 auto iter = methodLiteralMap_.find(offset); in FindMethodLiteral() 207 auto info = jsRecordInfo_.find(recordName); in IsModule() 215 CString msg = "cannot find record '" + fullRecordName + "', please check the request path."; in IsModule() 224 auto info = jsRecordInfo_.find(recordName); in IsCjs() 228 CString msg = "cannot find record '" + recordName + "', please check the request path."; in IsCjs() 237 auto info = jsRecordInfo_.find(recordName); in IsJson() 241 CString msg = "cannot find record '" + recordName + "', please check the request path."; in IsJson() [all …]
|
| D | js_pandafile_manager.cpp | 151 auto const iter = loadedJSPandaFiles_.find(filename); in FindJSPandaFileUnlocked() 181 ASSERT(loadedJSPandaFiles_.find(filename) == loadedJSPandaFiles_.end()); in InsertJSPandaFile() 188 auto iter = loadedJSPandaFiles_.find(filename); in IncreaseRefJSPandaFileUnlocked() 196 auto iterOld = oldJSPandaFiles_.find(jsPandaFile); in DecreaseRefJSPandaFile() 205 auto iter = loadedJSPandaFiles_.find(filename); in DecreaseRefJSPandaFile() 220 auto iter = loadedJSPandaFiles_.find(filename); in ObsoleteLoadedJSPandaFile() 223 if (oldJSPandaFiles_.find(jsPandaFile) == oldJSPandaFiles_.end()) { in ObsoleteLoadedJSPandaFile() 271 ASSERT(loadedJSPandaFiles_.find(filename) != loadedJSPandaFiles_.end()); in GetJSPtExtractor() 273 auto iter = extractors_.find(jsPandaFile); in GetJSPtExtractor()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | path_helper.h | 66 // find last '/' in ResolveCurrentPath() 85 // find last '/' in ResolveDirPath() 96 if (fileName.find("//") == CString::npos && fileName.find("./") == CString::npos && in NormalizePath() 103 size_t curr = fileName.find(delim); in NormalizePath() 115 curr = fileName.find(delim, prev); in NormalizePath() 141 pos = inputFileName.find('/', startStrLen); in ParseOhmUrl() 165 size_t pos = moduleName.find(NAME_SPACE_TAG); in CropNamespaceIfAbsent() 205 size_t pos = hapPath.find(MERGE_ABC_ETS_MODULES); in ParseHapPath() 215 size_t pos = recordName.find('/'); in CroppingRecord() 217 pos = recordName.find('/', pos + 1); in CroppingRecord() [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 35 spec_group = @data['groups'].find { |sg| sg['title'] == ntg['title'] } 117 spec_description = spec_group['description_tests'].find { |sd| same?(sd['assertion'], ntda) } 128 spec_instruction = spec_group['instructions'].find { |si| si['sig'] == nti['sig'] } 139 spec_exception = spec_group['exceptions_tests'].find { |se| se['exception'] == nte } 150 spec_verification = spec_group['verification_tests'].find { |sv| sv['verification'] == ntv } 211 spec_group = @data['groups'].find { |g| g['title'] == test_group['title'] } 236 gi = spec_group['instructions'].find { |x| x['sig'] == test_instr['sig'] } 258 sd = spec_group['description_tests']&.find { |sda| same?(sda['assertion'], test_descr) } 281 se = spec_group['exceptions_tests'].find { |x| x['exception'] == test_exc } 304 sv = spec_group['verification_tests'].find { |x| x['verification'] == test_ver }
|
| /arkcompiler/runtime_core/assembler/templates/ |
| D | ins_emit.h.erb | 58 % ops << 'labels.find(ids[0])->second' 74 % ops << "methods.find(ids[#{num_id}])->second->GetIndex(method)" 79 % ops << "strings.find(ids[#{num_id}])->second->GetIndex(method)" 84 % ops << "literalarrays.find(ids[#{num_id}])->second->GetIndex(method)" 100 if ((ids.size() == 0) || (labels.find(ids[0]) == labels.cend())) { 107 if ((ids.size() == 0) || (methods.find(ids[<%= num_id %>]) == methods.cend())) { 112 if ((ids.size() == 0) || (strings.find(ids[<%= num_id %>]) == strings.cend())) { 117 if ((ids.size() == 0) || (literalarrays.find(ids[<%= num_id %>]) == literalarrays.cend())) {
|
| /arkcompiler/runtime_core/compiler/optimizer/analysis/ |
| D | loop_analyzer.h | 64 ASSERT(std::find(back_edges_.begin(), back_edges_.end(), block) == back_edges_.end()); in AppendBackEdge() 71 ASSERT(std::find(back_edges_.begin(), back_edges_.end(), new_block) == back_edges_.end()); in ReplaceBackEdge() 72 auto it = std::find(back_edges_.begin(), back_edges_.end(), block); in ReplaceBackEdge() 74 ASSERT(std::find(it + 1, back_edges_.end(), block) == back_edges_.end()); in ReplaceBackEdge() 80 auto it = std::find(back_edges_.begin(), back_edges_.end(), block); in HasBackEdge() 86 auto it = std::find(back_edges_.begin(), back_edges_.end(), block); in RemoveBackEdge() 88 ASSERT(std::find(it + 1, back_edges_.end(), block) == back_edges_.end()); in RemoveBackEdge()
|
| D | rpo.h | 51 auto it = std::find(rpo_vector_.begin(), rpo_vector_.end(), rm_block); in RemoveBasicBlock() 60 auto it = std::find(rpo_vector_.begin(), rpo_vector_.end(), cur_block); in AddBasicBlockAfter() 67 auto it = std::find(rpo_vector_.begin(), rpo_vector_.end(), cur_block); in AddBasicBlockBefore() 74 auto it = std::find(rpo_vector_.begin(), rpo_vector_.end(), cur_block); in AddVectorAfter()
|
| /arkcompiler/runtime_core/scripts/ |
| D | gc_pause_stats.py | 34 if trig_type.find(gc_type) != -1: 70 i = line.find(GCPauseStats.PAUSE_DETECT_STR) 71 j = line.find(GCPauseStats.TOTAL_DETECT_STR, i) 92 i = line.find(cause) 127 # Find for mobile and host logs 129 i = line.find(detect_string) 155 if ii[0] != -1 and f_line.find(GCPauseStats.PAUSE_DETECT_STR) != -1:
|
| /arkcompiler/toolchain/tooling/test/ |
| D | tracing_impl_test.cpp | 109 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 117 ASSERT_TRUE(result.find("End not support now.") != std::string::npos); in HWTEST_F_L0() 135 ASSERT_TRUE(result.find("End not support now.") != std::string::npos); in HWTEST_F_L0() 153 ASSERT_TRUE(result.find("GetCategories not support now") != std::string::npos); in HWTEST_F_L0() 171 ASSERT_TRUE(result.find("RecordClockSyncMarker not support now.") != std::string::npos); in HWTEST_F_L0() 189 ASSERT_TRUE(result.find("RequestMemoryDump not support now.") != std::string::npos); in HWTEST_F_L0() 207 ASSERT_TRUE(result.find("Start not support now.") != std::string::npos); in HWTEST_F_L0() 228 ASSERT_TRUE(result.find("Tracing.BufferUsage") != std::string::npos); in HWTEST_F_L0() 250 ASSERT_TRUE(result.find("Tracing.DataCollected") != std::string::npos); in HWTEST_F_L0() 271 ASSERT_TRUE(result.find("Tracing.TracingComplete") != std::string::npos); in HWTEST_F_L0()
|
| D | profiler_impl_test.cpp | 89 ASSERT_TRUE(response.GetMessage().find("Stop is failure") != std::string::npos); in HWTEST_F_L0() 173 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 237 ASSERT_TRUE(result.find("\"id\":0") != std::string::npos); in HWTEST_F_L0() 238 ASSERT_TRUE(result.find("\"profile\"") != std::string::npos); in HWTEST_F_L0() 256 ASSERT_TRUE(result.find("Stop is failure") != std::string::npos); in HWTEST_F_L0() 270 ASSERT_TRUE(result.find("wrong params") != std::string::npos); in HWTEST_F_L0() 296 ASSERT_TRUE(result.find("GetBestEffortCoverage not support now") != std::string::npos); in HWTEST_F_L0() 314 ASSERT_TRUE(result.find("StopPreciseCoverage not support now") != std::string::npos); in HWTEST_F_L0() 332 ASSERT_TRUE(result.find("TakePreciseCoverage not support now") != std::string::npos); in HWTEST_F_L0() 350 ASSERT_TRUE(result.find("StartPreciseCoverage not support now") != std::string::npos); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | aot_data.cpp | 55 auto slot = got_plt_->find({pfile_, method_id}); in GetPltSlotOffset() 68 auto slot = got_virt_indexes_->find({pfile_, method_id}); in GetVirtIndexSlotOffset() 81 auto slot = got_class_->find({pfile_, klass_id}); in GetClassSlotOffset() 94 auto slot = got_string_->find({pfile_, string_id}); in GetStringSlotOffset() 107 auto slot = got_intf_inline_cache_->find({pfile_, index}); in GetInfInlineCacheSlotOffset()
|
| /arkcompiler/ets_runtime/ecmascript/stackmap/ |
| D | llvm_stackmap_parser.cpp | 47 auto it = pc2CallSiteInfo.find(callSiteAddr); in GetCallSiteInfoByPc() 79 auto it = pc2CallSiteInfo.find(callsite); in CalcCallSite() 81 if (pc2CallSiteInfo.find(callsite) == pc2CallSiteInfo.end()) { in CalcCallSite() 210 auto it = module2fun2FpDelta_.find(moduleIndex); in CalculateFuncFpDelta() 214 bool find = std::find(fun2FpDelta.begin(), fun2FpDelta.end(), info) == fun2FpDelta.end(); in CalculateFuncFpDelta() local 215 if (!info.empty() && find) { in CalculateFuncFpDelta() 222 auto i = module2funAddr_.find(moduleIndex); in CalculateFuncFpDelta()
|
| /arkcompiler/ets_runtime/ecmascript/shared_mm/ |
| D | shared_mm.cpp | 35 if (loadedJSSharedMemory_.find((uint64_t)*pointer) != loadedJSSharedMemory_.end()) { in CreateOrLoad() 48 if (loadedJSSharedMemory_.find((uint64_t)pointer) == loadedJSSharedMemory_.end()) { in InsertSharedMemory() 56 if (loadedJSSharedMemory_.find((uint64_t)pointer) != loadedJSSharedMemory_.end()) { in IncreaseRefSharedMemory() 64 auto iter = loadedJSSharedMemory_.find((uint64_t)pointer); in DecreaseRefSharedMemory()
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | pgo.cpp | 27 ASSERT(identity.find('L') == 0); // the first character must be 'L' in GetNameInfo() 28 ASSERT(identity.find(";\0") == identity.length() - 2); // must end with ";\0" in GetNameInfo() 33 ASSERT(identity.find('\0') == identity.length() - 1); // must end with '\0' in GetNameInfo() 68 auto comma_pos = str_line.find(':'); in ParseProfileData() 118 … return std::find(method_names.begin(), method_names.end(), p.second) != method_names.end(); in ProfileGuidedRelayout()
|