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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 break; | 922 break; |
923 case kSSEFloat32Max: | 923 case kSSEFloat32Max: |
924 ASSEMBLE_SSE_BINOP(maxss); | 924 ASSEMBLE_SSE_BINOP(maxss); |
925 break; | 925 break; |
926 case kSSEFloat32Min: | 926 case kSSEFloat32Min: |
927 ASSEMBLE_SSE_BINOP(minss); | 927 ASSEMBLE_SSE_BINOP(minss); |
928 break; | 928 break; |
929 case kSSEFloat32ToFloat64: | 929 case kSSEFloat32ToFloat64: |
930 ASSEMBLE_SSE_UNOP(Cvtss2sd); | 930 ASSEMBLE_SSE_UNOP(Cvtss2sd); |
931 break; | 931 break; |
| 932 case kSSEFloat32Round: { |
| 933 CpuFeatureScope sse_scope(masm(), SSE4_1); |
| 934 RoundingMode const mode = |
| 935 static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
| 936 __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
| 937 break; |
| 938 } |
932 case kSSEFloat64Cmp: | 939 case kSSEFloat64Cmp: |
933 ASSEMBLE_SSE_BINOP(Ucomisd); | 940 ASSEMBLE_SSE_BINOP(Ucomisd); |
934 break; | 941 break; |
935 case kSSEFloat64Add: | 942 case kSSEFloat64Add: |
936 ASSEMBLE_SSE_BINOP(addsd); | 943 ASSEMBLE_SSE_BINOP(addsd); |
937 break; | 944 break; |
938 case kSSEFloat64Sub: | 945 case kSSEFloat64Sub: |
939 ASSEMBLE_SSE_BINOP(subsd); | 946 ASSEMBLE_SSE_BINOP(subsd); |
940 break; | 947 break; |
941 case kSSEFloat64Mul: | 948 case kSSEFloat64Mul: |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1991 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1985 __ Nop(padding_size); | 1992 __ Nop(padding_size); |
1986 } | 1993 } |
1987 } | 1994 } |
1988 | 1995 |
1989 #undef __ | 1996 #undef __ |
1990 | 1997 |
1991 } // namespace compiler | 1998 } // namespace compiler |
1992 } // namespace internal | 1999 } // namespace internal |
1993 } // namespace v8 | 2000 } // namespace v8 |
OLD | NEW |