Chromium Code Reviews| 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 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
| 7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
| 10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 824 __ li(at, Operand(bit_cast<int32_t>(src.ToFloat32()))); | 824 __ li(at, Operand(bit_cast<int32_t>(src.ToFloat32()))); |
| 825 __ mtc1(at, dst); | 825 __ mtc1(at, dst); |
| 826 if (destination->IsDoubleStackSlot()) { | 826 if (destination->IsDoubleStackSlot()) { |
| 827 __ swc1(dst, g.ToMemOperand(destination)); | 827 __ swc1(dst, g.ToMemOperand(destination)); |
| 828 } | 828 } |
| 829 } else { | 829 } else { |
| 830 DCHECK_EQ(Constant::kFloat64, src.type()); | 830 DCHECK_EQ(Constant::kFloat64, src.type()); |
| 831 DoubleRegister dst = destination->IsDoubleRegister() | 831 DoubleRegister dst = destination->IsDoubleRegister() |
| 832 ? g.ToDoubleRegister(destination) | 832 ? g.ToDoubleRegister(destination) |
| 833 : kScratchDoubleReg; | 833 : kScratchDoubleReg; |
| 834 __ Move(dst, src.ToFloat64()); | 834 __ Move(dst, src.ToFloat64(), true); |
|
paul.l...
2014/10/10 15:34:14
nit: the bool at the call site here is a bit confu
| |
| 835 if (destination->IsDoubleStackSlot()) { | 835 if (destination->IsDoubleStackSlot()) { |
| 836 __ sdc1(dst, g.ToMemOperand(destination)); | 836 __ sdc1(dst, g.ToMemOperand(destination)); |
| 837 } | 837 } |
| 838 } | 838 } |
| 839 } else if (source->IsDoubleRegister()) { | 839 } else if (source->IsDoubleRegister()) { |
| 840 FPURegister src = g.ToDoubleRegister(source); | 840 FPURegister src = g.ToDoubleRegister(source); |
| 841 if (destination->IsDoubleRegister()) { | 841 if (destination->IsDoubleRegister()) { |
| 842 FPURegister dst = g.ToDoubleRegister(destination); | 842 FPURegister dst = g.ToDoubleRegister(destination); |
| 843 __ Move(dst, src); | 843 __ Move(dst, src); |
| 844 } else { | 844 } else { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 954 } | 954 } |
| 955 } | 955 } |
| 956 MarkLazyDeoptSite(); | 956 MarkLazyDeoptSite(); |
| 957 } | 957 } |
| 958 | 958 |
| 959 #undef __ | 959 #undef __ |
| 960 | 960 |
| 961 } // namespace compiler | 961 } // namespace compiler |
| 962 } // namespace internal | 962 } // namespace internal |
| 963 } // namespace v8 | 963 } // namespace v8 |
| OLD | NEW |