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

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

Issue 2364843002: Merged: [turbofan] Fix loop assignment analysis on ForInStatements. (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/ast-loop-assignment-analyzer.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-647887.js
diff --git a/test/mjsunit/regress/regress-crbug-642056.js b/test/mjsunit/regress/regress-crbug-647887.js
similarity index 68%
copy from test/mjsunit/regress/regress-crbug-642056.js
copy to test/mjsunit/regress/regress-crbug-647887.js
index ca9fc78ef61bf58a6f0affa217632ccf171b9b19..84e598d5aa99eed39494d387d4784616c8defbf5 100644
--- a/test/mjsunit/regress/regress-crbug-642056.js
+++ b/test/mjsunit/regress/regress-crbug-647887.js
@@ -4,14 +4,11 @@
// Flags: --allow-natives-syntax
-function f(o) {
- return o.x instanceof Array;
+function f(obj) {
+ var key;
+ for (key in obj) { }
+ return key === undefined;
}
-var o = { x : 1.5 };
-o.x = 0;
-
-f(o);
-f(o);
%OptimizeFunctionOnNextCall(f);
-f(o);
+assertFalse(f({ foo:0 }));
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698