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

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

Issue 2459273002: [turbofan] Properly deal with out-of-bounds fields in EscapeAnalysis. (Closed)
Patch Set: Created 4 years, 2 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/escape-analysis.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-658185.js
diff --git a/test/mjsunit/regress/regress-crbug-630923.js b/test/mjsunit/regress/regress-crbug-658185.js
similarity index 57%
copy from test/mjsunit/regress/regress-crbug-630923.js
copy to test/mjsunit/regress/regress-crbug-658185.js
index ff0d2dd05efbedec15a515545eac2184c36c59f3..60de8d6458d3af2e4b16338eda36ed01a64001f2 100644
--- a/test/mjsunit/regress/regress-crbug-630923.js
+++ b/test/mjsunit/regress/regress-crbug-658185.js
@@ -2,15 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --turbo-escape
-var o = {};
-function bar(o) {
- return 1 + (o.t ? 1 : 2);
-}
+var t = 0;
function foo() {
- bar(o);
+ var o = {x:1};
+ var p = {y:2.5, x:0};
+ o = [];
+ for (var i = 0; i < 2; ++i) {
+ t = o.x;
+ o = p;
+ }
}
foo();
+foo();
%OptimizeFunctionOnNextCall(foo);
foo();
« no previous file with comments | « src/compiler/escape-analysis.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698