| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index 56e15119434b07777314d06eabdc0222cd5a59ae..e882655d21501d6cf94718cdff670f5a457ed6b2 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -2248,7 +2248,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;
|
| }
|
|
|
|
|
|
|