OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 __ Str(temp_0, dst); | 830 __ Str(temp_0, dst); |
831 __ Str(temp_1, src); | 831 __ Str(temp_1, src); |
832 } else if (source->IsDoubleRegister()) { | 832 } else if (source->IsDoubleRegister()) { |
833 UseScratchRegisterScope scope(masm()); | 833 UseScratchRegisterScope scope(masm()); |
834 FPRegister temp = scope.AcquireD(); | 834 FPRegister temp = scope.AcquireD(); |
835 FPRegister src = g.ToDoubleRegister(source); | 835 FPRegister src = g.ToDoubleRegister(source); |
836 if (destination->IsDoubleRegister()) { | 836 if (destination->IsDoubleRegister()) { |
837 FPRegister dst = g.ToDoubleRegister(destination); | 837 FPRegister dst = g.ToDoubleRegister(destination); |
838 __ Fmov(temp, src); | 838 __ Fmov(temp, src); |
839 __ Fmov(src, dst); | 839 __ Fmov(src, dst); |
840 __ Fmov(src, temp); | 840 __ Fmov(dst, temp); |
841 } else { | 841 } else { |
842 DCHECK(destination->IsDoubleStackSlot()); | 842 DCHECK(destination->IsDoubleStackSlot()); |
843 MemOperand dst = g.ToMemOperand(destination, masm()); | 843 MemOperand dst = g.ToMemOperand(destination, masm()); |
844 __ Fmov(temp, src); | 844 __ Fmov(temp, src); |
845 __ Ldr(src, dst); | 845 __ Ldr(src, dst); |
846 __ Str(temp, dst); | 846 __ Str(temp, dst); |
847 } | 847 } |
848 } else { | 848 } else { |
849 // No other combinations are possible. | 849 // No other combinations are possible. |
850 UNREACHABLE(); | 850 UNREACHABLE(); |
851 } | 851 } |
852 } | 852 } |
853 | 853 |
854 | 854 |
855 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 855 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
856 | 856 |
857 #undef __ | 857 #undef __ |
858 | 858 |
859 } // namespace compiler | 859 } // namespace compiler |
860 } // namespace internal | 860 } // namespace internal |
861 } // namespace v8 | 861 } // namespace v8 |
OLD | NEW |