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

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

Issue 828303002: [x64] Rearrange code for OOB integer loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « src/compiler/x64/code-generator-x64.cc ('k') | no next file » | 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/compiler/regress-445267.js b/test/mjsunit/compiler/regress-445858.js
similarity index 64%
copy from test/mjsunit/compiler/regress-445267.js
copy to test/mjsunit/compiler/regress-445858.js
index 465168b6e87ae6d49696d9e67c06a7bb982ace57..b2214ea0f269fe93c20be9fb600ad7162d528d37 100644
--- a/test/mjsunit/compiler/regress-445267.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.
-var foo = (function Module(stdlib, foreign, heap) {
+var foo = (function module(stdlib, foreign, heap) {
"use asm";
- var MEM16 = new stdlib.Int16Array(heap);
+ var MEM = new stdlib.Int8Array(heap);
function foo(i) {
i = i|0;
- i = MEM16[i + 2147483650 >> 1]|0;
- return i;
+ i[0] = i;
+ return MEM[i + 1 >> 0]|0;
}
return { foo: foo };
})(this, {}, new ArrayBuffer(64 * 1024)).foo;
-
-foo(0);
+foo(-1);
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698