OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "arm64/lithium-arm64.h" | 8 #include "arm64/lithium-arm64.h" |
9 #include "arm64/lithium-codegen-arm64.h" | 9 #include "arm64/lithium-codegen-arm64.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 temp1 = TempRegister(); | 2239 temp1 = TempRegister(); |
2240 } else if (instr->NeedsWriteBarrierForMap()) { | 2240 } else if (instr->NeedsWriteBarrierForMap()) { |
2241 value = UseRegister(instr->value()); | 2241 value = UseRegister(instr->value()); |
2242 temp0 = TempRegister(); | 2242 temp0 = TempRegister(); |
2243 temp1 = TempRegister(); | 2243 temp1 = TempRegister(); |
2244 } else { | 2244 } else { |
2245 value = UseRegister(instr->value()); | 2245 value = UseRegister(instr->value()); |
2246 temp0 = TempRegister(); | 2246 temp0 = TempRegister(); |
2247 } | 2247 } |
2248 | 2248 |
2249 return new(zone()) LStoreNamedField(object, value, temp0, temp1); | 2249 LStoreNamedField* result = |
| 2250 new(zone()) LStoreNamedField(object, value, temp0, temp1); |
| 2251 if (instr->field_representation().IsHeapObject() && |
| 2252 !instr->value()->type().IsHeapObject()) { |
| 2253 return AssignEnvironment(result); |
| 2254 } |
| 2255 return result; |
2250 } | 2256 } |
2251 | 2257 |
2252 | 2258 |
2253 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2259 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2254 LOperand* context = UseFixed(instr->context(), cp); | 2260 LOperand* context = UseFixed(instr->context(), cp); |
2255 LOperand* object = UseFixed(instr->object(), x1); | 2261 LOperand* object = UseFixed(instr->object(), x1); |
2256 LOperand* value = UseFixed(instr->value(), x0); | 2262 LOperand* value = UseFixed(instr->value(), x0); |
2257 LInstruction* result = new(zone()) LStoreNamedGeneric(context, object, value); | 2263 LInstruction* result = new(zone()) LStoreNamedGeneric(context, object, value); |
2258 return MarkAsCall(result, instr); | 2264 return MarkAsCall(result, instr); |
2259 } | 2265 } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2548 | 2554 |
2549 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2555 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2550 LOperand* receiver = UseRegister(instr->receiver()); | 2556 LOperand* receiver = UseRegister(instr->receiver()); |
2551 LOperand* function = UseRegister(instr->function()); | 2557 LOperand* function = UseRegister(instr->function()); |
2552 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2558 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2553 return AssignEnvironment(DefineAsRegister(result)); | 2559 return AssignEnvironment(DefineAsRegister(result)); |
2554 } | 2560 } |
2555 | 2561 |
2556 | 2562 |
2557 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
OLD | NEW |