Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 45a60e5377dbc26e61e43ff4912943ec990a5ef3..6e6a65511a4e73df8b7379a0fc16c022f8798a7d 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -4039,11 +4039,10 @@ |
__ cmp(r0, r1); |
Split(eq, if_true, if_false, fall_through); |
} else { |
- __ JumpIfSmi(r0, if_false); |
- __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); |
- __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
- __ tst(r1, Operand(1 << Map::kIsUndetectable)); |
- Split(ne, if_true, if_false, fall_through); |
+ Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
+ CallIC(ic, expr->CompareOperationFeedbackId()); |
+ __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
+ Split(eq, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |