| 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 i.TempRegister(0)); | 1244 i.TempRegister(0)); |
| 1245 break; | 1245 break; |
| 1246 case kSSEUint32ToFloat64: | 1246 case kSSEUint32ToFloat64: |
| 1247 if (instr->InputAt(0)->IsRegister()) { | 1247 if (instr->InputAt(0)->IsRegister()) { |
| 1248 __ movl(kScratchRegister, i.InputRegister(0)); | 1248 __ movl(kScratchRegister, i.InputRegister(0)); |
| 1249 } else { | 1249 } else { |
| 1250 __ movl(kScratchRegister, i.InputOperand(0)); | 1250 __ movl(kScratchRegister, i.InputOperand(0)); |
| 1251 } | 1251 } |
| 1252 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); | 1252 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); |
| 1253 break; | 1253 break; |
| 1254 case kSSEUint32ToFloat32: |
| 1255 if (instr->InputAt(0)->IsRegister()) { |
| 1256 __ movl(kScratchRegister, i.InputRegister(0)); |
| 1257 } else { |
| 1258 __ movl(kScratchRegister, i.InputOperand(0)); |
| 1259 } |
| 1260 __ Cvtqsi2ss(i.OutputDoubleRegister(), kScratchRegister); |
| 1261 break; |
| 1254 case kSSEFloat64ExtractLowWord32: | 1262 case kSSEFloat64ExtractLowWord32: |
| 1255 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 1263 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
| 1256 __ movl(i.OutputRegister(), i.InputOperand(0)); | 1264 __ movl(i.OutputRegister(), i.InputOperand(0)); |
| 1257 } else { | 1265 } else { |
| 1258 __ Movd(i.OutputRegister(), i.InputDoubleRegister(0)); | 1266 __ Movd(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 1259 } | 1267 } |
| 1260 break; | 1268 break; |
| 1261 case kSSEFloat64ExtractHighWord32: | 1269 case kSSEFloat64ExtractHighWord32: |
| 1262 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 1270 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
| 1263 __ movl(i.OutputRegister(), i.InputOperand(0, kDoubleSize / 2)); | 1271 __ movl(i.OutputRegister(), i.InputOperand(0, kDoubleSize / 2)); |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2143 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2136 __ Nop(padding_size); | 2144 __ Nop(padding_size); |
| 2137 } | 2145 } |
| 2138 } | 2146 } |
| 2139 | 2147 |
| 2140 #undef __ | 2148 #undef __ |
| 2141 | 2149 |
| 2142 } // namespace compiler | 2150 } // namespace compiler |
| 2143 } // namespace internal | 2151 } // namespace internal |
| 2144 } // namespace v8 | 2152 } // namespace v8 |
| OLD | NEW |