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 a844b8c0dff9ebea329fd7ade83ab261bbe3ef3e..960c7ccf2967898012bc2b42207e644fa1b93c3b 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3999,10 +3999,11 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
__ cmp(r0, r1); |
Split(eq, if_true, if_false, fall_through); |
} else { |
- Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
- CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
- Split(eq, if_true, if_false, fall_through); |
+ __ 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); |
} |
context()->Plug(if_true, if_false); |
} |