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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); | 947 __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
948 break; | 948 break; |
949 } | 949 } |
950 case kSSEFloat32ToInt32: | 950 case kSSEFloat32ToInt32: |
951 if (instr->InputAt(0)->IsDoubleRegister()) { | 951 if (instr->InputAt(0)->IsDoubleRegister()) { |
952 __ Cvttss2si(i.OutputRegister(), i.InputDoubleRegister(0)); | 952 __ Cvttss2si(i.OutputRegister(), i.InputDoubleRegister(0)); |
953 } else { | 953 } else { |
954 __ Cvttss2si(i.OutputRegister(), i.InputOperand(0)); | 954 __ Cvttss2si(i.OutputRegister(), i.InputOperand(0)); |
955 } | 955 } |
956 break; | 956 break; |
| 957 case kSSEFloat32ToUint32: { |
| 958 if (instr->InputAt(0)->IsDoubleRegister()) { |
| 959 __ Cvttss2siq(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 960 } else { |
| 961 __ Cvttss2siq(i.OutputRegister(), i.InputOperand(0)); |
| 962 } |
| 963 __ AssertZeroExtended(i.OutputRegister()); |
| 964 break; |
| 965 } |
957 case kSSEFloat64Cmp: | 966 case kSSEFloat64Cmp: |
958 ASSEMBLE_SSE_BINOP(Ucomisd); | 967 ASSEMBLE_SSE_BINOP(Ucomisd); |
959 break; | 968 break; |
960 case kSSEFloat64Add: | 969 case kSSEFloat64Add: |
961 ASSEMBLE_SSE_BINOP(addsd); | 970 ASSEMBLE_SSE_BINOP(addsd); |
962 break; | 971 break; |
963 case kSSEFloat64Sub: | 972 case kSSEFloat64Sub: |
964 ASSEMBLE_SSE_BINOP(subsd); | 973 ASSEMBLE_SSE_BINOP(subsd); |
965 break; | 974 break; |
966 case kSSEFloat64Mul: | 975 case kSSEFloat64Mul: |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2135 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2144 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2136 __ Nop(padding_size); | 2145 __ Nop(padding_size); |
2137 } | 2146 } |
2138 } | 2147 } |
2139 | 2148 |
2140 #undef __ | 2149 #undef __ |
2141 | 2150 |
2142 } // namespace compiler | 2151 } // namespace compiler |
2143 } // namespace internal | 2152 } // namespace internal |
2144 } // namespace v8 | 2153 } // namespace v8 |
OLD | NEW |