Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 626f899bfbb04b029cb3c5005d52ab82c4f63183..94780a627f74ab3b33a361e077001fb3424bf873 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -750,7 +750,7 @@ LInstruction* LChunkBuilder::MarkAsCall(LInstruction* instr, |
instr->MarkAsCall(); |
instr = AssignPointerMap(instr); |
- if (hinstr->HasSideEffects()) { |
+ if (hinstr->HasObservableSideEffects()) { |
ASSERT(hinstr->next()->IsSimulate()); |
HSimulate* sim = HSimulate::cast(hinstr->next()); |
instr = SetInstructionPendingDeoptimizationEnvironment( |
@@ -762,7 +762,8 @@ LInstruction* LChunkBuilder::MarkAsCall(LInstruction* instr, |
// Thus we still need to attach environment to this call even if |
// call sequence can not deoptimize eagerly. |
bool needs_environment = |
- (can_deoptimize == CAN_DEOPTIMIZE_EAGERLY) || !hinstr->HasSideEffects(); |
+ (can_deoptimize == CAN_DEOPTIMIZE_EAGERLY) || |
+ !hinstr->HasObservableSideEffects(); |
if (needs_environment && !instr->HasEnvironment()) { |
instr = AssignEnvironment(instr); |
} |