Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 2125723002: PPC/s390: [builtins] Unify most of the remaining Math builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 v8::internal::Assembler::FIDBRA_ROUND_TOWARD_POS_INF); 1239 v8::internal::Assembler::FIDBRA_ROUND_TOWARD_POS_INF);
1240 break; 1240 break;
1241 case kS390_TruncateFloat: 1241 case kS390_TruncateFloat:
1242 __ fiebra(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1242 __ fiebra(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1243 v8::internal::Assembler::FIDBRA_ROUND_TOWARD_0); 1243 v8::internal::Assembler::FIDBRA_ROUND_TOWARD_0);
1244 break; 1244 break;
1245 // Double operations 1245 // Double operations
1246 case kS390_ModDouble: 1246 case kS390_ModDouble:
1247 ASSEMBLE_FLOAT_MODULO(); 1247 ASSEMBLE_FLOAT_MODULO();
1248 break; 1248 break;
1249 case kIeee754Float64Acos:
1250 ASSEMBLE_IEEE754_UNOP(acos);
1251 break;
1252 case kIeee754Float64Acosh:
1253 ASSEMBLE_IEEE754_UNOP(acosh);
1254 break;
1255 case kIeee754Float64Asin:
1256 ASSEMBLE_IEEE754_UNOP(asin);
1257 break;
1258 case kIeee754Float64Asinh:
1259 ASSEMBLE_IEEE754_UNOP(asinh);
1260 break;
1261 case kIeee754Float64Atanh:
1262 ASSEMBLE_IEEE754_UNOP(atanh);
1263 break;
1249 case kIeee754Float64Atan: 1264 case kIeee754Float64Atan:
1250 ASSEMBLE_IEEE754_UNOP(atan); 1265 ASSEMBLE_IEEE754_UNOP(atan);
1251 break; 1266 break;
1252 case kIeee754Float64Atan2: 1267 case kIeee754Float64Atan2:
1253 ASSEMBLE_IEEE754_BINOP(atan2); 1268 ASSEMBLE_IEEE754_BINOP(atan2);
1254 break; 1269 break;
1255 case kIeee754Float64Tan: 1270 case kIeee754Float64Tan:
1256 ASSEMBLE_IEEE754_UNOP(tan); 1271 ASSEMBLE_IEEE754_UNOP(tan);
1257 break; 1272 break;
1273 case kIeee754Float64Tanh:
1274 ASSEMBLE_IEEE754_UNOP(tanh);
1275 break;
1258 case kIeee754Float64Cbrt: 1276 case kIeee754Float64Cbrt:
1259 ASSEMBLE_IEEE754_UNOP(cbrt); 1277 ASSEMBLE_IEEE754_UNOP(cbrt);
1260 break; 1278 break;
1261 case kIeee754Float64Sin: 1279 case kIeee754Float64Sin:
1262 ASSEMBLE_IEEE754_UNOP(sin); 1280 ASSEMBLE_IEEE754_UNOP(sin);
1263 break; 1281 break;
1264 case kIeee754Float64Sinh: 1282 case kIeee754Float64Sinh:
1265 ASSEMBLE_IEEE754_UNOP(sinh); 1283 ASSEMBLE_IEEE754_UNOP(sinh);
1266 break; 1284 break;
1267 case kIeee754Float64Cos: 1285 case kIeee754Float64Cos:
1268 ASSEMBLE_IEEE754_UNOP(cos); 1286 ASSEMBLE_IEEE754_UNOP(cos);
1269 break; 1287 break;
1270 case kIeee754Float64Cosh: 1288 case kIeee754Float64Cosh:
1271 ASSEMBLE_IEEE754_UNOP(cosh); 1289 ASSEMBLE_IEEE754_UNOP(cosh);
1272 break; 1290 break;
1273 case kIeee754Float64Exp: 1291 case kIeee754Float64Exp:
1274 ASSEMBLE_IEEE754_UNOP(exp); 1292 ASSEMBLE_IEEE754_UNOP(exp);
1275 break; 1293 break;
1276 case kIeee754Float64Expm1: 1294 case kIeee754Float64Expm1:
1277 ASSEMBLE_IEEE754_UNOP(expm1); 1295 ASSEMBLE_IEEE754_UNOP(expm1);
1278 break; 1296 break;
1279 case kIeee754Float64Atanh:
1280 ASSEMBLE_IEEE754_UNOP(atanh);
1281 break;
1282 case kIeee754Float64Tanh:
1283 ASSEMBLE_IEEE754_UNOP(tanh);
1284 break;
1285 case kIeee754Float64Log: 1297 case kIeee754Float64Log:
1286 ASSEMBLE_IEEE754_UNOP(log); 1298 ASSEMBLE_IEEE754_UNOP(log);
1287 break; 1299 break;
1288 case kIeee754Float64Log1p: 1300 case kIeee754Float64Log1p:
1289 ASSEMBLE_IEEE754_UNOP(log1p); 1301 ASSEMBLE_IEEE754_UNOP(log1p);
1290 break; 1302 break;
1291 case kIeee754Float64Log2: 1303 case kIeee754Float64Log2:
1292 ASSEMBLE_IEEE754_UNOP(log2); 1304 ASSEMBLE_IEEE754_UNOP(log2);
1293 break; 1305 break;
1294 case kIeee754Float64Log10: 1306 case kIeee754Float64Log10:
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 padding_size -= 2; 2255 padding_size -= 2;
2244 } 2256 }
2245 } 2257 }
2246 } 2258 }
2247 2259
2248 #undef __ 2260 #undef __
2249 2261
2250 } // namespace compiler 2262 } // namespace compiler
2251 } // namespace internal 2263 } // namespace internal
2252 } // namespace v8 2264 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698