Home
last modified time | relevance | path

Searched refs:idx (Results 76 - 100 of 478) sorted by relevance

12345678910>>...20

/arkcompiler/runtime_core/static_core/runtime/mem/
H A Drem_set.h110 void Set(size_t idx) in Set() argument
112 size_t elemIdx = idx / ELEM_BITS; in Set()
114 size_t bitOffset = idx - elemIdx * ELEM_BITS; in Set()
118 bool Check(size_t idx) const
120 size_t elemIdx = idx / ELEM_BITS;
122 size_t bitOffset = idx - elemIdx * ELEM_BITS;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
H A Dx64_reg_info.h71 regno_t GetIntRetReg(uint32 idx) override
73 CHECK_FATAL(idx <= GetIntRetRegsNum(), "index out of range in IntRetReg");
74 return static_cast<regno_t>(X64CallConvImpl::GetCallConvInfo(callConv).GetIntReturnRegs()[idx]);
76 regno_t GetFpRetReg(uint32 idx) override
78 CHECK_FATAL(idx <= GetFpRetRegsNum(), "index out of range in IntRetReg");
79 return static_cast<regno_t>(X64CallConvImpl::GetCallConvInfo(callConv).GetFloatReturnRegs()[idx]);
/base/update/updater/utils/json/
H A Djson_node.h55 const JsonNode &operator[](int idx) const;
57 JsonNode &operator[](int idx);
123 inline JsonNode &GetNodeByIdx(T &innerObj, int size, int idx) in GetNodeByIdx() argument
130 if (idx < 0 || idx >= size) { in GetNodeByIdx()
133 return *nodeVec[idx]; in GetNodeByIdx()
/arkcompiler/runtime_core/static_core/compiler/tools/paoc/
H A Dpaoc_clusters.h74 for (size_t idx = 0; idx < nClusters; idx++) { in InitClusters()
75 const auto clusterJson = clustersJson->GetValue<JsonObjPointer>(idx)->get(); in InitClusters()
77 LOG_PAOC_CLUSTERS(FATAL) << "Can't find a cluster (idx = " << idx << ")"; in InitClusters()
79 clusters_.emplace_back(clustersJson->GetKeyByIndex(idx)); in InitClusters()
89 << clustersJson->GetKeyByIndex(idx) << "`, option `" << optionName << "`)"; in InitClusters()
119 for (const auto &idx : *curClustersJson) { in InitClustersMap()
121 const auto *numIdx = idx in InitClustersMap()
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dfile.h317 EntityId ResolveClassIndex(EntityId id, Index idx) const in ResolveClassIndex()
320 if (UNLIKELY(idx >= index.Size())) { in ResolveClassIndex()
323 return index[idx]; in ResolveClassIndex()
326 EntityId ResolveMethodIndex(EntityId id, Index idx) const in ResolveMethodIndex()
329 if (UNLIKELY(idx >= index.Size())) { in ResolveMethodIndex()
332 return index[idx]; in ResolveMethodIndex()
335 EntityId ResolveOffsetByIndex(EntityId id, Index idx) const in ResolveOffsetByIndex()
338 if (UNLIKELY(idx >= index.Size())) { in ResolveOffsetByIndex()
341 return index[idx]; in ResolveOffsetByIndex()
344 EntityId ResolveFieldIndex(EntityId id, Index idx) cons
[all...]
H A Dproto_data_accessor-inl.h132 inline Type ProtoDataAccessor::GetType(size_t idx) const in GetType()
134 size_t block_idx = idx / SHORTY_ELEM_PER16; in GetType()
135 size_t elem_shift = (idx % SHORTY_ELEM_PER16) * SHORTY_ELEM_WIDTH; in GetType()
150 inline Type ProtoDataAccessor::GetArgType(size_t idx) const in GetArgType()
152 return GetType(idx + 1); in GetArgType()
H A Dbytecode_instruction.h242 template <Format format, size_t idx = 0>
245 template <Format format, size_t idx = 0>
248 template <Format format, size_t idx = 0, bool is_signed = true>
251 BytecodeId GetId(size_t idx = 0) const;
253 void UpdateId(BytecodeId new_id, uint32_t idx = 0);
255 uint16_t GetVReg(size_t idx = 0) const;
258 auto GetImm64(size_t idx = 0) const;
261 auto GetImmData(size_t idx = 0) const;
379 bool IsIdMatchFlag(size_t idx, Flags flag) const; // idx
[all...]
/arkcompiler/ets_runtime/test/moduletest/arrayforeach/
H A Darrayforeach.js56 function callbackfn1(val, idx, obj)
67 function callbackfn2(val, idx, obj)
81 function callbackfn3(val, idx, obj)
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dlater_elimination.h41 size_t idx = acc_.GetId(dependIn); in GetDependChain() local
42 ASSERT(idx <= circuit_->GetMaxGateId()); in GetDependChain()
43 return dependChains_[idx]; in GetDependChain()
H A Dgraph_linearizer.cpp226 for (size_t idx = 0; idx < dfsList_.size(); idx++) { in BuildDfsFather()
227 bbDfsTimestampToIdx_[dfsList_[idx]] = idx; in BuildDfsFather()
232 size_t UnionFind(size_t idx) in UnionFind() argument
235 allIdxs.emplace(idx); in UnionFind()
236 size_t pIdx = parentIdx_[idx]; in UnionFind()
272 for (size_t idx = dfsList_.size() - 1; idx > in BuildDomTree()
[all...]
H A Dverifier.cpp65 for (size_t idx = 0; idx < circuit->LoadGatePtrConst(gate)->GetNumIns(); idx++) { in RunDataIntegrityCheck()
66 const In *curIn = circuit->LoadGatePtrConst(gate)->GetInConst(idx); in RunDataIntegrityCheck()
302 size_t idx; in RunFlowCyclesFind() member
317 auto &idx = curState.idx; in RunFlowCyclesFind() local
318 if (idx == numIns) { in RunFlowCyclesFind()
323 const auto prev = gateAcc.GetIn(cur, idx); in RunFlowCyclesFind()
343 idx in RunFlowCyclesFind()
523 size_t idx; Run() member
538 auto &idx = curState.idx; Run() local
[all...]
/base/update/packaging_tools/
H A Dimage_class.py59 for idx, each_name in enumerate(self.full_img_list):
61 self.full_image_path_list[idx])
62 img_name = self.full_img_name_list[idx][:-4]
153 for idx, value in enumerate(care_value_list):
154 if idx != 0 and (idx + 1) % 2 == 0:
155 be_value = int(care_value_list[idx - 1])
156 af_value = int(care_value_list[idx])
227 idx = bisect.bisect_right(self.offset_index, each_value) - 1
229 self.offset_value_list[idx]
[all...]
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_source_text.cpp68 for (size_t idx = 0; idx < starExportEntriesLen; idx++) { in GetExportedNames()
69 ee.Update(starExportEntries->Get(idx)); in GetExportedNames()
284 for (size_t idx = 0; idx < starExportEntriesLen; idx++) { in ResolveExport()
285 ee.Update(starExportEntries->Get(idx)); in ResolveExport()
652 for (size_t idx = 0; idx < requestedModulesLe in InnerModuleInstantiation()
874 size_t idx = 0; GetModuleNamespace() local
1194 int idx = SourceTextModule::InnerModuleEvaluationUnsafe( InnerModuleEvaluation() local
1314 AddImportEntry(JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<ImportEntry> &importEntry, size_t idx, uint32_t len) AddImportEntry() argument
1335 AddLocalExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<LocalExportEntry> &exportEntry, size_t idx, uint32_t len) AddLocalExportEntry() argument
1350 AddIndirectExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<IndirectExportEntry> &exportEntry, size_t idx, uint32_t len) AddIndirectExportEntry() argument
1366 AddStarExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<StarExportEntry> &exportEntry, size_t idx, uint32_t len) AddStarExportEntry() argument
1625 int idx = JSHClass::FindPropertyEntry(thread, *hclass, exportName.GetTaggedValue()); ResolveElementOfObject() local
[all...]
H A Dmodule_data_extractor.cpp73 for (size_t idx = 0; idx < len; idx++) { in ExtractModuleDatas()
74 StringData sd = jsPandaFile->GetStringData(panda_file::File::EntityId(requestModules[idx])); in ExtractModuleDatas()
76 requestModuleArray->Set(thread, idx, value); in ExtractModuleDatas()
181 for (size_t idx = 0; idx < numLazyImportFlags; idx++) { in ModuleLazyImportFlagAccessor()
183 lazyImportArray[idx] = value > 0 ? 1 : 0; in ModuleLazyImportFlagAccessor()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_method.h71 EtsType GetArgType(size_t idx) const in GetArgType()
73 EtsType etsType = ConvertPandaTypeToEtsType(GetPandaMethod()->GetArgType(idx)); in GetArgType()
86 EtsType GetEffectiveArgType(size_t idx) const in GetEffectiveArgType()
88 EtsType etsType = ConvertPandaTypeToEtsType(GetPandaMethod()->GetEffectiveArgType(idx)); in GetEffectiveArgType()
101 const char *GetRefArgType(size_t idx) const in GetRefArgType()
103 return utf::Mutf8AsCString(GetPandaMethod()->GetRefArgType(idx).data); in GetRefArgType()
139 PANDA_PUBLIC_API EtsClass *ResolveArgType(uint32_t idx);
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DregAllocator.cpp160 int idx = 0; in AdjustInsSpill() local
163 idx++; in AdjustInsSpill()
169 if (regsKind[idx] == OperandKind::SRC_VREG || regsKind[idx] == OperandKind::SRC_DST_VREG) { in AdjustInsSpill()
172 if (regsKind[idx] == OperandKind::DST_VREG || regsKind[idx] == OperandKind::SRC_DST_VREG) { in AdjustInsSpill()
176 idx++; in AdjustInsSpill()
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_array.cpp25 JSTaggedValue TaggedArray::Get([[maybe_unused]] const JSThread *thread, uint32_t idx) const in Get()
27 return Get(idx); in Get()
42 JSTaggedValue TaggedArray::GetBit(uint32_t idx, uint32_t bitOffset) const in GetBit() argument
44 ASSERT(idx < GetLength()); in GetBit()
45 JSTaggedType element = Get(idx).GetRawData(); in GetBit()
50 void TaggedArray::SetBit(const JSThread *thread, uint32_t idx, uint32_t bitOffset, const JSTaggedValue &value) in SetBit() argument
52 ASSERT(idx < GetLength()); in SetBit()
53 JSTaggedType element = Get(idx).GetRawData(); in SetBit()
59 Set<false>(thread, idx, JSTaggedValue(element)); in SetBit()
H A Dtagged_array.h36 JSTaggedValue Get(uint32_t idx) const;
38 JSTaggedValue Get([[maybe_unused]] const JSThread *thread, uint32_t idx) const;
41 JSTaggedValue GetBit(uint32_t idx, uint32_t bitOffset) const;
44 inline void Set(const JSThread *thread, uint32_t idx, const T &value);
46 void SetBit(const JSThread* thread, uint32_t idx, uint32_t bitOffset, const JSTaggedValue &value);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Demit.cpp82 char *idx = strdup(std::to_string(pIdx).c_str()); in EmitLabelRef() local
83 CHECK_FATAL(idx != nullptr, "strdup failed"); in EmitLabelRef()
84 outStream << ".L." << idx << "__" << labIdx; in EmitLabelRef()
85 free(idx); in EmitLabelRef()
86 idx = nullptr; in EmitLabelRef()
102 char *idx = strdup(std::to_string(func->GetPuidx()).c_str()); in EmitLabelForFunc() local
103 CHECK_FATAL(idx != nullptr, "strdup failed"); in EmitLabelForFunc()
104 outStream << ".L." << idx << "__" << labIdx; in EmitLabelForFunc()
105 free(idx); in EmitLabelForFunc()
106 idx in EmitLabelForFunc()
759 EmitAddrofFuncConst(const MIRSymbol &mirSymbol, MIRConst &elemConst, size_t idx) EmitAsmLabel() argument
893 EmitAddrofSymbolConst(const MIRSymbol &mirSymbol, MIRConst &elemConst, size_t idx) EmitAsmLabel() argument
1210 uint64 idx = static_cast<uint64>(intConst.GetExtValue()); EmitAsmLabel() local
1245 EmitIntConst(const MIRSymbol &mirSymbol, MIRAggConst &aggConst, uint32 itabConflictIndex, const std::map<GStrIdx, MIRType *> &strIdx2Type, size_t idx) EmitAsmLabel() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_nodes.h73 void SetPregIdx(PregIdx idx) in SetPregIdx()
75 pregIdx = idx; in SetPregIdx()
313 RetypeNode(PrimType typ, PrimType fromtyp, TyIdx idx, BaseNode *expr) in RetypeNode() argument
314 : TypeCvtNode(OP_retype, typ, fromtyp, expr), tyIdx(idx) in RetypeNode()
478 CHECK_FATAL(i < kOperandNumBinary, "Invalid operand idx in BinaryOpnds"); in GetBOpnd()
484 CHECK_FATAL(i < kOperandNumBinary, "Invalid operand idx in BinaryOpnds");
535 DEBUG_ASSERT(i < kOperandNumBinary, "invalid operand idx in BinaryNode");
536 DEBUG_ASSERT(i >= 0, "invalid operand idx in BinaryNode");
852 void SetTyIdx(TyIdx idx) in SetTyIdx() argument
854 tyIdx = idx; in SetTyIdx()
932 SetStIdx(StIdx idx) SetStIdx() argument
937 SetStFullIdx(uint32 idx) SetStFullIdx() argument
1204 SetTyIdx(TyIdx idx) SetTyIdx() argument
1391 SetDefaultLabel(LabelIdx idx) SetDefaultLabel() argument
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Djson_parser.h147 const auto &GetKeyByIndex(size_t idx) const in GetKeyByIndex()
149 ASSERT(idx < GetSize()); in GetKeyByIndex()
150 return keys_[idx]; in GetKeyByIndex()
165 const T *GetValue(size_t idx) const
167 auto iter = values_map_.find(GetKeyByIndex(idx));
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dproto_data_accessor-inl.h139 inline Type ProtoDataAccessor::GetType(size_t idx) const in GetType()
141 size_t blockIdx = idx / SHORTY_ELEM_PER16; in GetType()
142 size_t elemShift = (idx % SHORTY_ELEM_PER16) * SHORTY_ELEM_WIDTH; in GetType()
157 inline Type ProtoDataAccessor::GetArgType(size_t idx) const in GetArgType()
159 return GetType(idx + 1); in GetArgType()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Djson_parser.h149 const auto &GetKeyByIndex(size_t idx) const in GetKeyByIndex()
151 ASSERT(idx < GetSize()); in GetKeyByIndex()
152 return keys_[idx]; in GetKeyByIndex()
167 const T *GetValue(size_t idx) const
169 auto iter = valuesMap_.find(GetKeyByIndex(idx));
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSGen.h977 #define COMPILE_ARG(idx) \
978 ASSERT((idx) < arguments.size()); \
979 ASSERT((idx) < signature->Params().size() || signature->RestVar() != nullptr); \
980 auto *param##idx = (idx) < signature->Params().size() ? signature->Params()[(idx)] : signature->RestVar(); \
981 auto *paramType##idx = param##idx->TsType(); \
982 auto ttctx##idx = TargetTypeContext(this, paramType##idx); \
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Darray-inl.h161 inline void Array::Set(ArraySizeT idx, T elem) in Set() argument
168 size_t offset = elemSize * idx; in Set()
182 inline T Array::Get(ArraySizeT idx) const in Get()
188 size_t offset = GetElementSize<T, IS_DYN>() * idx; in Get()
213 inline void Array::Set([[maybe_unused]] const ManagedThread *thread, ArraySizeT idx, T elem) in Set() argument
220 size_t offset = elemSize * idx; in Set()
232 inline T Array::Get([[maybe_unused]] const ManagedThread *thread, ArraySizeT idx) const in Get()
239 size_t offset = elemSize * idx; in Get()
270 for (int32_t idx = 0; idx < arrSiz in CreateMultiDimensionalArray()
[all...]

Completed in 21 milliseconds

12345678910>>...20