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

Unified Diff: test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js

Issue 904423002: fix transition of typedarrays in ics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/lookup.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
diff --git a/test/mjsunit/compiler/regress-416359.js b/test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
similarity index 56%
copy from test/mjsunit/compiler/regress-416359.js
copy to test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
index 18cdc5e72800ab16c49ea2f2091b88ba1c873248..4db280aac9c18b7d07c9267a1bbd820807ed1b61 100644
--- a/test/mjsunit/compiler/regress-416359.js
+++ b/test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-"use strict"
-function f() {
- for (x in {a:0});
+var a = new Int32Array(10);
+function f(a) { a["-1"] = 15; }
+for (var i = 0; i < 3; i++) {
+ f(a);
}
-
-assertThrows(f);
+assertEquals(undefined, a[-1]);
« no previous file with comments | « src/lookup.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698