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

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

Issue 2319533005: [turbofan] Ensure that all prototypes are stable for push/pop. (Closed)
Patch Set: Created 4 years, 3 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-builtin-reducer.cc ('k') | test/mjsunit/regress/regress-crbug-644689-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-644689-1.js
diff --git a/test/mjsunit/regress/regress-crbug-630923.js b/test/mjsunit/regress/regress-crbug-644689-1.js
similarity index 71%
copy from test/mjsunit/regress/regress-crbug-630923.js
copy to test/mjsunit/regress/regress-crbug-644689-1.js
index ff0d2dd05efbedec15a515545eac2184c36c59f3..49bf90204725c63ef70cd3749f97d6c60a3cfb33 100644
--- a/test/mjsunit/regress/regress-crbug-630923.js
+++ b/test/mjsunit/regress/regress-crbug-644689-1.js
@@ -4,13 +4,11 @@
// Flags: --allow-natives-syntax
-var o = {};
-function bar(o) {
- return 1 + (o.t ? 1 : 2);
-}
-function foo() {
- bar(o);
-}
+for (var i = 0; i < 1024; ++i) Object.prototype["i" + i] = i;
+
+function foo() { [].push(1); }
+
+foo();
foo();
%OptimizeFunctionOnNextCall(foo);
foo();
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | test/mjsunit/regress/regress-crbug-644689-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698