OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 break; | 1138 break; |
1139 case kMips64AddS: | 1139 case kMips64AddS: |
1140 // TODO(plind): add special case: combine mult & add. | 1140 // TODO(plind): add special case: combine mult & add. |
1141 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1141 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1142 i.InputDoubleRegister(1)); | 1142 i.InputDoubleRegister(1)); |
1143 break; | 1143 break; |
1144 case kMips64SubS: | 1144 case kMips64SubS: |
1145 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1145 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1146 i.InputDoubleRegister(1)); | 1146 i.InputDoubleRegister(1)); |
1147 break; | 1147 break; |
| 1148 case kMips64SubPreserveNanS: |
| 1149 __ SubNanPreservePayloadAndSign_s(i.OutputDoubleRegister(), |
| 1150 i.InputDoubleRegister(0), |
| 1151 i.InputDoubleRegister(1)); |
| 1152 break; |
1148 case kMips64MulS: | 1153 case kMips64MulS: |
1149 // TODO(plind): add special case: right op is -1.0, see arm port. | 1154 // TODO(plind): add special case: right op is -1.0, see arm port. |
1150 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1155 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1151 i.InputDoubleRegister(1)); | 1156 i.InputDoubleRegister(1)); |
1152 break; | 1157 break; |
1153 case kMips64DivS: | 1158 case kMips64DivS: |
1154 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1159 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1155 i.InputDoubleRegister(1)); | 1160 i.InputDoubleRegister(1)); |
1156 break; | 1161 break; |
1157 case kMips64ModS: { | 1162 case kMips64ModS: { |
(...skipping 30 matching lines...) Expand all Loading... |
1188 break; | 1193 break; |
1189 case kMips64AddD: | 1194 case kMips64AddD: |
1190 // TODO(plind): add special case: combine mult & add. | 1195 // TODO(plind): add special case: combine mult & add. |
1191 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1196 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1192 i.InputDoubleRegister(1)); | 1197 i.InputDoubleRegister(1)); |
1193 break; | 1198 break; |
1194 case kMips64SubD: | 1199 case kMips64SubD: |
1195 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1200 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1196 i.InputDoubleRegister(1)); | 1201 i.InputDoubleRegister(1)); |
1197 break; | 1202 break; |
| 1203 case kMips64SubPreserveNanD: |
| 1204 __ SubNanPreservePayloadAndSign_d(i.OutputDoubleRegister(), |
| 1205 i.InputDoubleRegister(0), |
| 1206 i.InputDoubleRegister(1)); |
| 1207 break; |
1198 case kMips64MulD: | 1208 case kMips64MulD: |
1199 // TODO(plind): add special case: right op is -1.0, see arm port. | 1209 // TODO(plind): add special case: right op is -1.0, see arm port. |
1200 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1210 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1201 i.InputDoubleRegister(1)); | 1211 i.InputDoubleRegister(1)); |
1202 break; | 1212 break; |
1203 case kMips64DivD: | 1213 case kMips64DivD: |
1204 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1214 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1205 i.InputDoubleRegister(1)); | 1215 i.InputDoubleRegister(1)); |
1206 break; | 1216 break; |
1207 case kMips64ModD: { | 1217 case kMips64ModD: { |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2294 padding_size -= v8::internal::Assembler::kInstrSize; | 2304 padding_size -= v8::internal::Assembler::kInstrSize; |
2295 } | 2305 } |
2296 } | 2306 } |
2297 } | 2307 } |
2298 | 2308 |
2299 #undef __ | 2309 #undef __ |
2300 | 2310 |
2301 } // namespace compiler | 2311 } // namespace compiler |
2302 } // namespace internal | 2312 } // namespace internal |
2303 } // namespace v8 | 2313 } // namespace v8 |
OLD | NEW |