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

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

Issue 2067423003: [turbofan] Properly handle dictionary maps in the prototype chain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_CheckedOperators
Patch Set: Created 4 years, 6 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/js-native-context-specialization.cc ('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-616709.js
diff --git a/test/mjsunit/regress/regress-585041.js b/test/mjsunit/regress/regress-crbug-616709.js
similarity index 52%
copy from test/mjsunit/regress/regress-585041.js
copy to test/mjsunit/regress/regress-crbug-616709.js
index c072ed2a15befd66232f1b649b979f6b5d2a6014..75abe3c2e1ef233776c63fb97860a677fac2e781 100644
--- a/test/mjsunit/regress/regress-585041.js
+++ b/test/mjsunit/regress/regress-crbug-616709.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);
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698