| 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 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 LOperand* temp0 = NULL; | 2364 LOperand* temp0 = NULL; |
| 2365 LOperand* temp1 = NULL; | 2365 LOperand* temp1 = NULL; |
| 2366 | 2366 |
| 2367 if (instr->access().IsExternalMemory() || | 2367 if (instr->access().IsExternalMemory() || |
| 2368 instr->field_representation().IsDouble()) { | 2368 instr->field_representation().IsDouble()) { |
| 2369 value = UseRegister(instr->value()); | 2369 value = UseRegister(instr->value()); |
| 2370 } else if (instr->NeedsWriteBarrier()) { | 2370 } else if (instr->NeedsWriteBarrier()) { |
| 2371 value = UseRegisterAndClobber(instr->value()); | 2371 value = UseRegisterAndClobber(instr->value()); |
| 2372 temp0 = TempRegister(); | 2372 temp0 = TempRegister(); |
| 2373 temp1 = TempRegister(); | 2373 temp1 = TempRegister(); |
| 2374 } else if (instr->NeedsWriteBarrierForMap()) { | |
| 2375 value = UseRegister(instr->value()); | |
| 2376 temp0 = TempRegister(); | |
| 2377 temp1 = TempRegister(); | |
| 2378 } else { | 2374 } else { |
| 2379 value = UseRegister(instr->value()); | 2375 value = UseRegister(instr->value()); |
| 2380 temp0 = TempRegister(); | 2376 temp0 = TempRegister(); |
| 2381 } | 2377 } |
| 2382 | 2378 |
| 2383 LStoreNamedField* result = | 2379 LStoreNamedField* result = |
| 2384 new(zone()) LStoreNamedField(object, value, temp0, temp1); | 2380 new(zone()) LStoreNamedField(object, value, temp0, temp1); |
| 2385 if (instr->field_representation().IsHeapObject() && | 2381 if (instr->field_representation().IsHeapObject() && |
| 2386 !instr->value()->type().IsHeapObject()) { | 2382 !instr->value()->type().IsHeapObject()) { |
| 2387 return AssignEnvironment(result); | 2383 return AssignEnvironment(result); |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2702 | 2698 |
| 2703 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2699 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2704 LOperand* receiver = UseRegister(instr->receiver()); | 2700 LOperand* receiver = UseRegister(instr->receiver()); |
| 2705 LOperand* function = UseRegister(instr->function()); | 2701 LOperand* function = UseRegister(instr->function()); |
| 2706 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2702 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2707 return AssignEnvironment(DefineAsRegister(result)); | 2703 return AssignEnvironment(DefineAsRegister(result)); |
| 2708 } | 2704 } |
| 2709 | 2705 |
| 2710 | 2706 |
| 2711 } } // namespace v8::internal | 2707 } } // namespace v8::internal |
| OLD | NEW |