Commit 68da8855 authored by Yu Yin's avatar Yu Yin Committed by Commit Bot

[mips][cleanup] Drop some dead MacroAssembler code

see https://crrev.com/c/1627548
that CL remove this functions declaration in the header file, but did not
drop function definition in the cpp file.

Bug: v8:9183
Change-Id: I98bba3664510c0a6a6a047a8b9c7c43bcc4c3962
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1631812
Auto-Submit: Yu Yin <xwafish@gmail.com>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61884}
parent 42ed37d0
......@@ -4976,15 +4976,6 @@ void MacroAssembler::AssertStackIsAligned() {
}
}
void MacroAssembler::UntagAndJumpIfSmi(Register dst,
Register src,
Label* smi_case) {
UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire();
JumpIfSmi(src, smi_case, scratch, USE_DELAY_SLOT);
SmiUntag(dst, src);
}
void TurboAssembler::JumpIfSmi(Register value, Label* smi_label,
Register scratch, BranchDelaySlot bd) {
DCHECK_EQ(0, kSmiTag);
......@@ -5001,19 +4992,6 @@ void MacroAssembler::JumpIfNotSmi(Register value,
Branch(bd, not_smi_label, ne, scratch, Operand(zero_reg));
}
void MacroAssembler::JumpIfEitherSmi(Register reg1,
Register reg2,
Label* on_either_smi) {
STATIC_ASSERT(kSmiTag == 0);
DCHECK_EQ(1, kSmiTagMask);
// Both Smi tags must be 1 (not Smi).
UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire();
and_(scratch, reg1, reg2);
JumpIfSmi(scratch, on_either_smi);
}
void MacroAssembler::AssertNotSmi(Register object) {
if (emit_debug_code()) {
STATIC_ASSERT(kSmiTag == 0);
......
......@@ -5332,16 +5332,6 @@ void TurboAssembler::SmiUntag(Register dst, const MemOperand& src) {
}
}
void MacroAssembler::UntagAndJumpIfSmi(Register dst,
Register src,
Label* smi_case) {
// DCHECK(dst!=src);
UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire();
JumpIfSmi(src, smi_case, scratch, USE_DELAY_SLOT);
SmiUntag(dst, src);
}
void TurboAssembler::JumpIfSmi(Register value, Label* smi_label,
Register scratch, BranchDelaySlot bd) {
DCHECK_EQ(0, kSmiTag);
......@@ -5358,24 +5348,6 @@ void MacroAssembler::JumpIfNotSmi(Register value,
Branch(bd, not_smi_label, ne, scratch, Operand(zero_reg));
}
void MacroAssembler::JumpIfEitherSmi(Register reg1,
Register reg2,
Label* on_either_smi) {
STATIC_ASSERT(kSmiTag == 0);
// TODO(plind): Find some better to fix this assert issue.
#if defined(__APPLE__)
DCHECK_EQ(1, kSmiTagMask);
#else
DCHECK_EQ((int64_t)1, kSmiTagMask);
#endif
// Both Smi tags must be 1 (not Smi).
UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire();
and_(scratch, reg1, reg2);
JumpIfSmi(scratch, on_either_smi);
}
void MacroAssembler::AssertNotSmi(Register object) {
if (emit_debug_code()) {
STATIC_ASSERT(kSmiTag == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment