/arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
H A D | cpp_parser.py | 39 self.it = LineIterator(data) 50 while self.it.next_line(): 53 if self.it.is_skip_line(): 54 add_to_statistics("skip", self.it.current_line) 56 elif self.it.is_template(): 57 self.it.end, self.template = parse_template_prefix(self.it.data, self.it.start) 60 elif self.it.is_namespace(): 61 self.it [all...] |
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | frame_handler.cpp | 33 FrameIterator it(sp_, thread_); in AdvanceToJSFrame() 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() 50 if (IsBaselineBuiltinFrame(it.GetFrameType())) { in PrevJSFrame() 51 FindAndSetBaselineNativePc(it); in PrevJSFrame() 53 it in PrevJSFrame() 111 FindAndSetBaselineNativePc(FrameIterator it) FindAndSetBaselineNativePc() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | typeElaborationContext.cpp | 34 for (auto it = potentialTypes_.begin(); it != potentialTypes_.end();) { in GetBestMatchingType() 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() 60 if (it in Start() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
H A D | unionType.cpp | 24 for (auto it = constituentTypes_.begin(); it != constituentTypes_.end(); it++) { in ToString() 25 (*it)->ToString(ss, precise); in ToString() 26 if (std::next(it) != constituentTypes_.end()) { in ToString() 59 for (auto *it : constituentTypes_) { 60 if (!relation->IsAssignableTo(it, target)) { 71 for (auto *it : constituentTypes_) { 72 if (relation->IsAssignableTo(source, it)) { 82 for (auto *it [all...] |
H A D | interfaceType.cpp | 33 for (auto it = typeParamTypes_.begin(); it != typeParamTypes_.end(); it++) { in ToString() 34 (*it)->ToString(ss); in ToString() 36 if (std::next(it) != typeParamTypes_.end()) { in ToString() 151 for (auto *it : bases_) { in Instantiate() 153 it->Instantiate(allocator, relation, globalTypes)->AsObjectType()); in Instantiate() 162 for (auto *it : desc_->callSignatures) { in CollectSignatures() 163 collectedSignatures->push_back(it); in CollectSignatures() 166 for (auto *it in CollectSignatures() [all...] |
H A D | objectDescriptor.cpp | 25 for (auto *it : properties) { in FindProperty() 26 if (it->Name() == name) { in FindProperty() 27 return it; in FindProperty() 38 for (auto *it : properties) { in Copy() 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() 45 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy() 48 for (auto *it in Copy() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | unionType.cpp | 25 for (auto it = constituentTypes_.begin(); it != constituentTypes_.end(); it++) { in ToString() 26 (*it)->ToString(ss); in ToString() 27 if (std::next(it) != constituentTypes_.end()) { in ToString() 60 for (auto *it : constituentTypes_) { 61 if (!relation->IsAssignableTo(it, target)) { 72 for (auto *it : constituentTypes_) { 73 if (relation->IsAssignableTo(source, it)) { 83 for (auto *it [all...] |
H A D | interfaceType.cpp | 34 for (auto it = typeParamTypes_.begin(); it != typeParamTypes_.end(); it++) { in ToString() 35 (*it)->ToString(ss); in ToString() 37 if (std::next(it) != typeParamTypes_.end()) { in ToString() 150 for (auto *it : bases_) { in Instantiate() 152 it->Instantiate(allocator, relation, globalTypes)->AsObjectType()); in Instantiate() 161 for (auto *it : desc_->callSignatures) { in CollectSignatures() 162 collectedSignatures->push_back(it); in CollectSignatures() 165 for (auto *it in CollectSignatures() [all...] |
H A D | objectDescriptor.cpp | 26 for (auto *it : properties) { in FindProperty() 27 if (it->Name() == name) { in FindProperty() 28 return it; in FindProperty() 40 for (auto *it : properties) { in Copy() 41 auto *copiedProp = it->Copy(allocator, it->Declaration()); in Copy() 42 copiedProp->SetTsType(it->TsType()->Instantiate(allocator, relation, globalTypes)); in Copy() 46 for (auto *it : callSignatures) { in Copy() 47 copiedDesc->callSignatures.push_back(it->Copy(allocator, relation, globalTypes)); in Copy() 50 for (auto *it in Copy() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | dead_code_elimination.cpp | 102 for (auto it = uses.begin(); it != uses.end(); it++) { in EliminateBranch() 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() 117 if (acc_.IsSelector(*it)) { in DecreaseAllSelectors() 118 acc_.DecreaseIn(*it, coun in DecreaseAllSelectors() [all...] |
/arkcompiler/ets_runtime/ecmascript/debugger/ |
H A D | notification_manager.h | 62 for (auto it = listeners_.begin(); it != listeners_.end(); ++it) { in RemoveListener() 63 if (*it == listener) { in RemoveListener() 64 listeners_.erase(it); in RemoveListener() 72 for (auto it: listeners_) { in LoadModuleEvent() 73 it->LoadModule(name, entryPoint); in LoadModuleEvent() 81 for (auto it: listeners_) { in BytecodePcChangedEvent() 82 it->BytecodePcChanged(thread, methodHandle, bcOffset); in BytecodePcChangedEvent() 89 for (auto it in DebuggerStmtEvent() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | typeElaborationContext.cpp | 34 for (auto it = potentialTypes_.begin(); it != potentialTypes_.end();) { in GetBestMatchingType() 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() 60 if (it in Start() [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/ |
H A D | opt_code_profiler.cpp | 29 for (auto it = profMap_.begin(); it != profMap_.end(); it++) { in PrintAndReset() 30 profVec.emplace_back(std::make_pair(it->first, it->second)); in PrintAndReset() 31 it->second.ResetStat(); in PrintAndReset() 55 for (auto it = profVec.begin(); it != profVec.end(); it++) { in PrintAndReset() 56 Value val = it in PrintAndReset() 177 auto it = profMap_.find(opcode); FilterMethodToPrint() local [all...] |
/arkcompiler/toolchain/tooling/client/manager/ |
H A D | source_manager.cpp | 92 for (auto it = fileSource_.begin(); it != fileSource_.end(); it++) { in GetFileName() 93 std::cout << "scriptID : " << it->first; in GetFileName() 94 std::cout << " fileName : " << it->second.first <<std::endl; in GetFileName() 108 auto it = fileSource_.find(scriptId); in SetFileSource() local 109 if (it != fileSource_.end() && it->second.second.empty()) { in SetFileSource() 114 it->second.second.push_back(line); in SetFileSource() 118 it in SetFileSource() 126 auto it = fileSource_.find(scriptId); GetFileSource() local 169 auto it = fileSource_.find(scriptId_); GetDebugSources() local 185 auto it = fileSource_.find(scriptId_); ListSourceCodeWithParameters() local 210 auto it = fileSource_.find(scriptId_); ListSourceCodeWithParameters() local 237 auto it = fileSource_.find(scriptId_); ListSource() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
H A D | inspector.cpp | 48 // acquire lock to later release it either in `OnOpen` or `OnFail` callbacks in Inspector() 111 auto it = threads_.find(thread); in ConsoleCall() local 112 ASSERT(it != threads_.end()); in ConsoleCall() 114 inspectorServer_.CallRuntimeConsoleApiCalled(thread, type, timestamp, it->second.OnConsoleCall(arguments)); in ConsoleCall() 123 auto it = threads_.find(thread); in Exception() local 124 ASSERT(it != threads_.end()); in Exception() 125 it->second.OnException(catchLocation.GetBytecodeOffset() == panda_file::INVALID_OFFSET); in Exception() 132 auto it = threads_.find(thread); in FramePop() local 133 ASSERT(it != threads_.end()); in FramePop() 134 it in FramePop() 141 auto it = threads_.find(thread); MethodEntry() local 167 auto it = threads_.find(thread); SingleStep() local 235 auto it = threads_.find(thread); RunIfWaitingForDebugger() local 248 auto it = threads_.find(thread); Pause() local 261 auto it = threads_.find(thread); Continue() local 274 auto it = threads_.find(thread); SetBreakpointsActive() local 315 auto it = threads_.find(thread); RemoveBreakpoint() local 328 auto it = threads_.find(thread); SetPauseOnExceptions() local 341 auto it = threads_.find(thread); StepInto() local 365 auto it = threads_.find(thread); StepOver() local 389 auto it = threads_.find(thread); StepOut() local 408 auto it = threads_.find(thread); ContinueToLocation() local 426 auto it = threads_.find(thread); RestartFrame() local 451 auto it = threads_.find(thread); GetProperties() local 516 auto it = threads_.find(thread); Evaluate() local [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/module/ |
H A D | exportNamedDeclaration.cpp | 27 for (auto *&it : decorators_) { in TransformChildren() 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() 48 if (auto *transformedNode = cb(it); it != transformedNode) { in TransformChildren() 49 it->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 50 it in TransformChildren() [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ets/ |
H A D | etsUnionType.cpp | 26 for (auto *&it : types_) { in TransformChildren() 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() 37 cb(it); in Iterate() 65 for (auto *it : types_) { in Check() 66 it->Check(checker); in Check() 74 for (auto &it in CheckConstituentTypesValid() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cfi_generator.cpp | 64 auto it = regsToSave.begin(); in GenerateRegisterSaveDirective() local 66 if (*it == RFP) { in GenerateRegisterSaveDirective() 67 ++it; in GenerateRegisterSaveDirective() 69 CHECK_FATAL(*it == RLR, "The second callee saved reg is expected to be RLR"); in GenerateRegisterSaveDirective() 70 ++it; in GenerateRegisterSaveDirective() 72 for (; it != regsToSave.end(); ++it) { in GenerateRegisterSaveDirective() 73 AArch64reg reg = *it; in GenerateRegisterSaveDirective() 90 auto it = regsToSave.begin(); in GenerateRegisterRestoreDirective() local 92 if (*it in GenerateRegisterRestoreDirective() [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_for_in_iterator.cpp | 77 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 JSTaggedValue JSForInIterator::NextInternalSlowpath(JSThread *thread, const JSHandle<JSForInIterator> &it) in NextInternalSlowpath() argument [all...] |
/arkcompiler/runtime_core/bytecode_optimizer/ |
H A D | ir_interface.h | 38 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 in GetLiteralArrayIdByOffset() local 74 auto it = maps_->classes.find(offset); GetTypeIdByOffset() local 82 auto it = maps_->fields.find(offset); GetFieldIdByOffset() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | vtable_builder_variance-inl.h | 48 for (auto it = SameNameMethodInfoIterator(vtable_.Methods(), info); !it.IsEmpty(); it.Next()) { in ProcessClassMethod() 49 auto &[itInfo, itEntry] = it.Value(); in ProcessClassMethod() 81 for (auto it = SameNameMethodInfoIterator(vtable_.Methods(), info); !it.IsEmpty(); it.Next()) { in ScanConflictingDefaultMethods() 82 MethodInfo const *itinfo = it.Value().second.CandidateOr(it.Value().first); in ScanConflictingDefaultMethods() 91 for (auto it in ScanConflictingDefaultMethods() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/ |
H A D | maple_phase_manager.cpp | 47 auto it = analysisPhaseMemPool.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() local 49 if (it != analysisPhaseMemPool.end() && itanother != availableAnalysisPhases.end()) { in EraseAnalysisPhase() 52 delete it->second; in EraseAnalysisPhase() 53 it->second = nullptr; in EraseAnalysisPhase() 63 for (auto it = availableAnalysisPhases.begin(); it != availableAnalysisPhases.end();) { in EraseAllAnalysisPhase() 64 EraseAnalysisPhase(it); in EraseAllAnalysisPhase() 72 auto it = analysisPhaseMemPool.find(anaPhaseMapIt->first); in EraseAnalysisPhase() local 73 if (it != analysisPhaseMemPool.end()) { in EraseAnalysisPhase() 75 delete it in EraseAnalysisPhase() 113 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, exceptPhaseID)); ClearInVaildAnalysisPhase() local 124 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); GetVaildAnalysisPhase() local 138 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); IsAnalysisPhaseAvailable() local [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A 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 in GetStringAndIdPair() local 66 auto it = indexMap_.find(key); InsertStrAndGetStringId() local [all...] |
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | bit_vector_test.cpp | 147 for (auto it = vector.end() - 1;; --it) { in TestIteration1() 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, fals in TestIteration2() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | bit_vector_test.cpp | 122 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 in CheckIterator() [all...] |