| /arkcompiler/ets_runtime/ecmascript/ |
| D | waiter_list.cpp | 30 iter->second.pTail->next_ = node; in AddNode() 31 node->prev_ = iter->second.pTail; in AddNode() 32 iter->second.pTail = node; in AddNode() 42 WaiterListNode *temp = iter->second.pHead; in DeleteNode() 52 if (node == iter->second.pHead && node == iter->second.pTail) { in DeleteNode() 57 if (node == iter->second.pHead) { in DeleteNode() 58 iter->second.pHead = node->next_; in DeleteNode() 64 if (node == iter->second.pTail) { in DeleteNode() 65 iter->second.pTail = node->prev_; in DeleteNode()
|
| D | ecma_string_table.cpp | 34 for (; item != range.second; ++item) { in GetString() 35 auto foundString = item->second; in GetString() 48 for (; item != range.second; ++item) { in GetString() 49 auto foundString = item->second; in GetString() 62 for (; item != range.second; ++item) { in GetString() 63 auto foundString = item->second; in GetString() 76 for (; item != range.second; ++item) { in GetString() 77 auto foundString = item->second; in GetString() 190 auto *object = it->second; in SweepWeakReference() 197 it->second = static_cast<EcmaString *>(fwd); in SweepWeakReference() [all …]
|
| /arkcompiler/runtime_core/assembler/tests/ |
| D | lexer_test.cpp | 34 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 44 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 58 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 68 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 80 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 91 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 100 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 109 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 126 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 137 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | js_pandafile_manager.cpp | 48 const JSPandaFile *jsPandaFile = iter->second.first; in ~JSPandaFileManager() 155 return iter->second.first; in FindJSPandaFileUnlocked() 168 const JSPandaFile *jsPandafile = iter.second.first; in GetJSPandaFile() 190 iter->second.second++; in IncreaseRefJSPandaFileUnlocked() 198 if (iterOld->second > 1) { in DecreaseRefJSPandaFile() 199 iterOld->second--; in DecreaseRefJSPandaFile() 207 if (iter->second.second > 1) { in DecreaseRefJSPandaFile() 208 iter->second.second--; in DecreaseRefJSPandaFile() 222 const JSPandaFile *jsPandaFile = iter->second.first; in ObsoleteLoadedJSPandaFile() 224 oldJSPandaFiles_.emplace(jsPandaFile, iter->second.second); in ObsoleteLoadedJSPandaFile() [all …]
|
| D | js_pandafile.h | 144 return jsRecordInfo_.begin()->second.mainMethodIndex; 148 return info->second.mainMethodIndex; 158 return &info->second.constpoolMap; in GetConstpoolMapByReocrd() 175 jsRecordInfo_.begin()->second.mainMethodIndex = mainMethodIndex; 179 info->second.mainMethodIndex = mainMethodIndex; 189 return jsRecordInfo_.begin()->second.moduleRecordIdx; 193 return info->second.moduleRecordIdx; 249 return info->second; in FindRecordInfo() 303 return it->second.HasTSTypes(); in HasTSTypes() 312 return it->second.GetTypeSummaryOffset(); in GetTypeSummaryOffset() [all …]
|
| D | js_pandafile.cpp | 85 auto recordInfo = iter->second; in ~JSPandaFile() 107 ConstPoolValue value(it->second); in GetOrInsertConstantPool() 199 return iter->second; in FindMethodLiteral() 205 return jsRecordInfo_.begin()->second.moduleRecordIdx == -1 ? false : true; in IsModule() 209 return info->second.moduleRecordIdx == -1 ? false : true; in IsModule() 222 return jsRecordInfo_.begin()->second.isCjs; in IsCjs() 226 return info->second.isCjs; in IsCjs() 235 return jsRecordInfo_.begin()->second.isJson; in IsJson() 239 return info->second.isJson; in IsJson() 249 panda_file::File::EntityId(jsRecordInfo_.begin()->second.jsonStringId)).data); in GetJsonStringId() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_string_iterator.cpp | 74 // a. Let second be the code unit value at index position+1 in the String S. in Next() 75 …// b. If second < 0xDC00 or second > 0xDFFF, let resultString be the string consisting of the sing… in Next() 77 … let resultString be the string consisting of the code unit first followed by the code unit second. in Next() 78 … uint16_t second = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position + 1); in Next() local 79 … if (second < base::utf_helper::DECODE_TRAIL_LOW || second > base::utf_helper::DECODE_TRAIL_HIGH) { in Next() 83 std::vector<uint16_t> resultString {first, second, 0x0}; in Next()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | expected_test.cpp | 24 enum class ErrorCode { First, Second }; enumerator 34 return Unexpected {ErrorCode::Second}; in helper() 70 auto u = Unexpected(ErrorCode::Second); in TEST() 74 EXPECT_EQ(e3.Error(), ErrorCode::Second); in TEST() 84 EXPECT_EQ((Expected<int, ErrorCode>(Unexpected(ErrorCode::Second)).Error()), ErrorCode::Second); in TEST() 114 EXPECT_EQ(res3.Error(), ErrorCode::Second); in TEST()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | ir_interface.h | 41 return std::string(it->second); in GetMethodIdByOffset() 49 return std::string(it->second); in GetStringIdByOffset() 57 return std::string(it->second); in GetLiteralArrayByOffset() 77 return std::string(it->second); in GetTypeIdByOffset() 85 return std::string(it->second); in GetFieldIdByOffset() 102 return iter->second->ins_debug.line_number; in GetLineNumberByPc() 115 return iter->second->ins_debug.column_number; in GetColumnNumberByPc()
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | bitmap_clear_range_test.cpp | 46 bm.ClearRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second)); in TEST_F() 51 ….IterateOverChunkInRange(ToVoidPtr(heap_begin + range.first), ToVoidPtr(heap_begin + range.second), in TEST_F() 53 // for SIXTH_RANGE, range.second is not in the heap, so we skip this test in TEST_F() 54 if (range.second < bm.MemSizeInBytes()) { in TEST_F() 55 bm.IterateOverChunkInRange(ToVoidPtr(heap_begin + range.second), in TEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/regexp/tests/ |
| D | regexp_test.cpp | 656 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str) == 0); in HWTEST_F_L0() 678 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str) == 0); in HWTEST_F_L0() 679 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[1].second, *str) == 0); in HWTEST_F_L0() 680 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[2].second, *str) == 0); in HWTEST_F_L0() 681 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[3].second, *str) == 0); in HWTEST_F_L0() 710 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str1) == 0); in HWTEST_F_L0() 711 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[1].second, *str2) == 0); in HWTEST_F_L0() 733 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str) == 0); in HWTEST_F_L0() 755 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str) == 0); in HWTEST_F_L0() 781 ASSERT_TRUE(EcmaStringAccessor::Compare(*result.captures_[0].second, *str1) == 0); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/test/aottest/stobjbyvalue/ |
| D | stobjbyvalue.ts | 19 var second = 1; 25 print(array[second]); 27 array[second] = 200; 29 print(array[second]);
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | hotfix.cpp | 96 if (std::to_string(hash) != it->second) { in ValidateModuleInfo() 124 if (std::to_string(hash) != it->second) { in ValidateJsonContentRecInfo() 214 return ConvertLiteralToString(litPair.second); in ExpandLiteral() 228 for (auto &literal : litPair.second) { in GetLiteralMethods() 281 for (const auto &lexenv : functionIter->second.lexenv) { in GetSlotIdFromSymbolTable() 282 if (lexenv.second.first == variableName) { in GetSlotIdFromSymbolTable() 324 for (auto &func: cls.second) { in HandleModifiedClasses() 456 auto &lexInfo = lexenvIter->second; in CompareLexenv() 457 …if (std::string(variable.second.first) != lexInfo.first || variable.second.second != lexInfo.secon… in CompareLexenv() 476 if (classIter->second != std::to_string(hashList[i].second)) { in CompareClassHash() [all …]
|
| /arkcompiler/toolchain/inspector/ |
| D | inspector.cpp | 106 if (iter != g_inspectors.end() && iter->second != nullptr && in SendReply() 107 iter->second->websocketServer_ != nullptr) { in SendReply() 108 iter->second->websocketServer_->SendReply(message); in SendReply() 115 if (iter != g_inspectors.end() && iter->second != nullptr && in ResetServiceLocked() 116 iter->second->websocketServer_ != nullptr) { in ResetServiceLocked() 117 iter->second->websocketServer_->StopServer(); in ResetServiceLocked() 118 delete iter->second; in ResetServiceLocked() 119 iter->second = nullptr; in ResetServiceLocked() 141 if (!g_inspectors.emplace(vm, newInspector).second) { in InitializeInspector() 285 if (iter == g_inspectors.end() || iter->second == nullptr) { in StopDebug()
|
| /arkcompiler/ets_frontend/es2panda/parser/module/ |
| D | sourceTextModuleRecord.cpp | 28 moduleRequestsIdxMap_.insert(std::make_pair(insertedRes.first->second, source)); in AddModuleRequest() 29 return insertedRes.first->second; in AddModuleRequest() 111 const SourceTextModuleRecord::ExportEntry *e = entryUnit.second; in HasDuplicateExport() 131 ConvertLocalExportToIndirect(regularImport->second, exportEntry); in CheckImplicitIndirectExport() 142 if (range.first == range.second) { in CheckImplicitIndirectExport() 146 for (auto it = range.first; it != range.second; ++it) { in CheckImplicitIndirectExport() 147 SourceTextModuleRecord::ExportEntry *exportEntry = it->second; in CheckImplicitIndirectExport() 151 localExportEntries_.erase(range.first, range.second); in CheckImplicitIndirectExport()
|
| /arkcompiler/ets_frontend/es2panda/aot/ |
| D | emitFiles.cpp | 39 … auto emitSingleAbcJob = new EmitSingleAbcJob(outputFileName, &(info.second->program), statp_); in Schedule() 50 if (!info.second->needUpdateCache) { in Schedule() 55 auto emitProtoJob = new EmitCacheJob(outputCacheIter->second, info.second); in Schedule() 79 progs.push_back(&(info.second->program)); in Run()
|
| /arkcompiler/runtime_core/runtime/ |
| D | monitor_pool.cpp | 49 return it->second; in LookupMonitor() 59 auto *monitor = it->second; in FreeMonitor() 69 auto monitor = monitor_iter->second; in DeflateMonitors() 83 auto *monitor = it.second; in ReleaseMonitors() 96 auto *monitor = it.second; in GetEnteredMonitorsIds()
|
| D | string_table.cpp | 87 visitor(entry.second); in VisitStrings() 97 auto found_string = it->second; in GetString() 111 auto found_string = it->second; in GetString() 125 auto found_string = it->second; in GetString() 147 auto found_string = it->second; in InternString() 211 auto *object = it->second; in UpdateMoved() 214 it->second = static_cast<coretypes::String *>(fwd_string); in UpdateMoved() 231 auto *object = it->second; in Sweep() 235 it->second = static_cast<coretypes::String *>(fwd_string); in Sweep() 310 (it->second)[id] = result; in GetOrInternString() [all …]
|
| D | monitor_pool.h | 41 if (!cb(iter.second)) { in EnumerateMonitors() 52 auto monitor = monitor_iter->second; in DeflateMonitorsWithCallBack() 79 if (iter.second != nullptr) { in ~MonitorPool() 80 allocator_->Delete(iter.second); in ~MonitorPool()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | waiter_list_test.cpp | 89 EXPECT_EQ(indexOneIter->second.pTail, listNode); in HWTEST_F_L0() 90 EXPECT_EQ(indexOneIter->second.pHead, listNode); in HWTEST_F_L0() 95 EXPECT_EQ(indexOneIter1->second.pTail, listNode); in HWTEST_F_L0() 96 EXPECT_EQ(indexOneIter1->second.pTail->next_, listNode); in HWTEST_F_L0() 97 EXPECT_EQ(indexOneIter1->second.pHead, listNode); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/compiler/optimizer/analysis/ |
| D | liveness_use_table.cpp | 24 auto &uses = res.first->second; in AddUseOnFixedLocation() 35 const auto &uses = it->second; in HasUseOnFixedLocation() 45 const auto &uses = it->second; in GetNextUseOnFixedLocation() 47 return uses_it == uses.end() ? INVALID_REG : uses_it->second; in GetNextUseOnFixedLocation()
|
| D | alias_analysis.cpp | 92 …ASSERT(pair.second.GetBase() == nullptr || pair.second.GetBase()->GetOpcode() != Opcode::NullCheck… in RunImpl() 93 it.first->second.insert(pair.second); in RunImpl() 251 * After second iteration (iterating B node) nothing changes 284 … auto &sols = points_to_.try_emplace(edge, GetGraph()->GetAllocator()->Adapter()).first->second; in SolveConstraints() 294 added |= sols.insert(p).second; in SolveConstraints() 301 added |= sols.insert(p).second; in SolveConstraints() 310 added |= sols.insert(p).second; in SolveConstraints() 317 added |= sols.insert(p).second; in SolveConstraints() 320 added |= sols.insert(alias).second; in SolveConstraints()
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_profiler_info.cpp | 184 auto info = result->second; in AddMethod() 202 auto fromMethodInfo = iter->second; in Merge() 206 auto toMethodInfo = result->second; in Merge() 241 LOG_ECMA(DEBUG) << "Method:" << iter->first << ELEMENT_SEPARATOR << iter->second->GetCount() in ProcessToBinary() 242 … << ELEMENT_SEPARATOR << std::to_string(static_cast<int>(iter->second->GetSampleMode())) in ProcessToBinary() 243 << ELEMENT_SEPARATOR << iter->second->GetMethodName(); in ProcessToBinary() 248 auto curMethodInfo = iter->second; in ProcessToBinary() 308 auto methodInfo = methodInfoIter.second; in ProcessToText() 350 curMethodInfos = iter->second; in AddMethod() 362 auto fromMethodInfos = iter->second; in Merge() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | aot_data.cpp | 57 slot_id = slot->second; in GetPltSlotOffset() 70 slot_id = slot->second; in GetVirtIndexSlotOffset() 83 slot_id = slot->second; in GetClassSlotOffset() 96 slot_id = slot->second; in GetStringSlotOffset() 109 slot_id = slot->second; in GetInfInlineCacheSlotOffset()
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_opcode.cpp | 473 buf->EmitU16(range.second); in InsertOpCode() 500 buf->EmitU32(range.second); in InsertOpCode() 581 if (IsIntersect(start, end, iter->first, iter->second) || in Insert() 582 IsAdjacent(start, end, iter->first, iter->second)) { in Insert() 584 iter->second = std::max(iter->second, end); in Insert() 605 Insert(range.first, range.second); in Insert() 621 if (iter->first == 0 && iter->second == maxValue) { in Invert() 630 if (iter->second == maxValue) { in Invert() 634 iter->first = iter->second + 1; in Invert() 636 iter->second = iter2->first - 1; in Invert() [all …]
|