/arkcompiler/ets_runtime/ecmascript/ |
D | waiter_list.cpp | 28 iter->second.pTail->next_ = node; in AddNode() 29 node->prev_ = iter->second.pTail; in AddNode() 30 iter->second.pTail = node; in AddNode() 40 WaiterListNode *temp = iter->second.pHead; in DeleteNode() 50 if (node == iter->second.pHead && node == iter->second.pTail) { in DeleteNode() 55 if (node == iter->second.pHead) { in DeleteNode() 56 iter->second.pHead = node->next_; in DeleteNode() 62 if (node == iter->second.pTail) { in DeleteNode() 63 iter->second.pTail = node->prev_; in DeleteNode()
|
D | ecma_string_table.cpp | 35 for (auto item = range.first; item != range.second; ++item) { in GetString() 36 auto foundString = item->second; in GetString() 48 for (auto item = range.first; item != range.second; ++item) { in GetString() 49 auto foundString = item->second; in GetString() 61 for (auto item = range.first; item != range.second; ++item) { in GetString() 62 auto foundString = item->second; in GetString() 75 for (auto item = range.first; item != range.second; ++item) { in GetString() 76 auto foundString = item->second; in GetString() 223 auto *object = it->second; in SweepWeakReference() 230 it->second = static_cast<EcmaString *>(fwd); in SweepWeakReference() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | genericSpecializationToTypeLiteral1.ts | 24 …zip<TResult>(second: IEnumerable<T>, resultSelector: (first: T, second: T, index: number) => TResu… 25 …zip<TResult>(second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnume… 35 insert(index: number, second: IEnumerable<T>): IEnumerable<T>; 37 sequenceEqual(second: IEnumerable<T>): boolean; 38 …sequenceEqual<TCompare>(second: IEnumerable<T>, compareSelector: (element: T) => TCompare): boolea… 39 sequenceEqual(second: T[]): boolean; 40 sequenceEqual<TCompare>(second: T[], compareSelector: (element: T) => TCompare): boolean;
|
D | genericInstantiationEquivalentToObjectLiteral.ts | 21 interface Pair<T1, T2> { first: T1; second: T2; } 25 let y: { first: string; second: number; variable 30 AssertType(second, "number"); 44 declare function f2<T, U>(x: { first: T; second: U; });
|
D | reverseMappedTypeAssignableToIndex.ts | 30 second: "second"; 34 second: { name: "second" },
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler_layout.cpp | 49 handler = desc.second; in FindDescWithKey() 56 UpdateKeyAndDesc(iter.first, iter.second, PGOObjKind::LOCAL); in Merge() 59 UpdateKeyAndDesc(iter.first, iter.second, PGOObjKind::PROTOTYPE); in Merge() 62 UpdateKeyAndDesc(iter.first, iter.second, PGOObjKind::CONSTRUCTOR); in Merge() 70 PGOHandler oldHandler = iter.second; in UpdateKeyAndDesc() 77 iter.second.SetIsAccessor(handler.IsAccessor()); in UpdateKeyAndDesc() 83 iter.second.SetIsAccessor(handler.IsAccessor()); in UpdateKeyAndDesc() 92 iter.second = PGOHandler(newTrackType, handler.IsAccessor()); in UpdateKeyAndDesc()
|
/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 …]
|
D | assembler_lexer_test.cpp | 45 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 61 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 81 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 97 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 115 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 132 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 147 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 162 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 185 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 202 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; [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/toolchain/inspector/ |
D | inspector.cpp | 113 if (iter != g_inspectors.end() && iter->second != nullptr && in SendReply() 114 iter->second->websocketServer_ != nullptr) { in SendReply() 115 iter->second->websocketServer_->SendReply(message); in SendReply() 122 if (iter != g_inspectors.end() && iter->second != nullptr && in ResetServiceLocked() 123 iter->second->websocketServer_ != nullptr) { in ResetServiceLocked() 124 iter->second->websocketServer_->StopServer(); in ResetServiceLocked() 125 delete iter->second; in ResetServiceLocked() 126 iter->second = nullptr; in ResetServiceLocked() 148 if (!g_inspectors.emplace(vm, newInspector).second) { in InitializeInspector() 292 if (iter == g_inspectors.end() || iter->second == nullptr) { in StopDebug()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile.h | 125 return info->second; in GetMethodLiteralByIndex() 143 return jsRecordInfo_.begin()->second.mainMethodIndex; 147 return info->second.mainMethodIndex; 157 return &info->second.constpoolMap; in GetConstpoolMapByReocrd() 174 jsRecordInfo_.begin()->second.mainMethodIndex = mainMethodIndex; 178 info->second.mainMethodIndex = mainMethodIndex; 188 return jsRecordInfo_.begin()->second.moduleRecordIdx; 192 return info->second.moduleRecordIdx; 296 return info->second; in FindRecordInfo() 343 return it->second.hasTSTypes; in HasTSTypes() [all …]
|
D | js_pandafile_manager.cpp | 234 const std::shared_ptr<JSPandaFile> &jsPandafile = iter.second.first; in FindMergedJSPandaFile() 251 return iter->second.first; in FindJSPandaFileUnlocked() 264 const std::shared_ptr<JSPandaFile> &jsPandafile = iter.second.first; in GetJSPandaFile() 297 auto &vmSet = iter->second.second; in InsertJSPandaFileVmUnlocked() 311 auto &vmSet = iterOld->second; in RemoveJSPandaFileVm() 324 auto &vmSet = iter->second.second; in RemoveJSPandaFileVm() 338 std::shared_ptr<JSPandaFile> &jsPandaFile = iter->second.first; in ObsoleteLoadedJSPandaFile() 340 oldJSPandaFiles_.emplace(jsPandaFile, iter->second.second); in ObsoleteLoadedJSPandaFile() 343 auto &vmSet = iter->second.second; in ObsoleteLoadedJSPandaFile() 399 return iter->second.get(); in GetJSPtExtractor() [all …]
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | patchFix.cpp | 93 if (Helpers::GetHashString(ConvertLiteralToString(moduleBuffer)) != it->second) { in ValidateModuleInfo() 119 if (Helpers::GetHashString(jsonFileContent) != it->second) { in ValidateJsonContentRecInfo() 143 funcInfo->second.push_back(className); in CollectFunctionsWithDefinedClasses() 220 return ConvertLiteralToString(litPair.second); in ExpandLiteral() 234 for (auto &literal : litPair.second) { in GetLiteralMethods() 287 for (const auto &lexenv : functionIter->second.lexenv) { in GetSlotIdFromSymbolTable() 288 if (lexenv.second.first == variableName) { in GetSlotIdFromSymbolTable() 330 for (auto &func: cls.second) { in HandleModifiedClasses() 351 for (auto &definedClass: funcInfo.second) { in HandleModifiedDefinedClassFunc() 476 auto &lexInfo = lexenvIter->second; in CompareLexenv() [all …]
|
/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/ets_frontend/arkguard/test/grammar/advanced_type/ |
D | intersection_types.ts | 18 function extend<T, U>(first: T, second: U): T & U { 23 for (let id in second) { 25 (<any>result)[id] = (<any>second)[id];
|
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/ |
D | opt_code_profiler.cpp | 28 profVec.emplace_back(std::make_pair(it->first, it->second)); in PrintAndReset() 29 it->second.ResetStat(); in PrintAndReset() 33 return x.second.Count() > y.second.Count(); in PrintAndReset() 53 Value val = it->second; in PrintAndReset()
|
/arkcompiler/ets_frontend/es2panda/aot/ |
D | emitFiles.cpp | 34 if (!info.second->needUpdateCache) { in Schedule() 39 auto emitProtoJob = new EmitCacheJob(outputCacheIter->second, info.second); in Schedule() 54 … auto emitSingleAbcJob = new EmitSingleAbcJob(outputFileName, &(info.second->program), statp_); in Schedule() 84 progs.push_back(&(info.second->program)); in Run()
|
/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/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_runtime/ecmascript/regexp/tests/ |
D | regexp_test.cpp | 656 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str) == 0); in HWTEST_F_L0() 678 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str) == 0); in HWTEST_F_L0() 679 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str) == 0); in HWTEST_F_L0() 680 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[2].second, str) == 0); in HWTEST_F_L0() 681 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[3].second, str) == 0); in HWTEST_F_L0() 710 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str1) == 0); in HWTEST_F_L0() 711 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0() 733 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str) == 0); in HWTEST_F_L0() 755 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str) == 0); in HWTEST_F_L0() 781 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[0].second, str1) == 0); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string_iterator.cpp | 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/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() 616 if (range.second >= interItem.second) { in Inter() 617 secondMin = interItem.second; in Inter() 619 secondMin = range.second; in Inter() 642 Insert(range.first, range.second); in Insert() 658 if (iter->first == 0 && iter->second == maxValue) { in Invert() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsInterfaceDeclaration.cpp | 84 } else if (res->second.second != type) { in CheckInheritedPropertiesAreIdentical() 86 checker::Type *targetType = checker->GetTypeOfVariable(res->second.first); in CheckInheritedPropertiesAreIdentical() 89 … res->second.second, "' and '", base->AsInterfaceType(), "'."}, in CheckInheritedPropertiesAreIdentical()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | an_file_info.h | 33 accumulateTotalSize(s.second.second); in AddModuleDes() 45 return it->second; in GetMainFuncEntry()
|
/arkcompiler/ets_frontend/es2panda/compiler/debugger/ |
D | debuginfoDumper.cpp | 177 WriteProperty("retType", iter->second.return_type.GetName()); in Dump() 179 WrapArray("params", iter->second.params, false); in Dump() 185 WrapArray("ins", iter->second.ins); in Dump() 186 WrapArray("variables", iter->second.local_variable_debug); in Dump() 187 WriteProperty("sourceFile", iter->second.source_file); in Dump() 188 WriteProperty("sourceCode", iter->second.source_code); in Dump() 190 WriteMetaData(iter->second.metadata->GetAnnotations()); in Dump()
|