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

Side by Side Diff: src/assembler.cc

Issue 2083473002: [wasm] Use the new TF operators for F64Cos, F64Sin, F64Tan, and F64Exp (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/assembler.h ('k') | src/compiler/wasm-compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 1301
1302 static void f64_asin_wrapper(double* param) { 1302 static void f64_asin_wrapper(double* param) {
1303 WriteDoubleValue(param, std::asin(ReadDoubleValue(param))); 1303 WriteDoubleValue(param, std::asin(ReadDoubleValue(param)));
1304 } 1304 }
1305 1305
1306 ExternalReference ExternalReference::f64_asin_wrapper_function( 1306 ExternalReference ExternalReference::f64_asin_wrapper_function(
1307 Isolate* isolate) { 1307 Isolate* isolate) {
1308 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_asin_wrapper))); 1308 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_asin_wrapper)));
1309 } 1309 }
1310 1310
1311 static void f64_cos_wrapper(double* param) {
1312 WriteDoubleValue(param, std::cos(ReadDoubleValue(param)));
1313 }
1314
1315 ExternalReference ExternalReference::f64_cos_wrapper_function(
1316 Isolate* isolate) {
1317 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_cos_wrapper)));
1318 }
1319
1320 static void f64_sin_wrapper(double* param) {
1321 WriteDoubleValue(param, std::sin(ReadDoubleValue(param)));
1322 }
1323
1324 ExternalReference ExternalReference::f64_sin_wrapper_function(
1325 Isolate* isolate) {
1326 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_sin_wrapper)));
1327 }
1328
1329 static void f64_tan_wrapper(double* param) {
1330 WriteDoubleValue(param, std::tan(ReadDoubleValue(param)));
1331 }
1332
1333 ExternalReference ExternalReference::f64_tan_wrapper_function(
1334 Isolate* isolate) {
1335 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_tan_wrapper)));
1336 }
1337
1338 static void f64_exp_wrapper(double* param) {
1339 WriteDoubleValue(param, base::ieee754::exp(ReadDoubleValue(param)));
1340 }
1341
1342 ExternalReference ExternalReference::f64_exp_wrapper_function(
1343 Isolate* isolate) {
1344 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_exp_wrapper)));
1345 }
1346
1347 static void f64_pow_wrapper(double* param0, double* param1) { 1311 static void f64_pow_wrapper(double* param0, double* param1) {
1348 WriteDoubleValue(param0, power_double_double(ReadDoubleValue(param0), 1312 WriteDoubleValue(param0, power_double_double(ReadDoubleValue(param0),
1349 ReadDoubleValue(param1))); 1313 ReadDoubleValue(param1)));
1350 } 1314 }
1351 1315
1352 ExternalReference ExternalReference::f64_pow_wrapper_function( 1316 ExternalReference ExternalReference::f64_pow_wrapper_function(
1353 Isolate* isolate) { 1317 Isolate* isolate) {
1354 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_pow_wrapper))); 1318 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_pow_wrapper)));
1355 } 1319 }
1356 1320
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 2077
2114 2078
2115 void Assembler::DataAlign(int m) { 2079 void Assembler::DataAlign(int m) {
2116 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2080 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2117 while ((pc_offset() & (m - 1)) != 0) { 2081 while ((pc_offset() & (m - 1)) != 0) {
2118 db(0); 2082 db(0);
2119 } 2083 }
2120 } 2084 }
2121 } // namespace internal 2085 } // namespace internal
2122 } // namespace v8 2086 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/compiler/wasm-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698