Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 0af2ce4fc46fb7e71c36b81eec8dbc26fc96eac2..54c22a4f123a2defab719b29be87fb06e167cb52 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -745,7 +745,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( |
@@ -757,7 +757,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); |
} |