/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | gate.cpp | 24 for (size_t idx = 0; idx < numIns; idx++) { in CheckNullInput() 25 if (IsInGateNull(idx)) { in CheckNullInput() 26 CheckFailed("In list contains null", idx); in CheckNullInput() 38 void Gate::CheckInputOpcode(size_t idx, OpCode expected) const in CheckInputOpcode() argument 40 OpCode actual = GetInGateConst(idx)->GetOpCode(); in CheckInputOpcode() 43 " actual:" + GateMetaData::Str(actual) + ")", idx); in CheckInputOpcode() 47 void Gate::CheckInputMachineType(size_t idx, MachineType expected, bool isArch64) const in CheckInputMachineType() argument 49 MachineType actual = GetInGateConst(idx) in CheckInputMachineType() 65 CheckNotInputMachineType(size_t idx, MachineType notExpected) const CheckNotInputMachineType() argument 252 size_t idx = 0; GetValueInAndOut() local 476 SetIndex(OutIdx idx) SetIndex() argument 575 NewIn(size_t idx, Gate *in) NewIn() argument 589 ModifyIn(size_t idx, Gate *in) ModifyIn() argument 595 DeleteIn(size_t idx) DeleteIn() argument 619 GetOut(size_t idx) GetOut() argument 660 GetIn(size_t idx) GetIn() argument 664 LOG_COMPILER(INFO) << std::dec << "Gate In access out-of-bound! (idx=" << idx << ")"; GetIn() local 677 LOG_COMPILER(INFO) << std::dec << "Gate In access out-of-bound! (idx=" << idx << ")"; GetInConst() local 686 GetInGate(size_t idx) GetInGate() argument 820 size_t idx = 0; DumpInputs() local 906 size_t idx = 0; ShortPrint() local 948 PrintInGate(size_t numIns, size_t idx, size_t size, bool inListPreview, size_t highlightIdx, std::ostringstream &log, bool isEnd) const PrintInGate() argument [all...] |
H A D | scheduler.cpp | 23 size_t UnionFind(std::vector<size_t> &semiDom, std::vector<size_t> &parent, std::vector<size_t> &minIdx, size_t idx) in UnionFind() argument 26 allIdxs.emplace(idx); in UnionFind() 27 size_t pIdx = parent[idx]; in UnionFind() 76 for (size_t idx = 0; idx < bbGatesList.size(); idx++) { in CalculateDominatorTree() 77 bbGatesAddrToIdx[bbGatesList[idx]] = idx; in CalculateDominatorTree() 95 for (size_t idx = bbGatesList.size() - 1; idx > in CalculateDominatorTree() 158 size_t idx; Run() member 173 auto &idx = curState.idx; Run() local 247 size_t idx = 0; CalculateSchedulingUpperBound() member 288 auto &idx = curState.idx; CalculateSchedulingUpperBound() local 372 size_t idx = 0; CalculateSchedulingLowerBound() member 384 auto &idx = curState.idx; CalculateSchedulingLowerBound() local 407 size_t idx = 0; CalculateSchedulingLowerBound() member 421 auto &idx = curState.idx; CalculateSchedulingLowerBound() local [all...] |
H A D | gate.h | 65 void SetIndex(OutIdx idx); 109 // | idx=1 | idx=0 | | g0 | g1 | 119 // | | | idx=0 | | g2 | 130 // | idx=2 | idx=1 | idx=0 | | g2 | g0 | g1 | 150 void NewIn(size_t idx, Gate *in); 151 void ModifyIn(size_t idx, Gate *in); 152 void DeleteIn(size_t idx); [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/ |
H A D | becommon.h | 91 uint64 GetTypeSize(uint32 idx) const in GetTypeSize() 93 return typeSizeTable.at(idx); in GetTypeSize() 103 void SetTypeSize(uint32 idx, uint64 value) in SetTypeSize() argument 105 typeSizeTable.at(idx) = value; in SetTypeSize() 122 uint8 GetTypeAlign(uint32 idx) const in GetTypeAlign() 124 return typeAlignTable.at(idx); in GetTypeAlign() 134 void SetTypeAlign(uint32 idx, uint8 value) in SetTypeAlign() argument 136 typeAlignTable.at(idx) = value; in SetTypeAlign() 143 bool GetHasFlexibleArray(uint32 idx) const in GetHasFlexibleArray() 145 return typeHasFlexibleArray.at(idx); in GetHasFlexibleArray() 147 SetHasFlexibleArray(uint32 idx, bool value) SetHasFlexibleArray() argument 160 SetStructFieldCount(uint32 idx, FieldID value) SetStructFieldCount() argument 164 AppendStructFieldCount(uint32 idx, FieldID value) AppendStructFieldCount() argument [all...] |
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | shifted_vector.h | 30 typename Base::reference operator[](int idx) in operator []() argument 33 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); in operator []() 35 typename Base::const_reference &operator[](int idx) const in operator []() 38 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); in operator []() 40 typename Base::reference At(int idx) in At() argument 43 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() 45 typename Base::const_reference &At(int idx) const in At() 48 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() 50 bool InValidRange(int idx) const in InValidRange() 53 return idx in InValidRange() 63 ExtendToInclude(int idx) ExtendToInclude() argument [all...] |
H A D | bit_vector.h | 108 static Word MaskForIndex(size_t idx) in MaskForIndex() argument 110 return static_cast<Word>(1) << idx; in MaskForIndex() 113 static Word MaskUpToIndex(size_t idx) in MaskUpToIndex() argument 115 return idx >= BITS_IN_WORD ? MAX_WORD : ((static_cast<Word>(1) << idx) - 1); in MaskUpToIndex() 260 bool operator[](size_t idx) const 262 ASSERT(idx < Size()); 263 return (data_[idx >> POS_SHIFT] & MaskForIndex(idx % BITS_IN_WORD)) != 0; 265 Bit operator[](size_t idx) [all...] |
H A D | obj_pool.h | 161 std::size_t idx; in New() local 163 idx = free_.back(); in New() 166 idx = storage_.size(); in New() 170 initializer_(storage_[idx], idx); in New() 171 return Accessor {idx, this}; in New() 199 thread_local size_t idx = 0; in AllObjects() local 201 while (idx < storage_.size() && accessors_[idx] == nullptr) { in AllObjects() 202 ++idx; in AllObjects() [all...] |
/arkcompiler/runtime_core/static_core/verification/absint/ |
H A D | reg_context.h | 73 void ChangeValuesOfSameOrigin(int idx, const AbstractTypedValue &atv) in ChangeValuesOfSameOrigin() argument 75 if (!regs_.InValidRange(idx)) { in ChangeValuesOfSameOrigin() 76 regs_[idx] = atv; in ChangeValuesOfSameOrigin() 79 auto oldAtv = regs_[idx]; in ChangeValuesOfSameOrigin() 81 regs_[idx] = atv; in ChangeValuesOfSameOrigin() 86 regs_[idx] = atv; in ChangeValuesOfSameOrigin() 100 AbstractTypedValue &operator[](int idx) in operator []() argument 102 if (!regs_.InValidRange(idx)) { in operator []() 103 regs_.ExtendToInclude(idx); in operator []() 105 return regs_[idx]; in operator []() [all...] |
/arkcompiler/runtime_core/libpandafile/ |
H A D | module_data_accessor-inl.h | 30 for (size_t idx = 0; idx < regular_import_num; idx++) { in EnumerateModuleRecord() 38 for (size_t idx = 0; idx < namespace_import_num; idx++) { in EnumerateModuleRecord() 45 for (size_t idx = 0; idx < local_export_num; idx++) { in EnumerateModuleRecord() 52 for (size_t idx in EnumerateModuleRecord() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | js_refconvert_array.h | 39 static ElemCpptype GetElem(coretypes::Array *arr, size_t idx) in GetElem() argument 42 auto elem = EtsObject::FromCoreType(arr->Get<ObjectHeader *>(idx)); in GetElem() 45 return arr->Get<ElemCpptype>(idx); in GetElem() 49 static void SetElem(coretypes::Array *arr, size_t idx, ElemCpptype value) in SetElem() argument 52 arr->Set(idx, AsEtsObject(value)->GetCoreType()); in SetElem() 54 arr->Set(idx, value); in SetElem() 70 for (size_t idx = 0; idx < len; ++idx) { in WrapImpl() 71 ElemCpptype etsElem = GetElem(etsArr, idx); in WrapImpl() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | func_desc.h | 67 for (size_t idx = 0; idx < kMaxParamCount; ++idx) { in InitToBest() 68 paramInfo[idx] = PI::kUnused; in InitToBest() 80 for (size_t idx = 0; idx < kMaxParamCount; ++idx) { in Equals() 81 if (paramInfo[idx] != desc.paramInfo[idx]) { in Equals() 200 void SetParamInfo(const size_t idx, cons [all...] |
H A D | mir_symbol.h | 60 MIRSymbol(uint32 idx, uint8 scp) : stIdx(scp, idx) {} in MIRSymbol() argument 509 void SetAsmAttr(const UStrIdx &idx) in SetAsmAttr() argument 511 asmAttr = idx; in SetAsmAttr() 519 void SetWeakrefAttr(const std::pair<bool, UStrIdx> &idx) in SetWeakrefAttr() argument 521 weakrefAttr = idx; in SetWeakrefAttr() 608 bool IsValidIdx(uint32 idx) const in IsValidIdx() 610 return idx < symbolTable.size(); in IsValidIdx() 613 MIRSymbol *GetSymbolFromStIdx(uint32 idx, bool checkFirst = false) const in GetSymbolFromStIdx() argument 615 if (checkFirst && idx > in GetSymbolFromStIdx() 661 GetSymbolFromStrIdx(GStrIdx idx, bool checkFirst = false) GetSymbolFromStrIdx() argument [all...] |
/arkcompiler/runtime_core/assembler/ |
H A D | assembly-ins.cpp | 86 std::string panda::pandasm::Ins::RegToString(size_t idx, bool is_first, bool print_args, in RegToString() argument 89 if (idx >= regs.size()) { in RegToString() 101 if (print_args && regs[idx] >= first_arg_idx) { in RegToString() 102 translator << "a" << regs[idx] - first_arg_idx; in RegToString() 104 translator << "v" << regs[idx]; in RegToString() 110 std::string panda::pandasm::Ins::ImmToString(size_t idx, bool is_first) const in ImmToString() argument 112 if (idx >= imms.size()) { in ImmToString() 116 auto *number = std::get_if<double>(&(imms[idx])); in ImmToString() 128 translator << "0x" << std::hex << std::get<int64_t>(imms[idx]); in ImmToString() 134 std::string panda::pandasm::Ins::IdToString(size_t idx, boo argument [all...] |
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-ins.cpp | 86 std::string ark::pandasm::Ins::RegToString(size_t idx, bool isFirst, bool printArgs, size_t firstArgIdx) const in RegToString() argument 88 if (idx >= regs.size()) { in RegToString() 100 if (printArgs && regs[idx] >= firstArgIdx) { in RegToString() 101 translator << "a" << regs[idx] - firstArgIdx; in RegToString() 103 translator << "v" << regs[idx]; in RegToString() 109 std::string ark::pandasm::Ins::ImmToString(size_t idx, bool isFirst) const in ImmToString() argument 111 if (idx >= imms.size()) { in ImmToString() 115 auto *number = std::get_if<double>(&(imms[idx])); in ImmToString() 127 translator << "0x" << std::hex << std::get<int64_t>(imms[idx]); in ImmToString() 133 std::string ark::pandasm::Ins::IdToString(size_t idx, boo argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/ |
H A D | maple_sparse_bitvector.h | 32 explicit MapleSparseBitVectorElement(unsigned idx) : index(idx), bitVector {0} {} in MapleSparseBitVectorElement() 34 BitWord GetWord(unsigned idx) const in GetWord() 36 return bitVector[idx]; in GetWord() 44 void Set(unsigned idx) in Set() 46 bitVector[idx / kBitWordSize] |= 1ULL << (idx % kBitWordSize); in Set() 49 void Reset(unsigned idx) in Reset() 51 bitVector[idx / kBitWordSize] &= ~(1ULL << (idx in Reset() 193 unsigned idx = bitNO / bitVectorSize; Set() local 215 unsigned idx = bitNO / bitVectorSize; Reset() local 232 unsigned idx = bitNO / bitVectorSize; Test() local 464 LowerBoundFor(unsigned idx) LowerBoundFor() argument [all...] |
/arkcompiler/runtime_core/static_core/verification/value/ |
H A D | variables.h | 33 static void Init(Wrapper &v, size_t idx) in Init() 35 v.idx = idx; in Init() 37 size_t idx; member 56 return (*accessor_).idx == (*v.accessor_).idx; in operator ==() 61 return (*accessor_).idx != (*v.accessor_).idx; in operator !=() 66 return prefix + NumToStr((*accessor_).idx); in Image()
|
/arkcompiler/runtime_core/static_core/compiler/aot/ |
H A D | aot_manager.h | 99 for (size_t idx = 0; idx < aotStringYoungSet_.size(); idx++) { in VisitAotStringRoots() 100 auto mask = aotStringYoungSet_[idx]; in VisitAotStringRoots() 104 for (size_t offset = 0; offset < MASK_WIDTH && idx * MASK_WIDTH + offset < totalRoots; offset++) { in VisitAotStringRoots() 106 cb(aotStringGcRoots_[idx * MASK_WIDTH + offset]); in VisitAotStringRoots() 119 size_t idx = 0; in UpdateAotStringRoots() local 122 uint64_t bitmask = 1ULL << (idx % MASK_WIDTH); in UpdateAotStringRoots() 124 if ((aotStringYoungSet_[idx / MASK_WIDTH] & bitmask) != 0) { in UpdateAotStringRoots() 128 aotStringYoungSet_[idx / MASK_WIDT in UpdateAotStringRoots() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
H A D | etsTupleType.cpp | 61 for (TupleSizeType idx = 0; idx < GetMinTupleSize(); ++idx) { in Identical() 62 if (!relation->IsIdenticalTo(GetTypeAtIndex(idx), otherTuple->GetTypeAtIndex(idx))) { in Identical() 118 for (int32_t idx = 0; idx < GetMinTupleSize(); ++idx) { in AssignmentTarget() 126 if (!relation->IsIdenticalTo(GetTypeAtIndex(idx), tupleSource->GetTypeAtIndex(idx))) { in AssignmentTarget() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
H A D | ets_array_test.cpp | 83 for (uint32_t idx = 0; idx < arrayLength; ++idx) { in TestEtsPrimitiveArray() 84 array->Set(idx, element); in TestEtsPrimitiveArray() 85 ASSERT_EQ(array->Get(idx), element); in TestEtsPrimitiveArray() 115 for (uint32_t idx = 0; idx < arrayLength; idx++) { in TestEtsObjectArray() 117 array->Set(idx, obj); in TestEtsObjectArray() 118 ASSERT_EQ(array->Get(idx), ob in TestEtsObjectArray() [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | vReg.h | 28 explicit constexpr VReg(const uint32_t idx) noexcept : idx_(idx) {} in idx_() 35 constexpr void SetIndex(const Index idx) noexcept 37 idx_ = idx; 103 [[nodiscard]] constexpr bool operator!=(const Index idx) const noexcept 105 return !(*this == idx); 108 [[nodiscard]] constexpr bool operator==(const Index idx) const noexcept 110 return idx_ == idx; 113 [[nodiscard]] constexpr VReg operator+(const Index idx) const noexcept 115 return VReg(idx_ + idx); [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_runtime_call_info.h | 97 inline void SetCallArg(uint32_t idx, const JSTaggedValue tagged) in SetCallArg() 99 ASSERT_PRINT(idx < GetArgsNumber(), "Can not set values out of index range"); in SetCallArg() 100 SetArg(idx + FIRST_ARGS_INDEX, tagged); in SetCallArg() 188 inline JSHandle<JSTaggedValue> GetCallArg(uint32_t idx) const 190 return GetArg(idx + FIRST_ARGS_INDEX); 211 inline JSTaggedValue GetCallArgValue(uint32_t idx) const 213 JSHandle<JSTaggedValue> arg = GetCallArg(idx); 234 inline uintptr_t GetArgAddress(uint32_t idx) const 236 if (idx < GetArgsNumber() + NUM_MANDATORY_JSFUNC_ARGS) { 237 return reinterpret_cast<uintptr_t>(&stackArgs_[idx]); [all...] |
/arkcompiler/ets_runtime/test/moduletest/errorhelper/ |
H A D | errorhelper.js | 47 let idx = 0; 50 idx++; 51 if (idx == 1) { 52 idx = idx11; 53 // 0 in idx 66 idx=0;
|
/arkcompiler/runtime_core/abc2program/common/ |
H A D | abc_code_converter.cpp | 24 size_t idx) const in IDToString() 26 panda_file::File::EntityId entity_id = file_.ResolveOffsetByIndex(method_id, bc_ins.GetId(idx).AsIndex()); in IDToString() 27 if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::METHOD_ID)) { in IDToString() 31 } else if (bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::STRING_ID)) { in IDToString() 36 ASSERT(bc_ins.IsIdMatchFlag(idx, BytecodeInstruction::Flags::LITERALARRAY_ID)); in IDToString()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | cg_dominance.h | 103 uint32 GetDtPreOrderItem(size_t idx) const in GetDtPreOrderItem() 105 return dtPreOrder[idx]; in GetDtPreOrderItem() 113 uint32 GetDtDfnItem(size_t idx) const in GetDtDfnItem() 115 return dtDfn[idx]; in GetDtDfnItem() 138 auto &GetDomFrontier(size_t idx) 140 return domFrontier[idx]; 157 auto &GetDomChildren(size_t idx) 159 return domChildren[idx]; 162 auto &GetIdomFrontier(uint32 idx) 164 return iterDomFrontier[idx]; [all...] |
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | abc_file_processor.cpp | 203 const size_t idx) in ArrayValueToString() 208 auto res = value.Get<int8_t>(idx); in ArrayValueToString() 211 auto res = value.Get<uint8_t>(idx); in ArrayValueToString() 214 ss << (value.Get<int16_t>(idx)); in ArrayValueToString() 216 ss << (value.Get<uint16_t>(idx)); in ArrayValueToString() 218 ss << (value.Get<int32_t>(idx)); in ArrayValueToString() 220 ss << (value.Get<uint32_t>(idx)); in ArrayValueToString() 222 ss << (value.Get<int64_t>(idx)); in ArrayValueToString() 224 ss << (value.Get<uint64_t>(idx)); in ArrayValueToString() 226 ss << (value.Get<float>(idx)); in ArrayValueToString() 202 ArrayValueToString(const panda_file::ArrayValue &value, const std::string &type, const size_t idx) ArrayValueToString() argument [all...] |