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

Unified Diff: test/mjsunit/regress/regress-crbug-319860.js

Issue 74113002: Limit size of dehoistable array indices (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/regress/regress-crbug-319835.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-319860.js
diff --git a/test/mjsunit/regress/regress-171641.js b/test/mjsunit/regress/regress-crbug-319860.js
similarity index 85%
copy from test/mjsunit/regress/regress-171641.js
copy to test/mjsunit/regress/regress-crbug-319860.js
index 8db6781821325f8f6253eb2df4abb2b362b001c0..b81fb85ba712da96ac348b10744ec6477963b0ca 100644
--- a/test/mjsunit/regress/regress-171641.js
+++ b/test/mjsunit/regress/regress-crbug-319860.js
@@ -27,14 +27,21 @@
// Flags: --allow-natives-syntax
-function foo(k, p) {
+function read(a, index) {
+ var offset = 0x2000000;
+ var result;
for (var i = 0; i < 1; i++) {
- p = Math.min(p, i);
+ result = a[index + offset];
}
- m = Math.floor((k | 0) / p);
+ return result;
}
-foo(0, 1);
-foo(0, 1);
-%OptimizeFunctionOnNextCall(foo);
-foo(0, 1);
+var a = new Int8Array(0x2000001);
+read(a, 0);
+read(a, 0);
+%OptimizeFunctionOnNextCall(read);
+
+// Segfault maybe?
+for (var i = 0; i > -1000000; --i) {
+ read(a, i);
+}
« no previous file with comments | « test/mjsunit/regress/regress-crbug-319835.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698