| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index 8981c4d3284366aa63230e63a5ea97513f1d4936..702f3ba8ab12423d3a05b99ccab1787a61918129 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -2440,13 +2440,14 @@ LInstruction* LChunkBuilder::DoTrapAllocationMemento(
|
|
|
|
|
| LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
|
| + bool is_in_object = instr->access().IsInobject();
|
| bool needs_write_barrier = instr->NeedsWriteBarrier();
|
| bool needs_write_barrier_for_map = !instr->transition().is_null() &&
|
| instr->NeedsWriteBarrierForMap();
|
|
|
| LOperand* obj;
|
| if (needs_write_barrier) {
|
| - obj = instr->is_in_object()
|
| + obj = is_in_object
|
| ? UseRegister(instr->object())
|
| : UseTempRegister(instr->object());
|
| } else {
|
| @@ -2479,7 +2480,7 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
|
|
|
| // We only need a scratch register if we have a write barrier or we
|
| // have a store into the properties array (not in-object-property).
|
| - LOperand* temp = (!instr->is_in_object() || needs_write_barrier ||
|
| + LOperand* temp = (!is_in_object || needs_write_barrier ||
|
| needs_write_barrier_for_map) ? TempRegister() : NULL;
|
|
|
| // We need a temporary register for write barrier of the map field.
|
|
|