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

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

Issue 2356733002: [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/compiler/regress-math-sign-nan-type.js b/test/mjsunit/regress/regress-crbug-647887.js
similarity index 68%
copy from test/mjsunit/compiler/regress-math-sign-nan-type.js
copy to test/mjsunit/regress/regress-crbug-647887.js
index e16eba8c5a3b8ca48f8a055579f6f42289f40a41..84e598d5aa99eed39494d387d4784616c8defbf5 100644
--- a/test/mjsunit/compiler/regress-math-sign-nan-type.js
+++ b/test/mjsunit/regress/regress-crbug-647887.js
@@ -4,11 +4,11 @@
// Flags: --allow-natives-syntax
-function f(a) {
- return Math.sign(+a) < 2;
+function f(obj) {
+ var key;
+ for (key in obj) { }
+ return key === undefined;
}
-f(NaN);
-f(NaN);
%OptimizeFunctionOnNextCall(f);
-assertFalse(f(NaN));
+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