Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 178) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/
Dencode.cpp254 void Amd64Encoder::EncodeJump(Reg dst) in EncodeJump() argument
256 GetMasm()->jmp(ArchReg(dst)); in EncodeJump()
391 void Amd64Encoder::EncodeMul([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src, [[maybe_unused]] I… in EncodeMul() argument
401 void Amd64Encoder::EncodeMov(Reg dst, Reg src) in EncodeMov() argument
403 if (dst == src) { in EncodeMov()
407 if (dst.IsFloat() != src.IsFloat()) { in EncodeMov()
408 ASSERT(src.GetSize() == dst.GetSize()); in EncodeMov()
409 if (dst.GetSize() == WORD_SIZE) { in EncodeMov()
410 if (dst.IsFloat()) { in EncodeMov()
411 GetMasm()->movd(ArchVReg(dst), ArchReg(src)); in EncodeMov()
[all …]
Dtarget.h625 #define UNARY_OPERATION(opc) void Encode##opc(Reg dst, Reg src0) override;
628 void Encode##opc(Reg dst, Reg src0, Reg src1) override; \
629 void Encode##opc(Reg dst, Reg src0, Imm src1) override;
642 void EncodeAdd(Reg dst, Reg src0, Shift src1) override;
644 void EncodeCastToBool(Reg dst, Reg src) override;
645 void EncodeCast(Reg dst, bool dstSigned, Reg src, bool srcSigned) override;
646 void EncodeFastPathDynamicCast(Reg dst, Reg src, LabelHolder::LabelId slow) override;
647 void EncodeMin(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
648 void EncodeDiv(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
649 void EncodeMod(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/
Dencode.cpp204 void Aarch64Encoder::EncodeJump(Reg dst) in EncodeJump() argument
206 GetMasm()->Br(VixlReg(dst)); in EncodeJump()
364 void Aarch64Encoder::EncodeMov(Reg dst, Reg src) in EncodeMov() argument
366 if (dst == src) { in EncodeMov()
369 if (src.IsFloat() && dst.IsFloat()) { in EncodeMov()
370 if (src.GetSize() != dst.GetSize()) { in EncodeMov()
371 GetMasm()->Fcvt(VixlVReg(dst), VixlVReg(src)); in EncodeMov()
374 GetMasm()->Fmov(VixlVReg(dst), VixlVReg(src)); in EncodeMov()
377 if (src.IsFloat() && !dst.IsFloat()) { in EncodeMov()
378 GetMasm()->Fmov(VixlReg(dst, src.GetSize()), VixlVReg(src)); in EncodeMov()
[all …]
Dtarget.h465 #define UNARY_OPERATION(opc) void Encode##opc(Reg dst, Reg src0) override;
467 #define BINARY_OPERATION_REG(opc) void Encode##opc(Reg dst, Reg src0, Reg src1) override;
469 #define BINARY_OPERATION_IMM(opc) void Encode##opc(Reg dst, Reg src0, Imm src1) override;
485 void EncodeAdd(Reg dst, Reg src0, Shift src1) override;
486 void EncodeSub(Reg dst, Reg src0, Shift src1) override;
487 void EncodeAnd(Reg dst, Reg src0, Shift src1) override;
488 void EncodeOr(Reg dst, Reg src0, Shift src1) override;
489 void EncodeXor(Reg dst, Reg src0, Shift src1) override;
490 void EncodeOrNot(Reg dst, Reg src0, Shift src1) override;
491 void EncodeAndNot(Reg dst, Reg src0, Shift src1) override;
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/
Dencode.cpp307 void Aarch32Encoder::EncodeJump(Reg dst) in EncodeJump() argument
309 GetMasm()->Bx(VixlReg(dst)); in EncodeJump()
402 void Aarch32Encoder::EncodeMul([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src, [[maybe_unused]]… in EncodeMul() argument
603 void Aarch32Encoder::EncodeFpToBits(Reg dst, Reg src) in EncodeFpToBits() argument
605 ASSERT(dst.IsScalar() && src.IsFloat()); in EncodeFpToBits()
606 if (dst.GetSize() == WORD_SIZE) { in EncodeFpToBits()
613 GetMasm()->Vmov(VixlReg(dst), VixlVReg(src).S()); in EncodeFpToBits()
614 GetMasm()->Mov(Convert(Condition::NE), VixlReg(dst), VixlImm(NANF)); in EncodeFpToBits()
622 GetMasm()->Vmov(VixlReg(dst), VixlRegU(dst), VixlVReg(src).D()); in EncodeFpToBits()
623 GetMasm()->Mov(Convert(Condition::NE), VixlReg(dst), VixlImm(0)); in EncodeFpToBits()
[all …]
Dtarget.h468 #define UNARY_OPERATION(opc) void Encode##opc(Reg dst, Reg src0) override;
470 #define BINARY_OPERATION_REG_REG_REG(opc) void Encode##opc(Reg dst, Reg src0, Reg src1) override;
472 #define BINARY_OPERATION_REG_REG_IMM(opc) void Encode##opc(Reg dst, Reg src0, Imm src1) override;
487 void EncodeCastToBool(Reg dst, Reg src) override;
488 void EncodeCast(Reg dst, bool dstSigned, Reg src, bool srcSigned) override;
489 void EncodeMin(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
490 void EncodeDiv(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
491 void EncodeMod(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
492 void EncodeMax(Reg dst, bool dstSigned, Reg src0, Reg src1) override;
494 void EncodeLdr(Reg dst, bool dstSigned, MemRef mem) override;
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/
Dassembler_x64.cpp57 void AssemblerX64::Addq(Immediate src, Register dst) in Addq() argument
59 EmitRexPrefixW(dst); in Addq()
64 EmitModrm(0, dst); in Addq()
66 } else if (dst == rax) { in Addq()
74 EmitModrm(0, dst); in Addq()
79 void AssemblerX64::Addq(Register src, Register dst) in Addq() argument
81 EmitRexPrefix(dst, src); in Addq()
84 EmitModrm(dst, src); in Addq()
87 void AssemblerX64::Addl(Immediate src, Register dst) in Addl() argument
89 EmitRexPrefix(dst); in Addl()
[all …]
Dassembler_x64.h94 void Movq(Register src, Register dst);
95 void Movq(const Operand &src, Register dst);
96 void Movq(Register src, const Operand &dst);
97 void Movq(Immediate src, Operand dst);
98 void Movq(Immediate src, Register dst);
99 void Mov(const Operand &src, Register dst);
100 void Mov(Register src, Register dst);
101 void Addq(Immediate src, Register dst);
102 void Addq(Register src, Register dst);
103 void Addl(Immediate src, Register dst);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_core_Arrays.cpp24 static EtsVoid *StdCoreCopyTo(coretypes::Array *src, coretypes::Array *dst, int32_t dstStart, int32… in StdCoreCopyTo() argument
28 auto dstLen = static_cast<int32_t>(dst->GetLength()); in StdCoreCopyTo()
41 auto dstAddr = ToVoidPtr(ToUintPtr(dst->GetData()) + dstStart * sizeof(T)); in StdCoreCopyTo()
58 extern "C" EtsVoid *StdCoreBoolCopyTo(EtsCharArray *src, EtsCharArray *dst, int32_t dstStart, int32… in StdCoreBoolCopyTo() argument
61 … return StdCoreCopyTo<uint8_t>(src->GetCoreType(), dst->GetCoreType(), dstStart, srcStart, srcEnd); in StdCoreBoolCopyTo()
64 extern "C" EtsVoid *StdCoreCharCopyTo(EtsCharArray *src, EtsCharArray *dst, int32_t dstStart, int32… in StdCoreCharCopyTo() argument
67 …return StdCoreCopyTo<uint16_t>(src->GetCoreType(), dst->GetCoreType(), dstStart, srcStart, srcEnd); in StdCoreCharCopyTo()
70 extern "C" EtsVoid *StdCoreShortCopyTo(EtsCharArray *src, EtsCharArray *dst, int32_t dstStart, int3… in StdCoreShortCopyTo() argument
73 …return StdCoreCopyTo<uint16_t>(src->GetCoreType(), dst->GetCoreType(), dstStart, srcStart, srcEnd); in StdCoreShortCopyTo()
76 extern "C" EtsVoid *StdCoreByteCopyTo(EtsCharArray *src, EtsCharArray *dst, int32_t dstStart, int32… in StdCoreByteCopyTo() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dbinary_buffer_parser.cpp20 void BinaryBufferParser::ParseBuffer(void *dst, uint32_t count) in ParseBuffer() argument
23 if (memcpy_s(dst, count, buffer_ + offset_, count) != EOK) { in ParseBuffer()
32 void BinaryBufferParser::ParseBuffer(void *dst, uint32_t count, uint32_t offset) in ParseBuffer() argument
35 ParseBuffer(dst, count); in ParseBuffer()
38 void BinaryBufferParser::ParseBuffer(uint8_t *dst, uint32_t count, uint8_t *src) in ParseBuffer() argument
41 if (memcpy_s(dst, count, src, count) != EOK) { in ParseBuffer()
Dbinary_buffer_parser.h25 void ParseBuffer(void *dst, uint32_t count);
26 void ParseBuffer(void *dst, uint32_t count, uint32_t offset);
27 void ParseBuffer(uint8_t *dst, uint32_t count, uint8_t *src);
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dencode.h186 …oid EncodeAddOverflow([[maybe_unused]] compiler::LabelHolder::LabelId id, [[maybe_unused]] Reg dst, in EncodeAddOverflow() argument
192 …oid EncodeSubOverflow([[maybe_unused]] compiler::LabelHolder::LabelId id, [[maybe_unused]] Reg dst, in EncodeSubOverflow() argument
198 …oid EncodeMulOverflow([[maybe_unused]] compiler::LabelHolder::LabelId id, [[maybe_unused]] Reg dst, in EncodeMulOverflow() argument
204 …odeNegOverflowAndZero([[maybe_unused]] compiler::LabelHolder::LabelId id, [[maybe_unused]] Reg dst, in EncodeNegOverflowAndZero() argument
210 virtual void EncodeFastPathDynamicCast([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src, in EncodeFastPathDynamicCast() argument
216 …virtual void EncodeCast([[maybe_unused]] Reg dst, [[maybe_unused]] bool dstSigned, [[maybe_unused]… in EncodeCast() argument
221 virtual void EncodeCastToBool([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src) in EncodeCastToBool() argument
225 …virtual void EncodeMin([[maybe_unused]] Reg dst, [[maybe_unused]] bool dstSigned, [[maybe_unused]]… in EncodeMin() argument
230 …virtual void EncodeDiv([[maybe_unused]] Reg dst, [[maybe_unused]] bool dstSigned, [[maybe_unused]]… in EncodeDiv() argument
235 …virtual void EncodeMod([[maybe_unused]] Reg dst, [[maybe_unused]] bool dstSigned, [[maybe_unused]]… in EncodeMod() argument
[all …]
Dcodegen.cpp261 void Codegen::CreateIrtocIntrinsic(IntrinsicInst *inst, [[maybe_unused]] Reg dst, [[maybe_unused]] … in CreateIrtocIntrinsic() argument
284 GetEncoder()->EncodeLdrExclusive(dst, src[0], true); in CreateIrtocIntrinsic()
288 GetEncoder()->EncodeStrExclusive(dst, src[SECOND_OPERAND], src[0], true); in CreateIrtocIntrinsic()
292 … GetEncoder()->EncodeCompareAndSwap(dst, src[0], src[SECOND_OPERAND], src[THIRD_OPERAND]); in CreateIrtocIntrinsic()
1111 auto dst = ConvertRegister(newObj->GetDstReg(), newObj->GetType()); in CreateNewObjCall() local
1120 CallRuntime(newObj, EntrypointId::CREATE_OBJECT_BY_CLASS, dst, RegMask::GetZeroMask(), src); in CreateNewObjCall()
1131 CallRuntime(newObj, EntrypointId::CREATE_OBJECT_BY_CLASS, dst, RegMask::GetZeroMask(), src); in CreateNewObjCall()
1139 CallRuntime(newObj, EntrypointId::CREATE_OBJECT_BY_CLASS, dst, RegMask::GetZeroMask(), src); in CreateNewObjCall()
1142 CallFastPath(newObj, EntrypointId::ALLOCATE_OBJECT_TLAB, dst, RegMask::GetZeroMask(), srcClass, in CreateNewObjCall()
1148 auto dst = ConvertRegister(newObj->GetDstReg(), newObj->GetType()); in CreateNewObjCallOld() local
[all …]
Dspill_fill_encoder.h45 inline Reg GetDstReg(Location dst, TypeInfo type) in GetDstReg() argument
49 if (type.IsFloat() && dst.IsRegister()) { in GetDstReg()
51 } else if (type.IsScalar() && dst.IsFpRegister()) { in GetDstReg()
55 return Reg(dst.GetValue(), type); in GetDstReg()
/arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/generator/
Dtag-isapi.rb17 dst = false
20 dst = true if op.dst?
22 dst
26 dst = false
29 dst = true if op.dst?
31 dst
/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/
DcopyToOf.ets.j217 * copies src array into dst with respect to passed indexes.
18 * dst must have enough space, otherwise out-of-bounds might occur
22 * @param dst destination array
24 * @param dstStart index of dst to start from
30 * @example: copy src to dst
32 * copyTo(src, dst, 0, 0, src.length)
36 export function copyTo(src: {{T}}[], dst: {{T}}[], dstStart: int, srcStart: int, srcEnd: int): void…
40 if (!checkRange(dst.length, dstStart, dst.length)) {
41 throw new ArrayIndexOutOfBoundsException("copyTo: dst bounds verification failed")
43 if (!((srcEnd - srcStart) <= (dst.length - dstStart))) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/
Dcodegen_intrinsics_ets.cpp20 void Codegen::CreateMathTrunc([[maybe_unused]] IntrinsicInst *inst, Reg dst, SRCREGS src) in CreateMathTrunc() argument
22 GetEncoder()->EncodeTrunc(dst, src[0]); in CreateMathTrunc()
25 void Codegen::CreateMathRoundAway([[maybe_unused]] IntrinsicInst *inst, Reg dst, SRCREGS src) in CreateMathRoundAway() argument
27 GetEncoder()->EncodeRoundAway(dst, src[0]); in CreateMathRoundAway()
30 void Codegen::CreateArrayCopyTo(IntrinsicInst *inst, [[maybe_unused]] Reg dst, SRCREGS src) in CreateArrayCopyTo() argument
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
Dcodegen_arm64.rb73 def ld(size, dst, src) argument
76 "__ Ldrb(#{dst}, #{src});"
78 "__ Ldrh(#{dst}, #{src});"
80 "__ Ldr(#{dst}, #{src});"
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dcodegen_arm64.rb73 def ld(size, dst, src) argument
76 "__ Ldrb(#{dst}, #{src});"
78 "__ Ldrh(#{dst}, #{src});"
80 "__ Ldr(#{dst}, #{src});"
/arkcompiler/ets_runtime/ecmascript/mem/
Dparallel_evacuator-inl.h41 TaggedObject *dst = hclass->GetLayout().GetTaggedObject(); in VisitBodyInObj() local
42 auto layout = LayoutInfo::UncheckCast(dst); in VisitBodyInObj()
67 TaggedObject *dst = markWord.ToForwardingAddress(); in UpdateOldToNewObjectSlot() local
69 dst = JSTaggedValue(dst).CreateAndGetWeakRef().GetRawTaggedObject(); in UpdateOldToNewObjectSlot()
71 slot.Update(dst); in UpdateOldToNewObjectSlot()
72 Region *dstRegion = Region::ObjectAddressToRange(dst); in UpdateOldToNewObjectSlot()
107 TaggedObject *dst = markWord.ToForwardingAddress(); in UpdateObjectSlot() local
108 slot.Update(dst); in UpdateObjectSlot()
124 TaggedObject *dst = markWord.ToForwardingAddress(); in UpdateWeakObjectSlot() local
125 auto weakRef = JSTaggedValue(dst).CreateAndGetWeakRef().GetRawTaggedObject(); in UpdateWeakObjectSlot()
/arkcompiler/runtime_core/static_core/runtime/fibers/
Dfiber_context.cpp22 void CopyContext(FiberContext *dst, const FiberContext *src) in CopyContext() argument
24 ASSERT(dst != nullptr); in CopyContext()
26 memcpy_s(dst, sizeof(FiberContext), src, sizeof(FiberContext)); in CopyContext()
/arkcompiler/runtime_core/static_core/irtoc/scripts/
Dstring_builder.irt123 dst := AddI(value).Imm(Constants::ARRAY_DATA_OFFSET).ptr
134 Store(dst, ShlI(count).Imm(1).u32, nullstr).u64
168 dst := Add(dst, count).ptr
178 StoreI(dst, b).Imm(0).u64
185 StoreI(dst, b).Imm(0).u16
192 StoreI(dst, b).Imm(0).u32
197 StoreI(dst, b).Imm(0).u32
198 StoreI(dst, b1).Imm(4).u16
205 StoreI(dst, b1).Imm(0).u64
206 Store(dst, SubI(sz).Imm(8).u32, b2).u64
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_array.h157 void CopyDataTo(EtsObjectArray *dst) in CopyDataTo() argument
159 ASSERT(dst != nullptr); in CopyDataTo()
160 ASSERT(GetLength() <= dst->GetLength()); in CopyDataTo()
164 Span<uint8_t> dstSpan(dst->GetData<uint8_t>(), count); in CopyDataTo()
170 barrierSet->PostBarrier(dst, 0, dst->ObjectSize()); in CopyDataTo()
188 void CopyData(Span<uint8_t> &src, Span<uint8_t> &dst) in CopyData() argument
191 ASSERT(src.Size() <= dst.Size()); in CopyData()
200 …reinterpret_cast<AtomicWord *>(&dst[i])->store(reinterpret_cast<AtomicWord *>(&src[i])->load(ORDER… in CopyData()
206 …reinterpret_cast<AtomicRef *>(&dst[i])->store(reinterpret_cast<AtomicRef *>(&src[i])->load(ORDER),… in CopyData()
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
Dzip_file_reader_io.cpp38 bool ZipFileReaderIo::ReadBuffer(uint8_t *dst, size_t startPos, size_t bufferSize) in ReadBuffer() argument
40 if (dst == nullptr || fd_ < 0 || startPos + bufferSize > fileLen_) { in ReadBuffer()
44 auto const readCount = pread(fd_, dst, bufferSize, startPos); in ReadBuffer()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
Dspill_fills_resolver.cpp276 void SpillFillsResolver::AddMovesChain(LocationIndex dst, ArenaVector<LocationIndex> *remap, in AddMovesChain() argument
279 [[maybe_unused]] auto firstDst = dst; in AddMovesChain()
283 auto src = movesTable_[dst].src; in AddMovesChain()
290 auto type = movesTable_[dst].regType; in AddMovesChain()
292 spillFillInst->AddSpillFill(ToLocation(src), ToLocation(dst), type); in AddMovesChain()
293 remap->at(src) = dst; in AddMovesChain()
295 spillFillInst->AddSpillFill(ToLocation(re), ToLocation(dst), type); in AddMovesChain()
299 movesTable_[dst].src = INVALID_LOCATION_INDEX; in AddMovesChain()
300 dst = src; in AddMovesChain()
301 src = movesTable_[dst].src; in AddMovesChain()
[all …]

12345678