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

Unified Diff: test/mjsunit/compiler/regress-445858.js

Issue 834003002: Version 3.31.74.1 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@3.31
Patch Set: Created 5 years, 12 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/compiler/regress-445732.js ('k') | test/mjsunit/compiler/regress-445859.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-445858.js
diff --git a/test/mjsunit/asm/float32array-store-div.js b/test/mjsunit/compiler/regress-445858.js
similarity index 50%
copy from test/mjsunit/asm/float32array-store-div.js
copy to test/mjsunit/compiler/regress-445858.js
index 78224f962b7971f2b86a5381e98e2bbd2c63ca13..b2214ea0f269fe93c20be9fb600ad7162d528d37 100644
--- a/test/mjsunit/asm/float32array-store-div.js
+++ b/test/mjsunit/compiler/regress-445858.js
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function Module(stdlib, foreign, heap) {
+var foo = (function module(stdlib, foreign, heap) {
"use asm";
- var MEM32 = new stdlib.Float32Array(heap);
+ var MEM = new stdlib.Int8Array(heap);
function foo(i) {
- MEM32[0] = (i >>> 0) / 2;
- return MEM32[0];
+ i = i|0;
+ i[0] = i;
+ return MEM[i + 1 >> 0]|0;
}
return { foo: foo };
-}
-
-var foo = Module(this, {}, new ArrayBuffer(64 * 1024)).foo;
-assertEquals(0.5, foo(1));
+})(this, {}, new ArrayBuffer(64 * 1024)).foo;
+foo(-1);
« no previous file with comments | « test/mjsunit/compiler/regress-445732.js ('k') | test/mjsunit/compiler/regress-445859.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698