| 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 __ bind(&done); | 1190 __ bind(&done); |
| 1191 break; | 1191 break; |
| 1192 } | 1192 } |
| 1193 case kSSEInt32ToFloat64: | 1193 case kSSEInt32ToFloat64: |
| 1194 if (instr->InputAt(0)->IsRegister()) { | 1194 if (instr->InputAt(0)->IsRegister()) { |
| 1195 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 1195 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1196 } else { | 1196 } else { |
| 1197 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 1197 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 1198 } | 1198 } |
| 1199 break; | 1199 break; |
| 1200 case kSSEInt32ToFloat32: |
| 1201 if (instr->InputAt(0)->IsRegister()) { |
| 1202 __ Cvtlsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1203 } else { |
| 1204 __ Cvtlsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 1205 } |
| 1206 break; |
| 1200 case kSSEInt64ToFloat32: | 1207 case kSSEInt64ToFloat32: |
| 1201 if (instr->InputAt(0)->IsRegister()) { | 1208 if (instr->InputAt(0)->IsRegister()) { |
| 1202 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); | 1209 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 1203 } else { | 1210 } else { |
| 1204 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); | 1211 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 1205 } | 1212 } |
| 1206 break; | 1213 break; |
| 1207 case kSSEInt64ToFloat64: | 1214 case kSSEInt64ToFloat64: |
| 1208 if (instr->InputAt(0)->IsRegister()) { | 1215 if (instr->InputAt(0)->IsRegister()) { |
| 1209 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 1216 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2121 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2128 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2122 __ Nop(padding_size); | 2129 __ Nop(padding_size); |
| 2123 } | 2130 } |
| 2124 } | 2131 } |
| 2125 | 2132 |
| 2126 #undef __ | 2133 #undef __ |
| 2127 | 2134 |
| 2128 } // namespace compiler | 2135 } // namespace compiler |
| 2129 } // namespace internal | 2136 } // namespace internal |
| 2130 } // namespace v8 | 2137 } // namespace v8 |
| OLD | NEW |