| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/arm64/delayed-masm-arm64.h" | 9 #include "src/arm64/delayed-masm-arm64.h" |
| 10 #include "src/arm64/lithium-codegen-arm64.h" | 10 #include "src/arm64/lithium-codegen-arm64.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 #define __ ACCESS_MASM(masm_) | 15 #define __ ACCESS_MASM(masm_) |
| 16 | 16 |
| 17 | 17 |
| 18 void DelayedMasm::StackSlotMove(LOperand* src, LOperand* dst) { | 18 void DelayedMasm::StackSlotMove(LOperand* src, LOperand* dst) { |
| 19 DCHECK(src->IsStackSlot()); | 19 DCHECK((src->IsStackSlot() && dst->IsStackSlot()) || |
| 20 DCHECK(dst->IsStackSlot()); | 20 (src->IsDoubleStackSlot() && dst->IsDoubleStackSlot())); |
| 21 MemOperand src_operand = cgen_->ToMemOperand(src); | 21 MemOperand src_operand = cgen_->ToMemOperand(src); |
| 22 MemOperand dst_operand = cgen_->ToMemOperand(dst); | 22 MemOperand dst_operand = cgen_->ToMemOperand(dst); |
| 23 if (pending_ == kStackSlotMove) { | 23 if (pending_ == kStackSlotMove) { |
| 24 DCHECK(pending_pc_ == masm_->pc_offset()); | 24 DCHECK(pending_pc_ == masm_->pc_offset()); |
| 25 UseScratchRegisterScope scope(masm_); | 25 UseScratchRegisterScope scope(masm_); |
| 26 DoubleRegister temp1 = scope.AcquireD(); | 26 DoubleRegister temp1 = scope.AcquireD(); |
| 27 DoubleRegister temp2 = scope.AcquireD(); | 27 DoubleRegister temp2 = scope.AcquireD(); |
| 28 switch (MemOperand::AreConsistentForPair(pending_address_src_, | 28 switch (MemOperand::AreConsistentForPair(pending_address_src_, |
| 29 src_operand)) { | 29 src_operand)) { |
| 30 case MemOperand::kNotPair: | 30 case MemOperand::kNotPair: |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 __ Str(temp, pending_address_dst_); | 189 __ Str(temp, pending_address_dst_); |
| 190 break; | 190 break; |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 ResetPending(); | 193 ResetPending(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } } // namespace v8::internal | 196 } } // namespace v8::internal |
| 197 | 197 |
| 198 #endif // V8_TARGET_ARCH_ARM64 | 198 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |