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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |