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

Unified Diff: test/mjsunit/asm/load-elimination.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 | « test/mjsunit/asm/int8array-negative-offset.js ('k') | test/mjsunit/asm/math-abs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/load-elimination.js
diff --git a/test/mjsunit/asm/load-elimination.js b/test/mjsunit/asm/load-elimination.js
index cdc996222e6833b772b046f3ad0c13d35b6a0180..fff722d0178268de12f6c649d6c2b114488e4224 100644
--- a/test/mjsunit/asm/load-elimination.js
+++ b/test/mjsunit/asm/load-elimination.js
@@ -10,12 +10,13 @@ var heap = new ArrayBuffer(64 * 1024 * 1024);
var foo = (function(stdlib, foreign, heap) {
"use asm";
- var M16 = new Int16Array(heap);
- var M32 = new Int32Array(heap);
+ var M16 = new stdlib.Int16Array(heap);
+ var M32 = new stdlib.Int32Array(heap);
function foo() {
+ var i = 0;
M32[0] = 0x12341234;
- var i = M32[0];
- return M16[0];
+ i = M32[0] | 0;
+ return M16[0] | 0;
}
return foo;
})(stdlib, foreign, heap);
« no previous file with comments | « test/mjsunit/asm/int8array-negative-offset.js ('k') | test/mjsunit/asm/math-abs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698