Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index bc46113cc82037bab44f3579d41fff24ecfc6544..de52fadda939f9e5c93be34d664355dab12ec445 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2673,7 +2673,6 @@ void LCodeGen::DoCmpHoleAndBranch(LCmpHoleAndBranch* instr) { |
void LCodeGen::DoCompareMinusZeroAndBranch(LCompareMinusZeroAndBranch* instr) { |
Representation rep = instr->hydrogen()->value()->representation(); |
ASSERT(!rep.IsInteger32()); |
- Label if_false; |
Register scratch = ToRegister(instr->temp()); |
if (rep.IsDouble()) { |
@@ -2682,24 +2681,21 @@ void LCodeGen::DoCompareMinusZeroAndBranch(LCompareMinusZeroAndBranch* instr) { |
XMMRegister xmm_scratch = double_scratch0(); |
__ xorps(xmm_scratch, xmm_scratch); |
__ ucomisd(xmm_scratch, value); |
- __ j(not_equal, &if_false); |
+ EmitFalseBranch(instr, not_equal); |
__ movmskpd(scratch, value); |
__ test(scratch, Immediate(1)); |
EmitBranch(instr, not_zero); |
} else { |
Register value = ToRegister(instr->value()); |
Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); |
- __ CheckMap(value, map, &if_false, DO_SMI_CHECK); |
+ __ CheckMap(value, map, instr->FalseLabel(chunk()), DO_SMI_CHECK); |
__ cmp(FieldOperand(value, HeapNumber::kExponentOffset), |
Immediate(0x80000000)); |
- __ j(not_equal, &if_false); |
+ EmitFalseBranch(instr, not_equal); |
__ cmp(FieldOperand(value, HeapNumber::kMantissaOffset), |
Immediate(0x00000000)); |
EmitBranch(instr, equal); |
} |
- |
- __ bind(&if_false); |
- EmitFalseBranch(instr, no_condition); |
} |