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

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

Issue 725083004: [turbofan] More aggressive reuse of spill slots in the register allocator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « src/compiler/register-allocator.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 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 __ xchgq(tmp, src); 994 __ xchgq(tmp, src);
995 __ movq(dst, tmp); 995 __ movq(dst, tmp);
996 } else if (source->IsDoubleRegister() && destination->IsDoubleRegister()) { 996 } else if (source->IsDoubleRegister() && destination->IsDoubleRegister()) {
997 // XMM register-register swap. We rely on having xmm0 997 // XMM register-register swap. We rely on having xmm0
998 // available as a fixed scratch register. 998 // available as a fixed scratch register.
999 XMMRegister src = g.ToDoubleRegister(source); 999 XMMRegister src = g.ToDoubleRegister(source);
1000 XMMRegister dst = g.ToDoubleRegister(destination); 1000 XMMRegister dst = g.ToDoubleRegister(destination);
1001 __ movsd(xmm0, src); 1001 __ movsd(xmm0, src);
1002 __ movsd(src, dst); 1002 __ movsd(src, dst);
1003 __ movsd(dst, xmm0); 1003 __ movsd(dst, xmm0);
1004 } else if (source->IsDoubleRegister() && destination->IsDoubleRegister()) { 1004 } else if (source->IsDoubleRegister() && destination->IsDoubleStackSlot()) {
1005 // XMM register-memory swap. We rely on having xmm0 1005 // XMM register-memory swap. We rely on having xmm0
1006 // available as a fixed scratch register. 1006 // available as a fixed scratch register.
1007 XMMRegister src = g.ToDoubleRegister(source); 1007 XMMRegister src = g.ToDoubleRegister(source);
1008 Operand dst = g.ToOperand(destination); 1008 Operand dst = g.ToOperand(destination);
1009 __ movsd(xmm0, src); 1009 __ movsd(xmm0, src);
1010 __ movsd(src, dst); 1010 __ movsd(src, dst);
1011 __ movsd(dst, xmm0); 1011 __ movsd(dst, xmm0);
1012 } else { 1012 } else {
1013 // No other combinations are possible. 1013 // No other combinations are possible.
1014 UNREACHABLE(); 1014 UNREACHABLE();
(...skipping 16 matching lines...) Expand all
1031 } 1031 }
1032 } 1032 }
1033 MarkLazyDeoptSite(); 1033 MarkLazyDeoptSite();
1034 } 1034 }
1035 1035
1036 #undef __ 1036 #undef __
1037 1037
1038 } // namespace internal 1038 } // namespace internal
1039 } // namespace compiler 1039 } // namespace compiler
1040 } // namespace v8 1040 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698