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/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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 #if V8_TARGET_ARCH_PPC64 | 1255 #if V8_TARGET_ARCH_PPC64 |
1256 case kPPC_ModU64: | 1256 case kPPC_ModU64: |
1257 ASSEMBLE_MODULO(divdu, mulld); | 1257 ASSEMBLE_MODULO(divdu, mulld); |
1258 break; | 1258 break; |
1259 #endif | 1259 #endif |
1260 case kPPC_ModDouble: | 1260 case kPPC_ModDouble: |
1261 // TODO(bmeurer): We should really get rid of this special instruction, | 1261 // TODO(bmeurer): We should really get rid of this special instruction, |
1262 // and generate a CallAddress instruction instead. | 1262 // and generate a CallAddress instruction instead. |
1263 ASSEMBLE_FLOAT_MODULO(); | 1263 ASSEMBLE_FLOAT_MODULO(); |
1264 break; | 1264 break; |
| 1265 case kIeee754Float64Acos: |
| 1266 ASSEMBLE_IEEE754_UNOP(acos); |
| 1267 break; |
| 1268 case kIeee754Float64Acosh: |
| 1269 ASSEMBLE_IEEE754_UNOP(acosh); |
| 1270 break; |
| 1271 case kIeee754Float64Asin: |
| 1272 ASSEMBLE_IEEE754_UNOP(asin); |
| 1273 break; |
| 1274 case kIeee754Float64Asinh: |
| 1275 ASSEMBLE_IEEE754_UNOP(asinh); |
| 1276 break; |
1265 case kIeee754Float64Atan: | 1277 case kIeee754Float64Atan: |
1266 ASSEMBLE_IEEE754_UNOP(atan); | 1278 ASSEMBLE_IEEE754_UNOP(atan); |
1267 break; | 1279 break; |
1268 case kIeee754Float64Atan2: | 1280 case kIeee754Float64Atan2: |
1269 ASSEMBLE_IEEE754_BINOP(atan2); | 1281 ASSEMBLE_IEEE754_BINOP(atan2); |
1270 break; | 1282 break; |
| 1283 case kIeee754Float64Atanh: |
| 1284 ASSEMBLE_IEEE754_UNOP(atanh); |
| 1285 break; |
1271 case kIeee754Float64Tan: | 1286 case kIeee754Float64Tan: |
1272 ASSEMBLE_IEEE754_UNOP(tan); | 1287 ASSEMBLE_IEEE754_UNOP(tan); |
1273 break; | 1288 break; |
| 1289 case kIeee754Float64Tanh: |
| 1290 ASSEMBLE_IEEE754_UNOP(tanh); |
| 1291 break; |
1274 case kIeee754Float64Cbrt: | 1292 case kIeee754Float64Cbrt: |
1275 ASSEMBLE_IEEE754_UNOP(cbrt); | 1293 ASSEMBLE_IEEE754_UNOP(cbrt); |
1276 break; | 1294 break; |
1277 case kIeee754Float64Sin: | 1295 case kIeee754Float64Sin: |
1278 ASSEMBLE_IEEE754_UNOP(sin); | 1296 ASSEMBLE_IEEE754_UNOP(sin); |
1279 break; | 1297 break; |
1280 case kIeee754Float64Sinh: | 1298 case kIeee754Float64Sinh: |
1281 ASSEMBLE_IEEE754_UNOP(sinh); | 1299 ASSEMBLE_IEEE754_UNOP(sinh); |
1282 break; | 1300 break; |
1283 case kIeee754Float64Cos: | 1301 case kIeee754Float64Cos: |
1284 ASSEMBLE_IEEE754_UNOP(cos); | 1302 ASSEMBLE_IEEE754_UNOP(cos); |
1285 break; | 1303 break; |
1286 case kIeee754Float64Cosh: | 1304 case kIeee754Float64Cosh: |
1287 ASSEMBLE_IEEE754_UNOP(cosh); | 1305 ASSEMBLE_IEEE754_UNOP(cosh); |
1288 break; | 1306 break; |
1289 case kIeee754Float64Exp: | 1307 case kIeee754Float64Exp: |
1290 ASSEMBLE_IEEE754_UNOP(exp); | 1308 ASSEMBLE_IEEE754_UNOP(exp); |
1291 break; | 1309 break; |
1292 case kIeee754Float64Expm1: | 1310 case kIeee754Float64Expm1: |
1293 ASSEMBLE_IEEE754_UNOP(expm1); | 1311 ASSEMBLE_IEEE754_UNOP(expm1); |
1294 break; | 1312 break; |
1295 case kIeee754Float64Atanh: | |
1296 ASSEMBLE_IEEE754_UNOP(atanh); | |
1297 break; | |
1298 case kIeee754Float64Tanh: | |
1299 ASSEMBLE_IEEE754_UNOP(tanh); | |
1300 break; | |
1301 case kIeee754Float64Log: | 1313 case kIeee754Float64Log: |
1302 ASSEMBLE_IEEE754_UNOP(log); | 1314 ASSEMBLE_IEEE754_UNOP(log); |
1303 break; | 1315 break; |
1304 case kIeee754Float64Log1p: | 1316 case kIeee754Float64Log1p: |
1305 ASSEMBLE_IEEE754_UNOP(log1p); | 1317 ASSEMBLE_IEEE754_UNOP(log1p); |
1306 break; | 1318 break; |
1307 case kIeee754Float64Log2: | 1319 case kIeee754Float64Log2: |
1308 ASSEMBLE_IEEE754_UNOP(log2); | 1320 ASSEMBLE_IEEE754_UNOP(log2); |
1309 break; | 1321 break; |
1310 case kIeee754Float64Log10: | 1322 case kIeee754Float64Log10: |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 padding_size -= v8::internal::Assembler::kInstrSize; | 2251 padding_size -= v8::internal::Assembler::kInstrSize; |
2240 } | 2252 } |
2241 } | 2253 } |
2242 } | 2254 } |
2243 | 2255 |
2244 #undef __ | 2256 #undef __ |
2245 | 2257 |
2246 } // namespace compiler | 2258 } // namespace compiler |
2247 } // namespace internal | 2259 } // namespace internal |
2248 } // namespace v8 | 2260 } // namespace v8 |
OLD | NEW |