Home
last modified time | relevance | path

Searched full:it (Results 1 – 25 of 2466) sorted by relevance

12345678910>>...99

/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
Dcpp_parser.py39 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_namespace():
62 self.it.end, self.parsed = parse_namespace(self.it.data, self.it.start)
65 elif self.it.is_enum():
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Ddead_code_elimination.cpp102 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/interpreter/
Dframe_handler.cpp34 FrameIterator it(sp_, thread_); in AdvanceToJSFrame() local
35 for (; !it.Done(); it.Advance()) { in AdvanceToJSFrame()
36 FrameType t = it.GetFrameType(); in AdvanceToJSFrame()
38 FindAndSetBaselineNativePc(it); in AdvanceToJSFrame()
44 sp_ = it.GetSp(); in AdvanceToJSFrame()
50 FrameIterator it(sp_, thread_); in PrevJSFrame() local
51 if (IsBaselineBuiltinFrame(it.GetFrameType())) { in PrevJSFrame()
52 FindAndSetBaselineNativePc(it); in PrevJSFrame()
54 it.Advance(); in PrevJSFrame()
55 sp_ = it.GetSp(); in PrevJSFrame()
[all …]
/arkcompiler/runtime_core/libabckit/src/
Dir_interface_impl.cpp21 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/ets_runtime/ecmascript/debugger/
Dnotification_manager.h62 for (auto it = listeners_.begin(); it != listeners_.end(); ++it) { in RemoveListener() local
63 if (*it == listener) { in RemoveListener()
64 listeners_.erase(it); in RemoveListener()
72 for (auto it: listeners_) { in LoadModuleEvent() local
73 it->LoadModule(name, entryPoint); in LoadModuleEvent()
81 for (auto it: listeners_) { in BytecodePcChangedEvent() local
82 it->BytecodePcChanged(thread, methodHandle, bcOffset); in BytecodePcChangedEvent()
89 for (auto it: listeners_) { in DebuggerStmtEvent() local
90 it->HandleDebuggerStmt(methodHandle, bcOffset); in DebuggerStmtEvent()
96 for (auto it: listeners_) { in NativeCallingEvent() local
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/types/
DunionType.cpp24 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 …]
DinterfaceType.cpp29 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 …]
DobjectDescriptor.cpp25 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/checker/types/ts/
DunionType.cpp24 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 …]
DinterfaceType.cpp33 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()
151 for (auto *it : bases_) { in Instantiate() local
153 it->Instantiate(allocator, relation, globalTypes)->AsObjectType()); in Instantiate()
162 for (auto *it : desc_->callSignatures) { in CollectSignatures() local
163 collectedSignatures->push_back(it); in CollectSignatures()
166 for (auto *it : desc_->constructSignatures) { in CollectSignatures() local
167 collectedSignatures->push_back(it); in CollectSignatures()
171 for (auto *it : bases_) { in CollectSignatures() local
[all …]
DobjectDescriptor.cpp25 for (auto *it : properties) { in FindProperty() local
26 if (it->Name() == name) { in FindProperty()
27 return it; in FindProperty()
38 for (auto *it : properties) { in Copy() local
39 auto *copiedProp = it->Copy(allocator, it->Declaration()); in Copy()
40 copiedProp->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy()
44 for (auto *it : callSignatures) { in Copy() local
45 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
48 for (auto *it : constructSignatures) { in Copy() local
49 copiedDesc->constructSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy()
/arkcompiler/ets_frontend/es2panda/typescript/core/
DtypeElaborationContext.cpp31 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/
DtypeElaborationContext.cpp34 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/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/
Dmaple_phase_manager.cpp46 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/runtime_core/libpandabase/tests/
Dbit_vector_test.cpp147 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/client/manager/
Dsource_manager.cpp91 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_frontend/ets2panda/ir/ets/
DetsUnionType.cpp26 for (auto *&it : types_) { in TransformChildren() local
27 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren()
28 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren()
29 it = static_cast<TypeNode *>(transformedNode); in TransformChildren()
36 for (auto *it : types_) { in Iterate() local
37 cb(it); in Iterate()
65 for (auto *it : types_) { in Check() local
66 it->Check(checker); in Check()
74 for (auto &it : constituentTypes) { in CheckConstituentTypesValid() local
75 if (it->IsTypeError()) { in CheckConstituentTypesValid()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dstring_hashmap.cpp24 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/dfx/vmstat/
Dopt_code_profiler.cpp28 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/runtime_core/static_core/runtime/include/
Dvtable_builder_variance-inl.h48 for (auto it = SameNameMethodInfoIterator(vtable_.Methods(), info); !it.IsEmpty(); it.Next()) { in ProcessClassMethod() local
49 auto &[itInfo, itEntry] = it.Value(); in ProcessClassMethod()
81 for (auto it = SameNameMethodInfoIterator(vtable_.Methods(), info); !it.IsEmpty(); it.Next()) { in ScanConflictingDefaultMethods() local
82 MethodInfo const *itinfo = it.Value().second.CandidateOr(it.Value().first); in ScanConflictingDefaultMethods()
91 for (auto it = SameNameMethodInfoIterator(vtable_.Methods(), info); !it.IsEmpty(); it.Next()) { in ScanConflictingDefaultMethods() local
92 MethodInfo const *itinfo = it.Value().second.CandidateOr(it.Value().first); in ScanConflictingDefaultMethods()
102 …for (auto it = SameNameMethodInfoIterator(vtable_.CopiedMethods(), info); !it.IsEmpty(); it.Next()… in ScanConflictingDefaultMethods() local
103 MethodInfo const *itinfo = it.Value().first; in ScanConflictingDefaultMethods()
128 // if the default method is added for the first time, just add it. in ProcessDefaultMethod()
/arkcompiler/ets_runtime/ecmascript/
Djs_for_in_iterator.cpp77 JSTaggedValue JSForInIterator::NextInternal(JSThread *thread, const JSHandle<JSForInIterator> &it) in NextInternal() argument
79 uint32_t length = it->GetLength(); in NextInternal()
80 uint32_t index = it->GetIndex(); in NextInternal()
84 JSTaggedValue taggedKeys = it->GetKeys(); in NextInternal()
85 JSTaggedValue receiver = it->GetObject(); in NextInternal()
88 if (IsEnumCacheValid(receiver, it->GetCachedHclass(), kind)) { in NextInternal()
91 it->SetIndex(index); in NextInternal()
98 it->SetIndex(index); in NextInternal()
102 return NextInternalSlowpath(thread, it); in NextInternal()
105 …dValue JSForInIterator::NextInternalSlowpath(JSThread *thread, const JSHandle<JSForInIterator> &it) in NextInternalSlowpath() argument
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dir_interface.h38 auto it = maps_->methods.find(offset); in GetMethodIdByOffset() local
39 ASSERT(it != maps_->methods.cend()); in GetMethodIdByOffset()
41 return std::string(it->second); in GetMethodIdByOffset()
46 auto it = maps_->strings.find(offset); in GetStringIdByOffset() local
47 ASSERT(it != maps_->strings.cend()); in GetStringIdByOffset()
49 return std::string(it->second); in GetStringIdByOffset()
54 auto it = maps_->literalarrays.find(offset); in GetLiteralArrayByOffset() local
55 ASSERT(it != maps_->strings.cend()); in GetLiteralArrayByOffset()
57 return std::string(it->second); in GetLiteralArrayByOffset()
67 auto it = prog_->literalarray_table.find(id); in GetLiteralArrayIdByOffset() local
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dbit_vector_test.cpp122 auto it = vector.begin(); in CheckIterator() local
123 ASSERT_EQ(*it, false); in CheckIterator()
124 ++it; in CheckIterator()
125 ASSERT_EQ(*it, true); in CheckIterator()
126 auto it1 = it++; in CheckIterator()
127 ASSERT_EQ(*it, false); in CheckIterator()
129 ASSERT_TRUE(it1 < it); in CheckIterator()
130 it += 3U; in CheckIterator()
131 ASSERT_EQ(*it, true); in CheckIterator()
132 it -= 5U; in CheckIterator()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/
DIntlFormattersCache.cpp31 CacheUMapIterator it; in NumFmtsCacheInvalidation() local
34 it = cache_.find(locTag); in NumFmtsCacheInvalidation()
35 if (it == cache_.end()) { in NumFmtsCacheInvalidation()
44 it = iter; in NumFmtsCacheInvalidation()
45 } else if (it->second.numFmt == nullptr) { in NumFmtsCacheInvalidation()
48 it->second.numFmt.reset(ptr); in NumFmtsCacheInvalidation()
51 ASSERT(it->second.numFmt != nullptr); in NumFmtsCacheInvalidation()
52 return *(it->second.numFmt); in NumFmtsCacheInvalidation()
58 CacheUMapIterator it; in NumRangeFmtsCacheInvalidation() local
61 it = cache_.find(locTag); in NumRangeFmtsCacheInvalidation()
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/module/
DexportNamedDeclaration.cpp27 for (auto *&it : decorators_) { in TransformChildren() local
28 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren()
29 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren()
30 it = transformedNode->AsDecorator(); in TransformChildren()
47 for (auto *&it : specifiers_) { in TransformChildren() local
48 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren()
49 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren()
50 it = transformedNode->AsExportSpecifier(); in TransformChildren()
58 for (auto *it : decorators_) { in Iterate() local
59 cb(it); in Iterate()
[all …]

12345678910>>...99