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

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

Issue 2272393002: Version 5.4.500.1 (cherry-pick) (Closed)
Patch Set: 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
« no previous file with comments | « src/compiler/js-inlining.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-640369.js
diff --git a/test/mjsunit/regress/regress-3392.js b/test/mjsunit/regress/regress-crbug-640369.js
similarity index 58%
copy from test/mjsunit/regress/regress-3392.js
copy to test/mjsunit/regress/regress-crbug-640369.js
index 375f30210ce11272799c78b51463d97fc6b65998..97982d1224fc0d89cce2414122d8c7b2d211c346 100644
--- a/test/mjsunit/regress/regress-3392.js
+++ b/test/mjsunit/regress/regress-crbug-640369.js
@@ -4,15 +4,12 @@
// Flags: --allow-natives-syntax
+function A() {
+ this.x = 0;
+ for (var i = 0; i < max; ) {}
+}
function foo() {
- var a = {b: -1.5};
- for (var i = 0; i < 1; i++) {
- a.b = 1;
- }
- assertTrue(0 <= a.b);
+ for (var i = 0; i < 1; i = 2) %OptimizeOsr();
+ return new A();
}
-
-foo();
-foo();
-%OptimizeFunctionOnNextCall(foo);
-foo();
+try { foo(); } catch (e) { }
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698