| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "lithium-allocator-inl.h" | 7 #include "lithium-allocator-inl.h" |
| 8 #include "arm/lithium-arm.h" | 8 #include "arm/lithium-arm.h" |
| 9 #include "arm/lithium-codegen-arm.h" | 9 #include "arm/lithium-codegen-arm.h" |
| 10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
| (...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 val = UseTempRegister(instr->value()); | 2290 val = UseTempRegister(instr->value()); |
| 2291 } else if (instr->field_representation().IsDouble()) { | 2291 } else if (instr->field_representation().IsDouble()) { |
| 2292 val = UseRegisterAtStart(instr->value()); | 2292 val = UseRegisterAtStart(instr->value()); |
| 2293 } else { | 2293 } else { |
| 2294 val = UseRegister(instr->value()); | 2294 val = UseRegister(instr->value()); |
| 2295 } | 2295 } |
| 2296 | 2296 |
| 2297 // We need a temporary register for write barrier of the map field. | 2297 // We need a temporary register for write barrier of the map field. |
| 2298 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; | 2298 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; |
| 2299 | 2299 |
| 2300 return new(zone()) LStoreNamedField(obj, val, temp); | 2300 LInstruction* result = new(zone()) LStoreNamedField(obj, val, temp); |
| 2301 if (!instr->access().IsExternalMemory() && |
| 2302 instr->field_representation().IsHeapObject() && |
| 2303 !instr->value()->type().IsHeapObject()) { |
| 2304 result = AssignEnvironment(result); |
| 2305 } |
| 2306 return result; |
| 2301 } | 2307 } |
| 2302 | 2308 |
| 2303 | 2309 |
| 2304 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2310 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 2305 LOperand* context = UseFixed(instr->context(), cp); | 2311 LOperand* context = UseFixed(instr->context(), cp); |
| 2306 LOperand* obj = UseFixed(instr->object(), r1); | 2312 LOperand* obj = UseFixed(instr->object(), r1); |
| 2307 LOperand* val = UseFixed(instr->value(), r0); | 2313 LOperand* val = UseFixed(instr->value(), r0); |
| 2308 | 2314 |
| 2309 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2315 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); |
| 2310 return MarkAsCall(result, instr); | 2316 return MarkAsCall(result, instr); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 | 2556 |
| 2551 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2552 LOperand* object = UseRegister(instr->object()); | 2558 LOperand* object = UseRegister(instr->object()); |
| 2553 LOperand* index = UseTempRegister(instr->index()); | 2559 LOperand* index = UseTempRegister(instr->index()); |
| 2554 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2555 LInstruction* result = DefineSameAsFirst(load); | 2561 LInstruction* result = DefineSameAsFirst(load); |
| 2556 return AssignPointerMap(result); | 2562 return AssignPointerMap(result); |
| 2557 } | 2563 } |
| 2558 | 2564 |
| 2559 } } // namespace v8::internal | 2565 } } // namespace v8::internal |
| OLD | NEW |