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 kSSEUint64ToFloat64: |
| 1036 if (instr->InputAt(0)->IsRegister()) { |
| 1037 __ movq(kScratchRegister, i.InputRegister(0)); |
| 1038 } else { |
| 1039 __ movq(kScratchRegister, i.InputOperand(0)); |
| 1040 } |
| 1041 __ Cvtqui2sd(i.OutputDoubleRegister(), kScratchRegister); |
| 1042 break; |
1035 case kSSEUint32ToFloat64: | 1043 case kSSEUint32ToFloat64: |
1036 if (instr->InputAt(0)->IsRegister()) { | 1044 if (instr->InputAt(0)->IsRegister()) { |
1037 __ movl(kScratchRegister, i.InputRegister(0)); | 1045 __ movl(kScratchRegister, i.InputRegister(0)); |
1038 } else { | 1046 } else { |
1039 __ movl(kScratchRegister, i.InputOperand(0)); | 1047 __ movl(kScratchRegister, i.InputOperand(0)); |
1040 } | 1048 } |
1041 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); | 1049 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); |
1042 break; | 1050 break; |
1043 case kSSEFloat64ExtractLowWord32: | 1051 case kSSEFloat64ExtractLowWord32: |
1044 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 1052 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1906 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1914 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1907 __ Nop(padding_size); | 1915 __ Nop(padding_size); |
1908 } | 1916 } |
1909 } | 1917 } |
1910 | 1918 |
1911 #undef __ | 1919 #undef __ |
1912 | 1920 |
1913 } // namespace compiler | 1921 } // namespace compiler |
1914 } // namespace internal | 1922 } // namespace internal |
1915 } // namespace v8 | 1923 } // namespace v8 |
OLD | NEW |