| /arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
| D | cpp_parser.py | 39 self.it = LineIterator(data) 50 while self.it.next_line(): 52 if self.it.is_access_modifier(): 55 elif self.it.is_skip_line() or self.current_modifier in ["private", "protected"]: 56 add_to_statistics("skip", self.it.current_line) 58 elif self.it.is_template(): 59 self.it.end, self.template = parse_template_prefix(self.it.data, self.it.start) 61 elif self.it.is_using(): 62 self.it.end, self.parsed = parse_using(self.it.data, self.it.start) 65 elif self.it.is_namespace(): [all …]
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | frame_handler.cpp | 33 FrameIterator it(sp_, thread_); in AdvanceToJSFrame() local 34 for (; !it.Done(); it.Advance()) { in AdvanceToJSFrame() 35 FrameType t = it.GetFrameType(); in AdvanceToJSFrame() 37 FindAndSetBaselineNativePc(it); in AdvanceToJSFrame() 43 sp_ = it.GetSp(); in AdvanceToJSFrame() 49 FrameIterator it(sp_, thread_); in PrevJSFrame() local 50 if (IsBaselineBuiltinFrame(it.GetFrameType())) { in PrevJSFrame() 51 FindAndSetBaselineNativePc(it); in PrevJSFrame() 53 it.Advance(); in PrevJSFrame() 54 sp_ = it.GetSp(); in PrevJSFrame() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | dead_code_elimination.cpp | 102 for (auto it = uses.begin(); it != uses.end(); it++) { in EliminateBranch() local 103 if (acc_.IsIfOrSwitchRelated(*it)) { in EliminateBranch() 104 ReplaceGate(*it, acc_.GetState(gate)); in EliminateBranch() 116 for (auto it = uses.begin(); it != uses.end(); it++) { in DecreaseAllSelectors() local 117 if (acc_.IsSelector(*it)) { in DecreaseAllSelectors() 118 acc_.DecreaseIn(*it, count + 1); in DecreaseAllSelectors() 145 for (auto it = uses.begin(); it != uses.end(); it++) { in EliminateMergeAndLoopBegin() local 146 if (acc_.IsSelector(*it)) { in EliminateMergeAndLoopBegin() 147 TryFindAndDeleteLoopExit(*it); in EliminateMergeAndLoopBegin() 148 auto selectorInput = acc_.GetIn(*it, 1); in EliminateMergeAndLoopBegin() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | notification_manager.h | 64 for (auto it = listeners_.begin(); it != listeners_.end(); ++it) { in RemoveListener() local 65 if (*it == listener) { in RemoveListener() 66 listeners_.erase(it); in RemoveListener() 74 for (auto it: listeners_) { in GenerateAsyncFramesEvent() local 75 it->GenerateAsyncFrames(asyncStack, skipTopFrame); in GenerateAsyncFramesEvent() 81 for (auto it: listeners_) { in LoadModuleEvent() local 82 it->LoadModule(name, entryPoint); in LoadModuleEvent() 90 for (auto it: listeners_) { in BytecodePcChangedEvent() local 91 it->BytecodePcChanged(thread, methodHandle, bcOffset); in BytecodePcChangedEvent() 98 for (auto it: listeners_) { in DebuggerStmtEvent() local [all …]
|
| /arkcompiler/runtime_core/libabckit/src/ |
| D | ir_interface_impl.cpp | 21 auto it = methods.find(offset); in GetMethodIdByOffset() local 22 ASSERT(it != methods.cend()); in GetMethodIdByOffset() 24 return std::string(it->second); in GetMethodIdByOffset() 29 auto it = strings.find(offset); in GetStringIdByOffset() local 30 ASSERT(it != strings.cend()); in GetStringIdByOffset() 32 return std::string(it->second); in GetStringIdByOffset() 37 auto it = literalarrays.find(offset); in GetLiteralArrayIdByOffset() local 38 ASSERT(it != literalarrays.cend()); in GetLiteralArrayIdByOffset() 40 return std::string(it->second); in GetLiteralArrayIdByOffset() 45 auto it = classes.find(offset); in GetTypeIdByOffset() local [all …]
|
| /arkcompiler/runtime_core/abc2program/tests/cpp_sources/ |
| D | etsImplements_test.cpp | 77 auto it = ets_implements_literal_array.literals_.begin(); variable 78 EXPECT_EQ(it->tag_, panda_file::LiteralTag::TAGVALUE); 79 ++it; 80 EXPECT_EQ(it->tag_, panda_file::LiteralTag::STRING); 81 ++it; 82 EXPECT_EQ(it->tag_, panda_file::LiteralTag::TAGVALUE); 83 ++it; 84 EXPECT_EQ(it->tag_, panda_file::LiteralTag::METHOD); 85 ++it; 86 EXPECT_EQ(it->tag_, panda_file::LiteralTag::TAGVALUE); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
| D | unionType.cpp | 24 for (auto it = constituentTypes_.begin(); it != constituentTypes_.end(); it++) { in ToString() local 25 (*it)->ToString(ss, precise); in ToString() 26 if (std::next(it) != constituentTypes_.end()) { in ToString() 59 for (auto *it : constituentTypes_) { in AssignmentSource() local 60 if (!relation->IsAssignableTo(it, target)) { in AssignmentSource() 71 for (auto *it : constituentTypes_) { in AssignmentTarget() local 72 if (relation->IsAssignableTo(source, it)) { in AssignmentTarget() 82 for (auto *it : constituentTypes_) { in GetTypeFacts() local 83 facts |= it->GetTypeFacts(); in GetTypeFacts() 94 auto it = compare + 1; in RemoveDuplicatedTypes() local [all …]
|
| D | interfaceType.cpp | 33 for (auto it = typeParamTypes_.begin(); it != typeParamTypes_.end(); it++) { in ToString() local 34 (*it)->ToString(ss); in ToString() 36 if (std::next(it) != typeParamTypes_.end()) { in ToString() 152 for (auto *it : bases_) { in Instantiate() local 154 it->Instantiate(allocator, relation, globalTypes)->AsObjectType()); in Instantiate() 163 for (auto *it : desc_->callSignatures) { in CollectSignatures() local 164 collectedSignatures->push_back(it); in CollectSignatures() 167 for (auto *it : desc_->constructSignatures) { in CollectSignatures() local 168 collectedSignatures->push_back(it); in CollectSignatures() 172 for (auto *it : bases_) { in CollectSignatures() local [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | unionType.cpp | 24 for (auto it = constituentTypes_.begin(); it != constituentTypes_.end(); it++) { in ToString() local 25 (*it)->ToString(ss); in ToString() 26 if (std::next(it) != constituentTypes_.end()) { in ToString() 59 for (auto *it : constituentTypes_) { in AssignmentSource() local 60 if (!relation->IsAssignableTo(it, target)) { in AssignmentSource() 71 for (auto *it : constituentTypes_) { in AssignmentTarget() local 72 if (relation->IsAssignableTo(source, it)) { in AssignmentTarget() 82 for (auto *it : constituentTypes_) { in GetTypeFacts() local 83 facts |= it->GetTypeFacts(); in GetTypeFacts() 94 auto it = compare + 1; in RemoveDuplicatedTypes() local [all …]
|
| D | interfaceType.cpp | 29 for (auto it = typeParamTypes_.begin(); it != typeParamTypes_.end(); it++) { in ToString() local 30 (*it)->ToString(ss); in ToString() 32 if (std::next(it) != typeParamTypes_.end()) { in ToString() 145 for (auto *it : bases_) { in Instantiate() local 147 it->Instantiate(allocator, relation, globalTypes)->AsObjectType()); in Instantiate() 156 for (auto *it : desc_->callSignatures) { in CollectSignatures() local 157 collectedSignatures->push_back(it); in CollectSignatures() 160 for (auto *it : desc_->constructSignatures) { in CollectSignatures() local 161 collectedSignatures->push_back(it); in CollectSignatures() 165 for (auto *it : bases_) { in CollectSignatures() local [all …]
|
| D | objectDescriptor.cpp | 25 for (auto *it : properties) { in FindProperty() local 26 if (it->Name() == name) { in FindProperty() 27 return it; in FindProperty() 39 for (auto *it : properties) { in Copy() local 40 auto *copiedProp = it->Copy(allocator, it->Declaration()); in Copy() 41 copiedProp->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy() 45 for (auto *it : callSignatures) { in Copy() local 46 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy() 49 for (auto *it : constructSignatures) { in Copy() local 50 copiedDesc->constructSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
|
| /arkcompiler/ets_frontend/ets2panda/ir/ets/ |
| D | etsUnionType.cpp | 23 for (auto *&it : VectorIterationGuard(types_)) { in TransformChildren() local 24 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren() 25 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 26 it = static_cast<TypeNode *>(transformedNode); in TransformChildren() 29 for (auto *&it : VectorIterationGuard(Annotations())) { in TransformChildren() local 30 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren() 31 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 32 it = transformedNode->AsAnnotationUsage(); in TransformChildren() 39 for (auto *it : VectorIterationGuard(types_)) { in Iterate() local 40 cb(it); in Iterate() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | typeElaborationContext.cpp | 31 for (auto it = potentialTypes_.begin(); it != potentialTypes_.end();) { in GetBestMatchingType() local 32 Type *currentType = checker_->GetPropertyTypeForIndexType(*it, indexType); in GetBestMatchingType() 35 it = potentialTypes_.erase(it); in GetBestMatchingType() 40 it = potentialTypes_.erase(it); in GetBestMatchingType() 42 it++; in GetBestMatchingType() 56 for (auto *it : sourceNode_->AsArrayExpression()->Elements()) { in Start() local 57 if (it->IsOmittedExpression()) { in Start() 67 … targetElementType = GetBestMatchingType(checker_->CreateStringLiteralType(memberIndex), it); in Start() 77 checker_->ElaborateElementwise(targetElementType, it, it->Start()); in Start() 88 for (auto *it : targetType_->AsUnionType()->ConstituentTypes()) { in RemoveUnnecessaryTypes() local [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| D | typeElaborationContext.cpp | 34 for (auto it = potentialTypes_.begin(); it != potentialTypes_.end();) { in GetBestMatchingType() local 35 Type *currentType = checker_->GetPropertyTypeForIndexType(*it, indexType); in GetBestMatchingType() 38 it = potentialTypes_.erase(it); in GetBestMatchingType() 43 it = potentialTypes_.erase(it); in GetBestMatchingType() 45 it++; in GetBestMatchingType() 59 for (auto *it : sourceNode_->AsArrayExpression()->Elements()) { in Start() local 60 if (it->IsOmittedExpression()) { in Start() 70 … targetElementType = GetBestMatchingType(checker_->CreateStringLiteralType(memberIndex), it); in Start() 80 checker_->ElaborateElementwise(targetElementType, it, it->Start()); in Start() 91 for (auto *it : targetType_->AsUnionType()->ConstituentTypes()) { in RemoveUnnecessaryTypes() local [all …]
|
| /arkcompiler/runtime_core/static_core/abc2program/tests/ |
| D | abc2program_test.cpp | 215 for (const auto &it : prog->recordTable) { in TEST_F() local 216 EXPECT_TRUE(it.second.language == expectedLang); in TEST_F() 217 EXPECT_TRUE(it.first == it.second.name); in TEST_F() 218 recordNames.emplace_back(it.first); in TEST_F() 235 for (auto &it : prog->functionStaticTable) { in TEST_F() local 236 existingFunctions.insert(it.first); in TEST_F() 238 for (auto &it : prog->functionInstanceTable) { in TEST_F() local 239 existingFunctions.insert(it.first); in TEST_F() 247 for (const auto &it : prog->recordTable) { in TEST_F() local 248 if (it.first == "HelloWorld") { in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/common_components/mutator/ |
| D | mutator_manager-inl.h | 42 for (auto it = undoneMutators.begin(); it != undoneMutators.end();) { in FlipMutators() local 43 …bool hasDead = std::find(allMutatorList_.begin(), allMutatorList_.end(), *it) == allMutatorList_.e… in FlipMutators() 45 it = undoneMutators.erase(it); in FlipMutators() 48 Mutator* mutator = *it; in FlipMutators() 50 it = undoneMutators.erase(it); in FlipMutators() 53 it++; in FlipMutators() 56 for (auto it = undoneMutators.begin(); it != undoneMutators.end(); it++) { in FlipMutators() local 57 Mutator* mutator = *it; in FlipMutators()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/ |
| D | maple_phase_manager.cpp | 46 auto it = analysisPhaseMemPool.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() local 48 if (it != analysisPhaseMemPool.end() && itanother != availableAnalysisPhases.end()) { in EraseAnalysisPhase() 51 delete it->second; in EraseAnalysisPhase() 52 it->second = nullptr; in EraseAnalysisPhase() 62 for (auto it = availableAnalysisPhases.begin(); it != availableAnalysisPhases.end();) { in EraseAllAnalysisPhase() local 63 EraseAnalysisPhase(it); in EraseAllAnalysisPhase() 71 auto it = analysisPhaseMemPool.find(anaPhaseMapIt->first); in EraseAnalysisPhase() local 72 if (it != analysisPhaseMemPool.end()) { in EraseAnalysisPhase() 74 delete it->second; in EraseAnalysisPhase() 75 it->second = nullptr; in EraseAnalysisPhase() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ir/ts/ |
| D | tsUnionType.cpp | 27 for (auto *&it : VectorIterationGuard(types_)) { in TransformChildren() local 28 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren() 29 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 30 it = static_cast<TypeNode *>(transformedNode); in TransformChildren() 33 for (auto *&it : VectorIterationGuard(Annotations())) { in TransformChildren() local 34 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren() 35 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 36 it = transformedNode->AsAnnotationUsage(); in TransformChildren() 43 for (auto *it : VectorIterationGuard(types_)) { in Iterate() local 44 cb(it); in Iterate() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | bit_vector_test.cpp | 147 for (auto it = vector.end() - 1;; --it) { in TestIteration1() local 148 ASSERT_EQ(*it, index-- % 2); in TestIteration1() 149 if (it == vector.begin()) { in TestIteration1() 168 auto it = vector.begin(); in TestIteration2() local 169 ASSERT_EQ(*it, false); in TestIteration2() 170 ++it; in TestIteration2() 171 ASSERT_EQ(*it, true); in TestIteration2() 172 auto it1 = it++; in TestIteration2() 173 ASSERT_EQ(*it, false); in TestIteration2() 175 ASSERT_TRUE(it1 < it); in TestIteration2() [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/client/manager/ |
| D | source_manager.cpp | 91 for (auto it = fileSource_.begin(); it != fileSource_.end(); it++) { in GetFileName() local 92 std::cout << "scriptID : " << it->first; in GetFileName() 93 std::cout << " fileName : " << it->second.first <<std::endl; in GetFileName() 107 auto it = fileSource_.find(scriptId); in SetFileSource() local 108 if (it != fileSource_.end() && it->second.second.empty()) { in SetFileSource() 113 it->second.second.push_back(line); in SetFileSource() 117 it->second.second.push_back(fileSource.substr(startPos)); in SetFileSource() 125 auto it = fileSource_.find(scriptId); in GetFileSource() local 126 if (it != fileSource_.end()) { in GetFileSource() 128 for (const std::string& value : it->second.second) { in GetFileSource() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
| D | string_hashmap.cpp | 24 auto it = hashmap_.find(key); in FindOrInsertString() local 25 if (it != hashmap_.end()) { in FindOrInsertString() 26 return it->second; in FindOrInsertString() 40 auto it = indexMap_.find(GenerateStringKey(cstr)); in GetStringId() local 41 return it != indexMap_.end() ? it->second : 1; // "" in GetStringId() 46 auto it = hashmap_.find(key); in GetStringByKey() local 47 if (it != hashmap_.end()) { in GetStringByKey() 48 return it->second; in GetStringByKey() 55 auto it = hashmap_.find(key); in GetStringAndIdPair() local 56 if (it != hashmap_.end()) { in GetStringAndIdPair() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_for_in_iterator.cpp | 84 JSTaggedValue JSForInIterator::NextInternal(JSThread *thread, const JSHandle<JSForInIterator> &it) in NextInternal() argument 86 uint32_t length = it->GetLength(); in NextInternal() 87 uint32_t index = it->GetIndex(); in NextInternal() 91 JSTaggedValue taggedKeys = it->GetKeys(thread); in NextInternal() 92 JSTaggedValue receiver = it->GetObject(thread); in NextInternal() 93 EnumCacheKind kind = static_cast<EnumCacheKind>(it->GetCacheKind()); in NextInternal() 95 if (IsEnumCacheValid(thread, receiver, it->GetCachedHClass(thread), kind)) { in NextInternal() 98 it->SetIndex(index); in NextInternal() 105 it->SetIndex(index); in NextInternal() 109 return NextInternalSlowpath(thread, it); in NextInternal() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/vmstat/ |
| D | opt_code_profiler.cpp | 28 for (auto it = profMap_.begin(); it != profMap_.end(); it++) { in PrintAndReset() local 29 profVec.emplace_back(std::make_pair(it->first, it->second)); in PrintAndReset() 30 it->second.ResetStat(); in PrintAndReset() 54 for (auto it = profVec.begin(); it != profVec.end(); it++) { in PrintAndReset() local 55 Value val = it->second; in PrintAndReset() 60 …G_ECMA(INFO) << std::right << std::setw(nameRightAdjustment) << kungfu::GetEcmaOpcodeStr(it->first) in PrintAndReset() 93 for (auto it = profMap.begin(); it != profMap.end();) { in FilterMethodToPrint() local 94 if (it->second == false) { in FilterMethodToPrint() 95 methods.push_back(it->first); in FilterMethodToPrint() 96 profMap.erase(it++); in FilterMethodToPrint() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | StringFasta.ets | 134 /* @@? 21:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 135 /* @@? 22:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 136 /* @@? 23:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 137 /* @@? 24:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 138 /* @@? 25:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 139 /* @@? 26:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 140 /* @@? 27:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 141 /* @@? 28:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 142 /* @@? 29:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 143 /* @@? 30:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/ |
| D | StringFasta.ets | 134 /* @@? 21:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 135 /* @@? 22:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 136 /* @@? 23:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 137 /* @@? 24:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 138 /* @@? 25:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 139 /* @@? 26:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 140 /* @@? 27:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 141 /* @@? 28:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 142 /* @@? 29:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… 143 /* @@? 30:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta… [all …]
|