| 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/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 __ AssertZeroExtended(i.OutputRegister()); | 946 __ AssertZeroExtended(i.OutputRegister()); |
| 947 break; | 947 break; |
| 948 } | 948 } |
| 949 case kSSEInt32ToFloat64: | 949 case kSSEInt32ToFloat64: |
| 950 if (instr->InputAt(0)->IsRegister()) { | 950 if (instr->InputAt(0)->IsRegister()) { |
| 951 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 951 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 952 } else { | 952 } else { |
| 953 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 953 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 954 } | 954 } |
| 955 break; | 955 break; |
| 956 case kSSEInt64ToFloat32: |
| 957 if (instr->InputAt(0)->IsRegister()) { |
| 958 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 959 } else { |
| 960 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 961 } |
| 962 break; |
| 956 case kSSEInt64ToFloat64: | 963 case kSSEInt64ToFloat64: |
| 957 if (instr->InputAt(0)->IsRegister()) { | 964 if (instr->InputAt(0)->IsRegister()) { |
| 958 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 965 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 959 } else { | 966 } else { |
| 960 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 967 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 961 } | 968 } |
| 962 break; | 969 break; |
| 963 case kSSEUint32ToFloat64: | 970 case kSSEUint32ToFloat64: |
| 964 if (instr->InputAt(0)->IsRegister()) { | 971 if (instr->InputAt(0)->IsRegister()) { |
| 965 __ movl(kScratchRegister, i.InputRegister(0)); | 972 __ movl(kScratchRegister, i.InputRegister(0)); |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1859 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1853 __ Nop(padding_size); | 1860 __ Nop(padding_size); |
| 1854 } | 1861 } |
| 1855 } | 1862 } |
| 1856 | 1863 |
| 1857 #undef __ | 1864 #undef __ |
| 1858 | 1865 |
| 1859 } // namespace compiler | 1866 } // namespace compiler |
| 1860 } // namespace internal | 1867 } // namespace internal |
| 1861 } // namespace v8 | 1868 } // namespace v8 |
| OLD | NEW |