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 fbfce64eea193854e79a59f1c1bd194bbd6bcf6e..02043c5845935ff722daa32fa0911f98823506c9 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -4935,8 +4935,8 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
} else { |
Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ cmp(r0, Operand(0)); |
- Split(ne, if_true, if_false, fall_through); |
+ __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
+ Split(eq, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |