Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 3231095adba027bac1c756449d4a2c90eb7f5465..8c2687ee9c60f93328e6be893c0976dbd1521e02 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2419,16 +2419,7 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
// We need a temporary register for write barrier of the map field. |
LOperand* temp_map = needs_write_barrier_for_map ? TempRegister() : NULL; |
- LInstruction* result = |
- new(zone()) LStoreNamedField(obj, val, temp, temp_map); |
- if (!instr->access().IsExternalMemory() && |
- instr->field_representation().IsHeapObject() && |
- (val->IsConstantOperand() |
- ? HConstant::cast(instr->value())->HasSmiValue() |
- : !instr->value()->type().IsHeapObject())) { |
- result = AssignEnvironment(result); |
- } |
- return result; |
+ return new(zone()) LStoreNamedField(obj, val, temp, temp_map); |
} |