| 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/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // Move output to stack and clean up. | 346 // Move output to stack and clean up. |
| 347 __ fstp(1); | 347 __ fstp(1); |
| 348 __ fstp_d(Operand(esp, 0)); | 348 __ fstp_d(Operand(esp, 0)); |
| 349 __ movsd(i.OutputDoubleRegister(), Operand(esp, 0)); | 349 __ movsd(i.OutputDoubleRegister(), Operand(esp, 0)); |
| 350 __ add(esp, Immediate(kDoubleSize)); | 350 __ add(esp, Immediate(kDoubleSize)); |
| 351 break; | 351 break; |
| 352 } | 352 } |
| 353 case kSSEFloat64Sqrt: | 353 case kSSEFloat64Sqrt: |
| 354 __ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0)); | 354 __ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 355 break; | 355 break; |
| 356 case kSSEFloat64Floor: { |
| 357 CpuFeatureScope sse_scope(masm(), SSE4_1); |
| 358 __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
| 359 v8::internal::Assembler::kRoundDown); |
| 360 break; |
| 361 } |
| 362 case kSSEFloat64Ceil: { |
| 363 CpuFeatureScope sse_scope(masm(), SSE4_1); |
| 364 __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
| 365 v8::internal::Assembler::kRoundUp); |
| 366 break; |
| 367 } |
| 368 case kSSEFloat64RoundTruncate: { |
| 369 CpuFeatureScope sse_scope(masm(), SSE4_1); |
| 370 __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
| 371 v8::internal::Assembler::kRoundToZero); |
| 372 break; |
| 373 } |
| 356 case kSSECvtss2sd: | 374 case kSSECvtss2sd: |
| 357 __ cvtss2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 375 __ cvtss2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 358 break; | 376 break; |
| 359 case kSSECvtsd2ss: | 377 case kSSECvtsd2ss: |
| 360 __ cvtsd2ss(i.OutputDoubleRegister(), i.InputOperand(0)); | 378 __ cvtsd2ss(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 361 break; | 379 break; |
| 362 case kSSEFloat64ToInt32: | 380 case kSSEFloat64ToInt32: |
| 363 __ cvttsd2si(i.OutputRegister(), i.InputOperand(0)); | 381 __ cvttsd2si(i.OutputRegister(), i.InputOperand(0)); |
| 364 break; | 382 break; |
| 365 case kSSEFloat64ToUint32: { | 383 case kSSEFloat64ToUint32: { |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 } | 1051 } |
| 1034 } | 1052 } |
| 1035 MarkLazyDeoptSite(); | 1053 MarkLazyDeoptSite(); |
| 1036 } | 1054 } |
| 1037 | 1055 |
| 1038 #undef __ | 1056 #undef __ |
| 1039 | 1057 |
| 1040 } // namespace compiler | 1058 } // namespace compiler |
| 1041 } // namespace internal | 1059 } // namespace internal |
| 1042 } // namespace v8 | 1060 } // namespace v8 |
| OLD | NEW |