Index: test/cctest/test-macro-assembler-x64.cc |
diff --git a/test/cctest/test-macro-assembler-x64.cc b/test/cctest/test-macro-assembler-x64.cc |
index 7f20a8dd4bbe448feac41195801c1a46d06c25f1..d475eb5a0b11240a309b6feb54abd41e2ea81927 100644 |
--- a/test/cctest/test-macro-assembler-x64.cc |
+++ b/test/cctest/test-macro-assembler-x64.cc |
@@ -98,21 +98,13 @@ typedef int (*F0)(); |
static void EntryCode(MacroAssembler* masm) { |
// Smi constant register is callee save. |
- __ pushq(i::kSmiConstantRegister); |
__ pushq(i::kRootRegister); |
- __ InitializeSmiConstantRegister(); |
__ InitializeRootRegister(); |
} |
static void ExitCode(MacroAssembler* masm) { |
- // Return -1 if kSmiConstantRegister was clobbered during the test. |
- __ Move(rdx, Smi::FromInt(1)); |
- __ cmpq(rdx, i::kSmiConstantRegister); |
- __ movq(rdx, Immediate(-1)); |
- __ cmovq(not_equal, rax, rdx); |
__ popq(i::kRootRegister); |
- __ popq(i::kSmiConstantRegister); |
} |
@@ -556,32 +548,6 @@ TEST(SmiCheck) { |
cond = masm->CheckNonNegativeSmi(rcx); // "Positive" non-smi. |
__ j(cond, &exit); |
- // CheckIsMinSmi |
- |
- __ incq(rax); |
- __ movq(rcx, Immediate(Smi::kMaxValue)); |
- __ Integer32ToSmi(rcx, rcx); |
- cond = masm->CheckIsMinSmi(rcx); |
- __ j(cond, &exit); |
- |
- __ incq(rax); |
- __ movq(rcx, Immediate(0)); |
- __ Integer32ToSmi(rcx, rcx); |
- cond = masm->CheckIsMinSmi(rcx); |
- __ j(cond, &exit); |
- |
- __ incq(rax); |
- __ movq(rcx, Immediate(Smi::kMinValue)); |
- __ Integer32ToSmi(rcx, rcx); |
- cond = masm->CheckIsMinSmi(rcx); |
- __ j(NegateCondition(cond), &exit); |
- |
- __ incq(rax); |
- __ movq(rcx, Immediate(Smi::kMinValue + 1)); |
- __ Integer32ToSmi(rcx, rcx); |
- cond = masm->CheckIsMinSmi(rcx); |
- __ j(cond, &exit); |
- |
// CheckBothSmi |
__ incq(rax); |