| 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/compilation-info.h" | 7 #include "src/compilation-info.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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 break; | 1447 break; |
| 1448 } | 1448 } |
| 1449 case kSSEFloat64Neg: { | 1449 case kSSEFloat64Neg: { |
| 1450 // TODO(bmeurer): Use RIP relative 128-bit constants. | 1450 // TODO(bmeurer): Use RIP relative 128-bit constants. |
| 1451 __ pcmpeqd(kScratchDoubleReg, kScratchDoubleReg); | 1451 __ pcmpeqd(kScratchDoubleReg, kScratchDoubleReg); |
| 1452 __ psllq(kScratchDoubleReg, 63); | 1452 __ psllq(kScratchDoubleReg, 63); |
| 1453 __ xorpd(i.OutputDoubleRegister(), kScratchDoubleReg); | 1453 __ xorpd(i.OutputDoubleRegister(), kScratchDoubleReg); |
| 1454 break; | 1454 break; |
| 1455 } | 1455 } |
| 1456 case kSSEFloat64Sqrt: | 1456 case kSSEFloat64Sqrt: |
| 1457 ASSEMBLE_SSE_UNOP(sqrtsd); | 1457 ASSEMBLE_SSE_UNOP(Sqrtsd); |
| 1458 break; | 1458 break; |
| 1459 case kSSEFloat64Round: { | 1459 case kSSEFloat64Round: { |
| 1460 CpuFeatureScope sse_scope(masm(), SSE4_1); | 1460 CpuFeatureScope sse_scope(masm(), SSE4_1); |
| 1461 RoundingMode const mode = | 1461 RoundingMode const mode = |
| 1462 static_cast<RoundingMode>(MiscField::decode(instr->opcode())); | 1462 static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
| 1463 __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); | 1463 __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
| 1464 break; | 1464 break; |
| 1465 } | 1465 } |
| 1466 case kSSEFloat64ToFloat32: | 1466 case kSSEFloat64ToFloat32: |
| 1467 ASSEMBLE_SSE_UNOP(Cvtsd2ss); | 1467 ASSEMBLE_SSE_UNOP(Cvtsd2ss); |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2718 __ Nop(padding_size); | 2718 __ Nop(padding_size); |
| 2719 } | 2719 } |
| 2720 } | 2720 } |
| 2721 | 2721 |
| 2722 #undef __ | 2722 #undef __ |
| 2723 | 2723 |
| 2724 } // namespace compiler | 2724 } // namespace compiler |
| 2725 } // namespace internal | 2725 } // namespace internal |
| 2726 } // namespace v8 | 2726 } // namespace v8 |
| OLD | NEW |