/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | gate.cpp | 22 for (size_t idx = 0; idx < numIns; idx++) { in CheckNullInput() local 23 if (IsInGateNull(idx)) { in CheckNullInput() 24 CheckFailed("In list contains null", idx); in CheckNullInput() 36 void Gate::CheckInputOpcode(size_t idx, OpCode expected) const in CheckInputOpcode() argument 38 OpCode actual = GetInGateConst(idx)->GetOpCode(); in CheckInputOpcode() 41 + " actual:" + GateMetaData::Str(actual) + ")", idx); in CheckInputOpcode() 45 void Gate::CheckInputMachineType(size_t idx, MachineType expected, bool isArch64) const in CheckInputMachineType() argument 47 MachineType actual = GetInGateConst(idx)->GetMachineType(); in CheckInputMachineType() 59 + MachineTypeToStr(expected) + " actual:" + MachineTypeToStr(actual) + ")", idx); in CheckInputMachineType() 63 void Gate::CheckGeneralState(size_t idx) const in CheckGeneralState() [all …]
|
D | scheduler.cpp | 55 for (size_t idx = 0; idx < bbGatesList.size(); idx++) { in CalculateDominatorTree() local 56 bbGatesAddrToIdx[bbGatesList[idx]] = idx; in CalculateDominatorTree() 66 std::function<size_t(size_t)> unionFind = [&] (size_t idx) -> size_t { in CalculateDominatorTree() argument 67 size_t pIdx = parent[idx]; in CalculateDominatorTree() 68 if (pIdx == idx) { in CalculateDominatorTree() 69 return idx; in CalculateDominatorTree() 72 if (semiDom[minIdx[idx]] > semiDom[minIdx[pIdx]]) { in CalculateDominatorTree() 73 minIdx[idx] = minIdx[pIdx]; in CalculateDominatorTree() 75 return parent[idx] = unionFindSetRoot; in CalculateDominatorTree() 84 for (size_t idx = bbGatesList.size() - 1; idx >= 1; idx--) { in CalculateDominatorTree() local [all …]
|
D | circuit.cpp | 79 for (size_t idx = 0; idx < numIns; idx++) { in NewGate() local 81 inPtrList[idx] = (inList[idx] == Circuit::NullGate()) ? nullptr : LoadGatePtr(inList[idx]); in NewGate() 234 GateRef Circuit::GetIn(GateRef gate, size_t idx) const in GetIn() 236 ASSERT(idx < LoadGatePtrConst(gate)->GetNumIns()); in GetIn() 237 if (IsInGateNull(gate, idx)) { in GetIn() 241 return GetGateRef(curGate->GetInGateConst(idx)); in GetIn() 244 bool Circuit::IsInGateNull(GateRef gate, size_t idx) const in IsInGateNull() 247 return curGate->GetInConst(idx)->IsGateNull(); in IsInGateNull() 271 void Circuit::NewIn(GateRef gate, size_t idx, GateRef in) in NewIn() argument 274 ASSERT(idx < LoadGatePtrConst(gate)->GetNumIns()); in NewIn() [all …]
|
D | gate.h | 61 void SetIndex(OutIdx idx); 146 void NewIn(size_t idx, Gate *in); 147 void ModifyIn(size_t idx, Gate *in); 148 void DeleteIn(size_t idx); 151 [[nodiscard]] Out *GetOut(size_t idx); 153 [[nodiscard]] const Out *GetOutConst(size_t idx) const; 161 [[nodiscard]] In *GetIn(size_t idx); 162 [[nodiscard]] const In *GetInConst(size_t idx) const; 163 [[nodiscard]] Gate *GetInGate(size_t idx); 164 [[nodiscard]] const Gate *GetInGateConst(size_t idx) const; [all …]
|
D | binary_section.h | 55 explicit ElfSection(ElfSecName idx) in ElfSection() argument 57 value_ = idx; in ElfSection() 59 explicit ElfSection(size_t idx) in ElfSection() argument 61 value_ = static_cast<ElfSecName>(idx); in ElfSection() 94 auto idx = static_cast<size_t>(value_); in isValidAOTSec() local 95 return static_cast<uint8_t>(AOTSecFeatureTable_[idx]) & ElfSecFeature::VALID_MASK; in isValidAOTSec() 100 auto idx = static_cast<size_t>(value_); in isSequentialAOTSec() local 101 return static_cast<uint8_t>(AOTSecFeatureTable_[idx]) & ElfSecFeature::SEQUENTIAL_MASK; in isSequentialAOTSec()
|
D | gate_accessor.cpp | 210 GateRef GateAccessor::GetValueIn(GateRef gate, size_t idx) const in GetValueIn() 213 ASSERT(idx < gatePtr->GetInValueCount()); in GetValueIn() 215 return circuit_->GetIn(gate, valueIndex + idx); in GetValueIn() 229 GateRef GateAccessor::GetIn(GateRef gate, size_t idx) const in GetIn() 231 return circuit_->GetIn(gate, idx); in GetIn() 234 GateRef GateAccessor::GetState(GateRef gate, size_t idx) const in GetState() 236 ASSERT(idx < circuit_->LoadGatePtr(gate)->GetStateCount()); in GetState() 237 return circuit_->GetIn(gate, idx); in GetState() 243 for (size_t idx = 0; idx < curGate->GetStateCount(); idx++) { in GetInStates() local 244 ins.push_back(circuit_->GetGateRef(curGate->GetInGateConst(idx))); in GetInStates() [all …]
|
/arkcompiler/runtime_core/verification/util/ |
D | obj_pool.h | 33 Accessor() : idx {0}, pool {nullptr}, prev {nullptr}, next {nullptr} {} in Accessor() 34 …Accessor(std::size_t index, ObjPool *obj_pool) : idx {index}, pool {obj_pool}, prev {nullptr}, nex… in Accessor() 38 Accessor(const Accessor &p) : idx {p.idx}, pool {p.pool}, prev {nullptr}, next {nullptr} in Accessor() 42 Accessor(Accessor &&p) : idx {p.idx}, pool {p.pool}, prev {p.prev}, next {p.next} in Accessor() 51 idx = p.idx; 59 idx = p.idx; 73 return pool->Storage[idx]; 77 return pool->Storage[idx]; 92 idx = 0; in Reset() 100 next = pool->Accessors[idx]; in Insert() [all …]
|
D | shifted_vector.h | 30 typename Base::reference operator[](int idx) 32 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 34 typename Base::const_reference &operator[](int idx) const 36 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 38 typename Base::reference at(int idx) in at() argument 40 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in at() 42 typename Base::const_reference &at(int idx) const in at() argument 44 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in at() 46 bool InValidRange(int idx) const in InValidRange() argument 48 … return idx + SHIFT >= 0 && static_cast<typename Base::size_type>(idx + SHIFT) < Base::size(); in InValidRange() [all …]
|
D | bit_vector.h | 107 static Word MaskForIndex(size_t idx) in MaskForIndex() argument 109 return static_cast<Word>(1) << idx; in MaskForIndex() 112 static Word MaskUpToIndex(size_t idx) in MaskUpToIndex() argument 114 return idx >= BITS_IN_WORD ? MAX_WORD : ((static_cast<Word>(1) << idx) - 1); in MaskUpToIndex() 253 bool operator[](size_t idx) const 255 ASSERT(idx < size()); 256 return data_[idx >> POS_SHIFT] & MaskForIndex(idx % BITS_IN_WORD); 258 Bit operator[](size_t idx) 260 return {*this, idx}; 281 void Clr(size_t idx) in Clr() argument [all …]
|
D | equiv_classes.h | 100 void DisposeClassIndex(ClassIndex idx) in DisposeClassIndex() argument 102 auto &entry = ClsEntry(idx); in DisposeClassIndex() 106 FreeClassIndices_.push_back(idx); in DisposeClassIndex() 109 ObjectEntry &ObjEntry(ObjIndex idx) in ObjEntry() argument 111 return Objects_[idx]; in ObjEntry() 114 const ObjectEntry &ObjEntry(ObjIndex idx) const in ObjEntry() argument 116 return Objects_[idx]; in ObjEntry() 119 ClassIndex ObjClass(ObjIndex idx) const in ObjClass() argument 121 return Objects_[idx].Class; in ObjClass() 226 auto AllEqualToLazy(ObjIndex idx) in AllEqualToLazy() argument [all …]
|
D | set_operations.h | 44 for (size_t idx = 0; idx < iters.size(); ++idx) { in SetIntersection() local 45 if (iters[idx] == ends[idx]) { in SetIntersection() 48 aligned = aligned && (*iters[idx] == *iters[min]); in SetIntersection() 49 if (*iters[idx] < *iters[min]) { in SetIntersection() 50 min = idx; in SetIntersection()
|
D | index.h | 43 Index(Index &&idx) : Value_ {idx.Value_} in Index() argument 45 idx.Invalidate(); 48 Index &operator=(Index &&idx) 50 Value_ = idx.Value_; 51 idx.Invalidate();
|
/arkcompiler/runtime_core/verification/absint/ |
D | reg_context.h | 83 void ChangeValuesOfSameOrigin(int idx, const AbstractTypedValue &atv) in ChangeValuesOfSameOrigin() argument 85 if (!Regs_.InValidRange(idx)) { in ChangeValuesOfSameOrigin() 86 Regs_[idx] = atv; in ChangeValuesOfSameOrigin() 89 auto old_atv = Regs_[idx]; in ChangeValuesOfSameOrigin() 91 Regs_[idx] = atv; in ChangeValuesOfSameOrigin() 96 Regs_[idx] = atv; in ChangeValuesOfSameOrigin() 110 AbstractTypedValue &operator[](int idx) 112 if (!Regs_.InValidRange(idx)) { 113 Regs_.ExtendToInclude(idx); 115 return Regs_[idx]; [all …]
|
/arkcompiler/runtime_core/libpandafile/ |
D | module_data_accessor-inl.h | 30 for (size_t idx = 0; idx < regular_import_num; idx++) { in EnumerateModuleRecord() local 38 for (size_t idx = 0; idx < namespace_import_num; idx++) { in EnumerateModuleRecord() local 45 for (size_t idx = 0; idx < local_export_num; idx++) { in EnumerateModuleRecord() local 52 for (size_t idx = 0; idx < indirect_export_num; idx++) { in EnumerateModuleRecord() local 60 for (size_t idx = 0; idx < starExportNum; idx++) { in EnumerateModuleRecord() local
|
/arkcompiler/ets_runtime/test/aottest/optimization/ |
D | optimization.ts | 20 let idx = 1 - 1; 21 let ret = f[idx]; 27 print(f[idx]); 28 print(f[idx + 1]); 34 let idx = 1 - 1; 35 let ret = g[idx]; 36 if (g[idx] < 10) { 37 g[idx] -= 10; 42 print(g[idx]);
|
/arkcompiler/runtime_core/assembler/ |
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, bool is_first) const in IdToString() argument [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/ |
D | module_data_accessor.cpp | 29 for (size_t idx = 0; idx < numModuleRequests_; idx++) { in ModuleDataAccessor() local 52 for (size_t idx = 0; idx < regularImportNum; idx++) { in EnumerateImportEntry() local 66 regularImportEntries->Set(thread, idx, importEntry); in EnumerateImportEntry() 77 for (size_t idx = regularImportNum; idx < totalSize; idx++) { in EnumerateImportEntry() local 87 importEntries->Set(thread, idx, importEntry); in EnumerateImportEntry() 107 for (size_t idx = 0; idx < localExportNum; idx++) { in EnumerateLocalExportEntry() local 123 localExportEntries->Set(thread, idx, localExportEntry); in EnumerateLocalExportEntry() 145 for (size_t idx = 0; idx < indirectExportNum; idx++) { in EnumerateIndirectExportEntry() local 161 indirectExportEntries->Set(thread, idx, indirectExportEntry); in EnumerateIndirectExportEntry() 183 for (size_t idx = 0; idx < starExportNum; idx++) { in EnumerateStarExportEntry() local [all …]
|
/arkcompiler/runtime_core/compiler/aot/ |
D | aot_manager.h | 99 for (size_t idx = 0; idx < aot_string_young_set_.size(); idx++) { in VisitAotStringRoots() local 100 auto mask = aot_string_young_set_[idx]; in VisitAotStringRoots() 104 …for (size_t offset = 0; offset < MASK_WIDTH && idx * MASK_WIDTH + offset < total_roots; offset++) { in VisitAotStringRoots() 106 cb(aot_string_gc_roots_[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 ((aot_string_young_set_[idx / MASK_WIDTH] & bitmask) != 0) { in UpdateAotStringRoots() 128 aot_string_young_set_[idx / MASK_WIDTH] &= ~bitmask; in UpdateAotStringRoots() 132 idx++; in UpdateAotStringRoots()
|
/arkcompiler/ets_runtime/ecmascript/ |
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 in GetCallArg() 190 return GetArg(idx + FIRST_ARGS_INDEX); in GetCallArg() 211 inline JSTaggedValue GetCallArgValue(uint32_t idx) const in GetCallArgValue() 213 JSHandle<JSTaggedValue> arg = GetCallArg(idx); in GetCallArgValue() 234 inline uintptr_t GetArgAddress(uint32_t idx) const in GetArgAddress() 236 if (idx < GetArgsNumber() + NUM_MANDATORY_JSFUNC_ARGS) { in GetArgAddress() 237 return reinterpret_cast<uintptr_t>(&stackArgs_[idx]); in GetArgAddress() [all …]
|
D | byte_array.cpp | 22 void ByteArray::Set(uint32_t idx, DataViewType type, JSTaggedType val, uint32_t offset) in Set() argument 26 builtins::BuiltinsArrayBuffer::SetValueInBuffer(idx * GetSize(), block, type, in Set() 30 JSTaggedValue ByteArray::Get(JSThread *thread, uint32_t idx, DataViewType type, uint32_t offset) in Get() argument 34 …return builtins::BuiltinsArrayBuffer::GetValueFromBuffer(thread, idx * GetSize(), block, type, tru… in Get()
|
/arkcompiler/runtime_core/libpandafile/templates/ |
D | bytecode_instruction-inl_gen.h.erb | 18 constexpr bool BytecodeInst<Mode>::HasId(Format format, size_t idx) { 25 return idx < <%= n %>; 37 constexpr bool BytecodeInst<Mode>::HasVReg(Format format, size_t idx) { 44 return idx < <%= n %>; // NOLINT(readability-magic-numbers) 56 constexpr bool BytecodeInst<Mode>::HasImm(Format format, size_t idx) { 63 return idx < <%= n %>; 89 template <typename BytecodeInst<Mode>::Format format, size_t idx /* = 0 */> 91 static_assert(HasId(format, idx), "Instruction doesn't have id operand with such index"); 110 return BytecodeId(static_cast<uint32_t>(Read<OFFSETS[idx], WIDTHS[idx]>())); 119 inline void BytecodeInst<Mode>::UpdateId(BytecodeId new_id, uint32_t idx /* = 0 */) { [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/expression/ |
D | regularExpression.ts | 56 for (let idx = 0; idx < regexpFlags.length; idx++) { 57 switch (regexpFlags[idx]) { 78 …iagnosticError(regexp, DiagnosticCode.Invalid_regular_expression_flag_0, file, [regexpFlags[idx]]); 82 …iagnosticError(regexp, DiagnosticCode.Invalid_regular_expression_flag_0, file, [regexpFlags[idx]]);
|
/arkcompiler/runtime_core/verification/util/tests/ |
D | bit_vector_property_test.cpp | 57 for (auto idx : bitset.Indices) { in showValue() local 62 os << idx; in showValue() 66 for (size_t idx = 0; idx < bitset.Bits.size(); ++idx) { in showValue() local 67 os << (static_cast<int>(bitset.Bits[idx]) ? '1' : '0'); in showValue() 68 if (((idx + 1) & 0x7) == 0) { in showValue() 71 if (((idx + 1) & 0x1F) == 0) { in showValue() 92 for (const auto &idx : set) { in arbitrary() local 93 bits[idx] = 1; in arbitrary() 155 for (size_t idx = 0; idx < bits.size(); ++idx) { in __anon8df752f40402() local 156 RC_ASSERT(bits[idx] == bit_set.Bits[idx]); in __anon8df752f40402() [all …]
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.cpp | 65 for (size_t idx = 0; idx < starExportEntriesLen; idx++) { in GetExportedNames() local 66 ee.Update(starExportEntries->Get(idx)); in GetExportedNames() 226 for (size_t idx = 0; idx < starExportEntriesLen; idx++) { in ResolveExport() local 227 ee.Update(starExportEntries->Get(idx)); in ResolveExport() 290 for (size_t idx = 0; idx < length; idx++) { in InitializeEnvironment() local 291 JSTaggedValue resolvedBinding = environment->Get(idx); in InitializeEnvironment() 308 host.Update(importEntries->Get(idx)); in InitializeEnvironment() 324 environment->Set(thread, idx, resolution); in InitializeEnvironment() 414 for (size_t idx = 0; idx < requestedModulesLen; idx++) { in InnerModuleInstantiation() local 415 required.Update(requestedModules->Get(idx)); in InnerModuleInstantiation() [all …]
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | bitset.cpp | 55 size_t idx = pos >> shiftOffset; in Set() local 59 data_[idx] |= 1U << slot; in Set() 61 data_[idx] &= ~(1U << slot); in Set() 68 size_t idx = pos >> shiftOffset; in Test() local 71 return (data_[idx] & (1U << slot)) != 0; in Test()
|