Index: src/arm/lithium-codegen-arm.cc |
=================================================================== |
--- src/arm/lithium-codegen-arm.cc (revision 7823) |
+++ src/arm/lithium-codegen-arm.cc (working copy) |
@@ -2473,9 +2473,11 @@ |
__ ldr(result, FieldMemOperand(scratch, FixedArray::kHeaderSize)); |
// Check for the hole value. |
- __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
- __ cmp(result, scratch); |
- DeoptimizeIf(eq, instr->environment()); |
+ if (instr->hydrogen()->check_hole_value()) { |
+ __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
+ __ cmp(result, scratch); |
+ DeoptimizeIf(eq, instr->environment()); |
+ } |
} |