Index: src/x64/lithium-codegen-x64.cc |
=================================================================== |
--- src/x64/lithium-codegen-x64.cc (revision 7823) |
+++ src/x64/lithium-codegen-x64.cc (working copy) |
@@ -2394,8 +2394,10 @@ |
FixedArray::kHeaderSize)); |
// Check for the hole value. |
- __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
- DeoptimizeIf(equal, instr->environment()); |
+ if (instr->check_hole_value()) { |
+ __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
+ DeoptimizeIf(equal, instr->environment()); |
+ } |
} |