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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 break; | 1013 break; |
1014 case kSSEFloat64ToUint32: { | 1014 case kSSEFloat64ToUint32: { |
1015 if (instr->InputAt(0)->IsDoubleRegister()) { | 1015 if (instr->InputAt(0)->IsDoubleRegister()) { |
1016 __ Cvttsd2siq(i.OutputRegister(), i.InputDoubleRegister(0)); | 1016 __ Cvttsd2siq(i.OutputRegister(), i.InputDoubleRegister(0)); |
1017 } else { | 1017 } else { |
1018 __ Cvttsd2siq(i.OutputRegister(), i.InputOperand(0)); | 1018 __ Cvttsd2siq(i.OutputRegister(), i.InputOperand(0)); |
1019 } | 1019 } |
1020 __ AssertZeroExtended(i.OutputRegister()); | 1020 __ AssertZeroExtended(i.OutputRegister()); |
1021 break; | 1021 break; |
1022 } | 1022 } |
| 1023 case kSSEFloat64ToInt64: |
| 1024 if (instr->InputAt(0)->IsDoubleRegister()) { |
| 1025 __ Cvttsd2siq(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 1026 } else { |
| 1027 __ Cvttsd2siq(i.OutputRegister(), i.InputOperand(0)); |
| 1028 } |
| 1029 break; |
1023 case kSSEInt32ToFloat64: | 1030 case kSSEInt32ToFloat64: |
1024 if (instr->InputAt(0)->IsRegister()) { | 1031 if (instr->InputAt(0)->IsRegister()) { |
1025 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 1032 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
1026 } else { | 1033 } else { |
1027 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 1034 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
1028 } | 1035 } |
1029 break; | 1036 break; |
1030 case kSSEInt64ToFloat32: | 1037 case kSSEInt64ToFloat32: |
1031 if (instr->InputAt(0)->IsRegister()) { | 1038 if (instr->InputAt(0)->IsRegister()) { |
1032 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); | 1039 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1933 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1940 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1934 __ Nop(padding_size); | 1941 __ Nop(padding_size); |
1935 } | 1942 } |
1936 } | 1943 } |
1937 | 1944 |
1938 #undef __ | 1945 #undef __ |
1939 | 1946 |
1940 } // namespace compiler | 1947 } // namespace compiler |
1941 } // namespace internal | 1948 } // namespace internal |
1942 } // namespace v8 | 1949 } // namespace v8 |
OLD | NEW |