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

Unified Diff: test/mjsunit/wasm/asm-wasm-f64.js

Issue 2377903002: [wasm] [asm.js] Fix various asm.js issues. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/wasm/asm-wasm-f64.js
diff --git a/test/mjsunit/wasm/asm-wasm-f64.js b/test/mjsunit/wasm/asm-wasm-f64.js
index 1fd51ff9d5cebf412e7dbdbd761842594b52500e..c7b439fedea7527d35473b2325e34bcfc419457f 100644
--- a/test/mjsunit/wasm/asm-wasm-f64.js
+++ b/test/mjsunit/wasm/asm-wasm-f64.js
@@ -205,21 +205,25 @@ function f64_tan(a) {
return +Math_tan(+a);
}
-function f64_exp(a, b) {
+function f64_exp(a) {
a = +a;
- b = +b;
- return +Math_exp(+a, +b);
+ return +Math_exp(+a);
+}
+
+function f64_log(a) {
+ a = +a;
+ return +Math_log(+a);
}
-function f64_log(a, b) {
+function f64_atan2(a, b) {
a = +a;
b = +b;
- return +Math_log(+a, +b);
+ return +Math_atan2(+a, +b);
}
-function f64_atan2(a) {
+function f64_neg(a) {
a = +a;
- return +Math_atan2(+a);
+ return +(-a);
}
@@ -272,17 +276,18 @@ var funcs = [
f64_floor,
// TODO(bradnelson) f64_sqrt,
f64_abs,
+ f64_neg,
// TODO(bradnelson) f64_min is wrong for -0
// TODO(bradnelson) f64_max is wrong for -0
-// TODO(bradnelson) f64_acos,
-// TODO(bradnelson) f64_asin,
-// TODO(bradnelson) f64_atan,
-// TODO(bradnelson) f64_cos,
-// TODO(bradnelson) f64_sin,
-// TODO(bradnelson) f64_tan,
-// TODO(bradnelson) f64_exp,
-// TODO(bradnelson) f64_log,
-// TODO(bradnelson) f64_atan2,
+ f64_acos,
+ f64_asin,
+ f64_atan,
+ f64_cos,
+ f64_sin,
+ f64_tan,
+ f64_exp,
+ f64_log,
+ f64_atan2,
];
(function () {

Powered by Google App Engine
This is Rietveld 408576698