[liftoff] Remove redundant method (FillInstanceInto)
On all platform, the method is implemented identical to {LoadInstanceFromFrame}. So remove {FillInstanceInto} and keep {LoadInstanceFromFrame} which is a better name. R=thibaudm@chromium.org Bug: v8:12425 Change-Id: Ia9e6a3e2478628f8d31ff4faaab8d5250fda7796 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3429203 Reviewed-by: Thibaud Michaud <thibaudm@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#78924}
This commit is contained in:
parent
11c48033fe
commit
5a939b831f
@ -636,10 +636,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
ldr(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace liftoff {
|
namespace liftoff {
|
||||||
#define __ lasm->
|
#define __ lasm->
|
||||||
inline void LoadInternal(LiftoffAssembler* lasm, LiftoffRegister dst,
|
inline void LoadInternal(LiftoffAssembler* lasm, LiftoffRegister dst,
|
||||||
|
@ -468,10 +468,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
Ldr(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -383,10 +383,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
mov(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -1059,7 +1059,7 @@ void LiftoffAssembler::PrepareCall(const ValueKindSig* sig,
|
|||||||
|
|
||||||
// Reload the instance from the stack.
|
// Reload the instance from the stack.
|
||||||
if (!target_instance) {
|
if (!target_instance) {
|
||||||
FillInstanceInto(instance_reg);
|
LoadInstanceFromFrame(instance_reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -705,7 +705,6 @@ class LiftoffAssembler : public TurboAssembler {
|
|||||||
Register isolate_root);
|
Register isolate_root);
|
||||||
inline void SpillInstance(Register instance);
|
inline void SpillInstance(Register instance);
|
||||||
inline void ResetOSRTarget();
|
inline void ResetOSRTarget();
|
||||||
inline void FillInstanceInto(Register dst);
|
|
||||||
inline void LoadTaggedPointer(Register dst, Register src_addr,
|
inline void LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg, int32_t offset_imm,
|
Register offset_reg, int32_t offset_imm,
|
||||||
LiftoffRegList pinned);
|
LiftoffRegList pinned);
|
||||||
|
@ -4853,7 +4853,7 @@ class LiftoffCompiler {
|
|||||||
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
||||||
|
|
||||||
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
||||||
__ FillInstanceInto(instance);
|
__ LoadInstanceFromFrame(instance);
|
||||||
|
|
||||||
LiftoffRegister segment_index =
|
LiftoffRegister segment_index =
|
||||||
pinned.set(__ GetUnusedRegister(kGpReg, pinned));
|
pinned.set(__ GetUnusedRegister(kGpReg, pinned));
|
||||||
@ -4902,7 +4902,7 @@ class LiftoffCompiler {
|
|||||||
LiftoffRegister src = pinned.set(PopMemTypeToRegister(pinned));
|
LiftoffRegister src = pinned.set(PopMemTypeToRegister(pinned));
|
||||||
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
||||||
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
||||||
__ FillInstanceInto(instance);
|
__ LoadInstanceFromFrame(instance);
|
||||||
ExternalReference ext_ref = ExternalReference::wasm_memory_copy();
|
ExternalReference ext_ref = ExternalReference::wasm_memory_copy();
|
||||||
auto sig = MakeSig::Returns(kI32).Params(kPointerKind, kPointerKind,
|
auto sig = MakeSig::Returns(kI32).Params(kPointerKind, kPointerKind,
|
||||||
kPointerKind, kPointerKind);
|
kPointerKind, kPointerKind);
|
||||||
@ -4925,7 +4925,7 @@ class LiftoffCompiler {
|
|||||||
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
LiftoffRegister dst = pinned.set(PopMemTypeToRegister(pinned));
|
||||||
|
|
||||||
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
Register instance = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
|
||||||
__ FillInstanceInto(instance);
|
__ LoadInstanceFromFrame(instance);
|
||||||
ExternalReference ext_ref = ExternalReference::wasm_memory_fill();
|
ExternalReference ext_ref = ExternalReference::wasm_memory_fill();
|
||||||
auto sig = MakeSig::Returns(kI32).Params(kPointerKind, kPointerKind, kI32,
|
auto sig = MakeSig::Returns(kI32).Params(kPointerKind, kPointerKind, kI32,
|
||||||
kPointerKind);
|
kPointerKind);
|
||||||
|
@ -364,10 +364,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
Ld_d(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -495,10 +495,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
lw(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -480,10 +480,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
Ld(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -300,10 +300,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
LoadU64(dst, liftoff::GetInstanceOperand(), r0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -473,10 +473,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
Ld(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -277,10 +277,6 @@ void LiftoffAssembler::SpillInstance(Register instance) {
|
|||||||
|
|
||||||
void LiftoffAssembler::ResetOSRTarget() {}
|
void LiftoffAssembler::ResetOSRTarget() {}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
LoadU64(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
@ -373,10 +373,6 @@ void LiftoffAssembler::ResetOSRTarget() {
|
|||||||
movq(liftoff::GetOSRTargetSlot(), Immediate(0));
|
movq(liftoff::GetOSRTargetSlot(), Immediate(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void LiftoffAssembler::FillInstanceInto(Register dst) {
|
|
||||||
movq(dst, liftoff::GetInstanceOperand());
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
|
||||||
Register offset_reg,
|
Register offset_reg,
|
||||||
int32_t offset_imm,
|
int32_t offset_imm,
|
||||||
|
Loading…
Reference in New Issue
Block a user