| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index d1c77311ecf9da440af7748ffbf7567f6e5c78c2..90f9a1a236f72eb1b23dac9fcea4262acb986b43 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -652,6 +652,8 @@ LInstruction* LChunkBuilder::MarkAsCall(LInstruction* instr,
|
| !hinstr->HasObservableSideEffects();
|
| if (needs_environment && !instr->HasEnvironment()) {
|
| instr = AssignEnvironment(instr);
|
| + // We can't really figure out if the environment is needed or not.
|
| + instr->environment()->set_has_been_used();
|
| }
|
|
|
| return instr;
|
| @@ -1857,10 +1859,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
| LOperand* xmm_temp = truncating ? NULL : FixedTemp(xmm1);
|
| LInstruction* result =
|
| DefineSameAsFirst(new(zone()) LTaggedToI(value, xmm_temp));
|
| - if (!val->representation().IsSmi()) {
|
| - // Note: Only deopts in deferred code.
|
| - result = AssignEnvironment(result);
|
| - }
|
| + if (!val->representation().IsSmi()) result = AssignEnvironment(result);
|
| return result;
|
| }
|
| }
|
| @@ -1955,11 +1954,10 @@ LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
|
| value = UseRegisterAtStart(instr->value());
|
| if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
|
| }
|
| - LCheckMaps* result = new(zone()) LCheckMaps(value);
|
| + LInstruction* result = new(zone()) LCheckMaps(value);
|
| if (!instr->CanOmitMapChecks()) {
|
| - // Note: Only deopts in deferred code.
|
| - AssignEnvironment(result);
|
| - if (instr->has_migration_target()) return AssignPointerMap(result);
|
| + result = AssignEnvironment(result);
|
| + if (instr->has_migration_target()) result = AssignPointerMap(result);
|
| }
|
| return result;
|
| }
|
|
|