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

Unified Diff: test/mjsunit/regress/regress-crbug-616709-1.js

Issue 2198833002: [turbofan] Remove unnecessary prototype checks for element access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 years, 4 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
Index: test/mjsunit/regress/regress-crbug-616709-1.js
diff --git a/test/mjsunit/regress/regress-585041.js b/test/mjsunit/regress/regress-crbug-616709-1.js
similarity index 52%
copy from test/mjsunit/regress/regress-585041.js
copy to test/mjsunit/regress/regress-crbug-616709-1.js
index c072ed2a15befd66232f1b649b979f6b5d2a6014..75abe3c2e1ef233776c63fb97860a677fac2e781 100644
--- a/test/mjsunit/regress/regress-585041.js
+++ b/test/mjsunit/regress/regress-crbug-616709-1.js
@@ -4,18 +4,18 @@
// Flags: --allow-natives-syntax
-function f(arr, i) {
- arr[i] = 50;
+// Make the Object prototype have dictionary properties.
+for (var i = 0; i < 2000; i++) {
+ Object.prototype['X'+i] = true;
}
-function boom(dummy) {
- var arr = new Array(10);
- f(arr, 10);
- if (dummy) {
- f(arr, -2147483648);
- }
+function boom(a1) {
+ return a1[0];
}
-boom(false);
+var a = new Array(1);
+a[0] = 0.1;
+boom(a);
+boom(a);
%OptimizeFunctionOnNextCall(boom);
-boom(false);
+boom(a);

Powered by Google App Engine
This is Rietveld 408576698