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

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

Issue 633373002: [turbofan] Fix typo in IA-32 code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « no previous file | 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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 __ pop(dst); 983 __ pop(dst);
984 __ pop(src); 984 __ pop(src);
985 } else if (source->IsDoubleRegister() && destination->IsDoubleRegister()) { 985 } else if (source->IsDoubleRegister() && destination->IsDoubleRegister()) {
986 // XMM register-register swap. We rely on having xmm0 986 // XMM register-register swap. We rely on having xmm0
987 // available as a fixed scratch register. 987 // available as a fixed scratch register.
988 XMMRegister src = g.ToDoubleRegister(source); 988 XMMRegister src = g.ToDoubleRegister(source);
989 XMMRegister dst = g.ToDoubleRegister(destination); 989 XMMRegister dst = g.ToDoubleRegister(destination);
990 __ movaps(xmm0, src); 990 __ movaps(xmm0, src);
991 __ movaps(src, dst); 991 __ movaps(src, dst);
992 __ movaps(dst, xmm0); 992 __ movaps(dst, xmm0);
993 } else if (source->IsDoubleRegister() && source->IsDoubleStackSlot()) { 993 } else if (source->IsDoubleRegister() && destination->IsDoubleStackSlot()) {
994 // XMM register-memory swap. We rely on having xmm0 994 // XMM register-memory swap. We rely on having xmm0
995 // available as a fixed scratch register. 995 // available as a fixed scratch register.
996 XMMRegister reg = g.ToDoubleRegister(source); 996 XMMRegister reg = g.ToDoubleRegister(source);
997 Operand other = g.ToOperand(destination); 997 Operand other = g.ToOperand(destination);
998 __ movsd(xmm0, other); 998 __ movsd(xmm0, other);
999 __ movsd(other, reg); 999 __ movsd(other, reg);
1000 __ movaps(reg, xmm0); 1000 __ movaps(reg, xmm0);
1001 } else if (source->IsDoubleStackSlot() && destination->IsDoubleStackSlot()) { 1001 } else if (source->IsDoubleStackSlot() && destination->IsDoubleStackSlot()) {
1002 // Double-width memory-to-memory. 1002 // Double-width memory-to-memory.
1003 Operand src0 = g.ToOperand(source); 1003 Operand src0 = g.ToOperand(source);
(...skipping 28 matching lines...) Expand all
1032 } 1032 }
1033 } 1033 }
1034 MarkLazyDeoptSite(); 1034 MarkLazyDeoptSite();
1035 } 1035 }
1036 1036
1037 #undef __ 1037 #undef __
1038 1038
1039 } // namespace compiler 1039 } // namespace compiler
1040 } // namespace internal 1040 } // namespace internal
1041 } // namespace v8 1041 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698