| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index b26a88217f38672ff8b0dd54d0dab23a02eb56f4..c9201a80708139b6b4c2922c0a09945cd9bdcf92 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -2297,7 +2297,13 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
|
| // We need a temporary register for write barrier of the map field.
|
| LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL;
|
|
|
| - return new(zone()) LStoreNamedField(obj, val, temp);
|
| + LInstruction* result = new(zone()) LStoreNamedField(obj, val, temp);
|
| + if (!instr->access().IsExternalMemory() &&
|
| + instr->field_representation().IsHeapObject() &&
|
| + !instr->value()->type().IsHeapObject()) {
|
| + result = AssignEnvironment(result);
|
| + }
|
| + return result;
|
| }
|
|
|
|
|
|
|