/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | adjust_arefs.cpp | 177 auto scale = DataType::ShiftByType(inst->GetType(), GetGraph()->GetArch()); in ProcessChain() local 178 InsertMem(inst, arrData, inst->GetInput(1).GetInst(), scale); in ProcessChain() 200 void AdjustRefs::InsertMem(Inst *org, Inst *base, Inst *index, uint8_t scale) in InsertMem() argument 210 ldst->CastToStore()->SetScale(scale); in InsertMem() 213 ldst->CastToLoad()->SetScale(scale); in InsertMem() 245 auto scale = DataType::ShiftByType(mem->GetType(), GetGraph()->GetArch()); in ProcessIndex() local 251 if (off > (imm << scale)) { in ProcessIndex() 252 uint64_t newOff = off - (imm << scale); in ProcessIndex() 254 } else if (off < (imm << scale)) { in ProcessIndex() 255 uint64_t newOff = (imm << scale) in ProcessIndex() [all...] |
H A D | adjust_arefs.h | 48 void InsertMem(Inst *org, Inst *base, Inst *index, uint8_t scale);
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | operands.h | 330 // model -> base + index<<scale + disp 337 MemRef(Reg base, Reg index, uint16_t scale) : MemRef(base, index, scale, 0) {} in MemRef() argument 338 MemRef(Reg base, Reg index, uint16_t scale, ssize_t disp) : disp_(disp), scale_(scale), base_(base), index_(index) in MemRef() argument 341 CHECK_LE(scale, std::numeric_limits<decltype(scale_)>::max()); in MemRef() 410 explicit Shift(Reg base, ShiftType type, uint32_t scale) : scale_(scale), base_(base), type_(type) {} in Shift() argument 411 explicit Shift(Reg base, uint32_t scale) : Shift(base, ShiftType::LSL, scale) {} in Shift() argument [all...] |
H A D | encode_visitor.cpp | 557 auto scale = DataType::ShiftByType(inst->GetType(), enc->GetCodegen()->GetArch()); in VisitStoreArray() local 558 auto memRef = [enc, inst, array, index, offset, scale]() { in VisitStoreArray() 562 enc->GetEncoder()->EncodeShl(tmpOffset, index, Imm(scale)); in VisitStoreArray() 568 return MemRef(tmp, index, scale); in VisitStoreArray() 2377 int32_t scale = DataType::ShiftByType(type, enc->GetCodegen()->GetArch()); in VisitLoadArrayPair() local 2378 enc->GetEncoder()->EncodeAdd(tmp, src0, Shift(src1, scale)); in VisitLoadArrayPair() 2447 auto scale = DataType::ShiftByType(type, enc->GetCodegen()->GetArch()); in VisitStoreArrayPair() local 2449 enc->GetEncoder()->EncodeAdd(tmp, src0, Shift(src1, scale)); in VisitStoreArrayPair() 2459 enc->GetEncoder()->EncodeShl(tmpOffset, src1, Imm(scale)); in VisitStoreArrayPair()
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | class_data_accessor.cpp | 51 size_t scale = IDX_SIZE * num_ifaces_; in ClassDataAccessor() local 52 panda_file_.ThrowIfWithCheck(sp.Size() < scale, File::INVALID_FILE_OFFSET, File::CLASS_DATA_ACCESSOR); in ClassDataAccessor() 53 sp = sp.SubSpan(scale); in ClassDataAccessor()
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
H A D | assembler_aarch64.cpp | 250 uint32_t AssemblerAarch64::GetOpcFromScale(Scale scale, bool ispair) in GetOpcFromScale() argument 253 switch (scale) { in GetOpcFromScale() 277 void AssemblerAarch64::Ldr(const Register &rt, const MemoryOperand &operand, Scale scale) in Ldr() argument 280 uint32_t op = GetOpcodeOfLdr(operand, scale); in Ldr() 282 uint64_t imm = GetImmOfLdr(operand, scale, regX); in Ldr() 285 uint32_t instructionCode = ((regX && (scale == Scale::Q)) << 30) | op | LoadAndStoreImm(imm, isSigned) | in Ldr() 290 uint32_t shift = GetShiftOfLdr(operand, scale, regX); in Ldr() 297 uint32_t instructionCode = ((regX && (scale == Scale::Q)) << 30) | op | Rm(rm.GetId()) | in Ldr() 1149 uint64_t AssemblerAarch64::GetImmOfLdr(const MemoryOperand &operand, Scale scale, bool isRegX) in GetImmOfLdr() argument 1154 if (scale in GetImmOfLdr() 1167 GetOpcodeOfLdr(const MemoryOperand &operand, Scale scale) GetOpcodeOfLdr() argument 1230 GetShiftOfLdr(const MemoryOperand &operand, Scale scale, bool isRegX) GetShiftOfLdr() argument [all...] |
H A D | assembler_aarch64.h | 79 explicit VectorRegister(VectorRegisterId reg, Scale scale = D) : reg_(reg), scale_(scale) {}; in VectorRegister() 406 uint32_t GetOpcFromScale(Scale scale, bool ispair); 421 void Ldr(const Register &rt, const MemoryOperand &operand, Scale scale); 422 uint64_t GetImmOfLdr(const MemoryOperand &operand, Scale scale, bool isRegX); 423 uint64_t GetOpcodeOfLdr(const MemoryOperand &operand, Scale scale); 424 uint32_t GetShiftOfLdr(const MemoryOperand &operand, Scale scale, bool isRegX);
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/ |
H A D | assembler_x64.h | 64 Operand(Register base, Register index, Scale scale, int32_t disp); 65 Operand(Register index, Scale scale, int32_t disp); 68 void BuildSIB(Scale scale, Register index, Register base); 278 // | scale | index | base | 280 static uint8_t GetSIB(Scale scale, Register index, Register base) in GetSIB() argument 282 // 6: offset of scale in GetSIB() 283 return (static_cast<uint8_t>(scale) << 6) | (LowBits(index) << LOW_BITS_SIZE) | in GetSIB()
|
H A D | assembler_x64.cpp | 787 Operand::Operand(Register base, Register index, Scale scale, int32_t disp) in Operand() argument 789 BuildSIB(scale, index, base); in Operand() 804 // [index * scale + disp] 805 Operand::Operand(Register index, Scale scale, int32_t disp) in Operand() argument 809 BuildSIB(scale, index, rbp); in Operand() 813 void Operand::BuildSIB(Scale scale, Register index, Register base) in BuildSIB() argument 815 sib_ = AssemblerX64::GetSIB(scale, index, base); in BuildSIB()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | heap_sampling.cpp | 223 double scale = 1.0 / (1.0 - std::exp(-static_cast<double>(size) / rate_)); in AdjustSampleCount() local 224 return static_cast<unsigned int>(count * scale + base::HALF); in AdjustSampleCount()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | inst_generator_test.cpp | 527 T DoShift(T value, ShiftType shiftType, uint64_t scale, uint8_t typeSize) in DoShift() argument 531 return static_cast<uint64_t>(value) << scale; in DoShift() 533 return (static_cast<uint64_t>(value) >> scale) | in DoShift() 534 (value << (typeSize - scale)); // NOLINT(hicpp-signed-bitwise) in DoShift() 537 return static_cast<uint32_t>(value) >> static_cast<uint32_t>(scale); in DoShift() 540 return static_cast<uint64_t>(value) >> scale; in DoShift() 544 return static_cast<int64_t>(value) >> scale; // NOLINT(hicpp-signed-bitwise) in DoShift()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | ecma_string_accessor_test.cpp | 34 uint32_t scale = 3333; in HWTEST_F_L0() local 35 for (uint32_t i = EcmaString::MAX_STRING_LENGTH - 1; i > scale; i = i - scale) { in HWTEST_F_L0() 49 uint32_t scale = 3333; in HWTEST_F_L0() local 50 for (uint32_t i = EcmaString::MAX_STRING_LENGTH - 1; i > scale; i = i - scale) { in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | operand.h | 925 // X86 scale Type 1369 uint32 scale = extend & 0xF; in ShiftAmount() local 1371 return (scale == 8) ? 3 : ((scale == 4) ? 2 : ((scale == 2) ? 1 : 0)); in ShiftAmount()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/ |
H A D | bouncing_peas_unit_napi.cpp | 38 [[maybe_unused]] ets_float scale, in SkoalaInitRedrawer() 36 SkoalaInitRedrawer([[maybe_unused]] EtsEnv *env, [[maybe_unused]] ets_class klass, [[maybe_unused]] ets_int width, [[maybe_unused]] ets_int height, [[maybe_unused]] ets_float scale, [[maybe_unused]] ets_long peer , [[maybe_unused]] ets_long frame ) SkoalaInitRedrawer() argument
|
H A D | bouncing_peas_unit.cpp | 37 [[maybe_unused]] int height, [[maybe_unused]] float scale, in SkoalaInitRedrawer() 36 SkoalaInitRedrawer([[maybe_unused]] ark::Method *m, [[maybe_unused]] int width, [[maybe_unused]] int height, [[maybe_unused]] float scale, [[maybe_unused]] long peer , [[maybe_unused]] long frame ) SkoalaInitRedrawer() argument
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/ |
H A D | elf_assembler.h | 560 uint8 scale = log2Map[mem.s]; in GetSIB() local 563 return ((scale << kLeftShift6Bits) | ((index & kGetLow3Bits) << kLeftShift3Bits) | (base & kGetLow3Bits)); in GetSIB()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | ir_constructor.h | 470 IrConstructor &Scale(uint64_t scale) in Scale() argument 475 inst->CastToLoad()->SetScale(scale); in Scale() 478 inst->CastToStore()->SetScale(scale); in Scale()
|
H A D | inst.h | 2037 void SetScale(uint32_t scale) in SetScale() argument 2039 T::template SetField<ScaleField>(scale); in SetScale()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/ |
H A D | encode.cpp | 885 // mem: base, index, scale in PrepareMemLdS() 887 // add tmp, base, index, scale in PrepareMemLdS() 925 auto scale = mem.GetScale(); in PrepareMemLdSForFloat() local 927 // vmem: base, index, scale, offset in PrepareMemLdSForFloat() 929 // add tmp, base, index, scale in PrepareMemLdSForFloat() 932 ASSERT(scale != 0); in PrepareMemLdSForFloat() 934 ASSERT(scale > 0 && scale <= MAX_SHIFT); in PrepareMemLdSForFloat() 935 GetMasm()->Add(tmp, baseReg, vixl::aarch32::Operand(VixlReg(indexReg), vixl::aarch32::LSL, scale)); in PrepareMemLdSForFloat() 937 ASSERT(scale in PrepareMemLdSForFloat() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/ |
H A D | encode.cpp | 153 auto scale = mem.GetScale(); in ConvertMem() local 155 // Memory address = x_reg(base) + (SXTW(w_reg(index)) << scale) in ConvertMem() 158 return vixl::aarch64::MemOperand(VixlReg(baseReg), VixlReg(indexReg), vixl::aarch64::Extend::SXTW, scale); in ConvertMem() 160 // Memory address = x_reg(base) + (x_reg(index) << scale) in ConvertMem() 161 if (scale != 0) { in ConvertMem() 163 return vixl::aarch64::MemOperand(VixlReg(baseReg), VixlReg(indexReg), vixl::aarch64::LSL, scale); in ConvertMem()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
H A D | encode.cpp | 253 auto scale = mem.GetScale(); in ArchMem() local 254 if (scale <= 3U) { in ArchMem() 255 mem_ = asmjit::x86::ptr(ArchReg(mem.GetBase()), ArchReg(mem.GetIndex(), baseSize), scale); in ArchMem() 258 bigShift_ = scale; in ArchMem()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | ir_constructor.h | 376 IrConstructor &Scale(uint64_t scale) in Scale() argument
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_number_format.cpp | 623 scale(icu::number::Scale::powerOfTen(2)); // means 10^2 in InitializeNumberFormat()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 3986 uint32 scale = static_cast<uint32>(intOfst->GetExtValue()); 3987 OfstOperand &ofstOpnd = GetOrCreateOfstOpnd(scale, k32BitSize); 4041 int32 scale = mirIntConst->GetExtValue(); 4042 if (scale < 0) { 4045 uint32 unsignedScale = static_cast<uint32>(scale);
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
H A D | cocos_worker_test.js | 3652 this._skeletonCache = t.initSkeletonData(i, l, n, a, this.scale); 5104 scale(t, e) { 5105 this._nativeObj.scale(t, e); 9073 1220: "Failed to set shading scale, pipelineSceneData is invalid.", 11303 static scale(t, e, i) { 11996 "object" != typeof t && console.warn("should use Vec3.scale for vector * scalar operation"); 12293 static scale(t, e, i) { 12738 scale(t) { 13571 static scale(t, e, i) { 14729 scale( [all...] |