Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 562443004: [turbofan] Fix double register swap in ARM and ARM64 backends. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698