| 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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); | 1025 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 1026 } | 1026 } |
| 1027 break; | 1027 break; |
| 1028 case kSSEInt64ToFloat64: | 1028 case kSSEInt64ToFloat64: |
| 1029 if (instr->InputAt(0)->IsRegister()) { | 1029 if (instr->InputAt(0)->IsRegister()) { |
| 1030 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 1030 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1031 } else { | 1031 } else { |
| 1032 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 1032 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 1033 } | 1033 } |
| 1034 break; | 1034 break; |
| 1035 case kSSEUint64ToFloat32: |
| 1036 if (instr->InputAt(0)->IsRegister()) { |
| 1037 __ movq(kScratchRegister, i.InputRegister(0)); |
| 1038 } else { |
| 1039 __ movq(kScratchRegister, i.InputOperand(0)); |
| 1040 } |
| 1041 __ Cvtqui2ss(i.OutputDoubleRegister(), kScratchRegister, |
| 1042 i.TempRegister(0)); |
| 1043 break; |
| 1035 case kSSEUint64ToFloat64: | 1044 case kSSEUint64ToFloat64: |
| 1036 if (instr->InputAt(0)->IsRegister()) { | 1045 if (instr->InputAt(0)->IsRegister()) { |
| 1037 __ movq(kScratchRegister, i.InputRegister(0)); | 1046 __ movq(kScratchRegister, i.InputRegister(0)); |
| 1038 } else { | 1047 } else { |
| 1039 __ movq(kScratchRegister, i.InputOperand(0)); | 1048 __ movq(kScratchRegister, i.InputOperand(0)); |
| 1040 } | 1049 } |
| 1041 __ Cvtqui2sd(i.OutputDoubleRegister(), kScratchRegister); | 1050 __ Cvtqui2sd(i.OutputDoubleRegister(), kScratchRegister); |
| 1042 break; | 1051 break; |
| 1043 case kSSEUint32ToFloat64: | 1052 case kSSEUint32ToFloat64: |
| 1044 if (instr->InputAt(0)->IsRegister()) { | 1053 if (instr->InputAt(0)->IsRegister()) { |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1923 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1915 __ Nop(padding_size); | 1924 __ Nop(padding_size); |
| 1916 } | 1925 } |
| 1917 } | 1926 } |
| 1918 | 1927 |
| 1919 #undef __ | 1928 #undef __ |
| 1920 | 1929 |
| 1921 } // namespace compiler | 1930 } // namespace compiler |
| 1922 } // namespace internal | 1931 } // namespace internal |
| 1923 } // namespace v8 | 1932 } // namespace v8 |
| OLD | NEW |