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

Unified Diff: test/mjsunit/asm/do-while.js

Issue 2663243002: [asm] Fix lots of invalid asm.js tests (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | test/mjsunit/asm/do-while-false.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/do-while.js
diff --git a/test/mjsunit/asm/do-while.js b/test/mjsunit/asm/do-while.js
index 214be6458f00a19361c700aa5ea1328bffef0c81..0c0824da1107a12d4b7965b113ef423aaa1b94b9 100644
--- a/test/mjsunit/asm/do-while.js
+++ b/test/mjsunit/asm/do-while.js
@@ -5,17 +5,17 @@
function Module(stdlib, foreign, buffer) {
"use asm";
function f(i) {
- var j;
i = i|0;
+ var j = 0;
do {
- if (i > 0) {
- j = i != 0;
+ if ((i | 0) > 0) {
+ j = (i | 0) != 0;
i = (i - 1) | 0;
} else {
j = 0;
}
} while (j);
- return i;
+ return i | 0;
}
return {f:f};
}
« no previous file with comments | « no previous file | test/mjsunit/asm/do-while-false.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698