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

Unified Diff: test/mjsunit/compiler/regress-4207.js

Issue 1198993009: [turbofan] NaN is never truish. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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-graph-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-4207.js
diff --git a/test/mjsunit/compiler/regress-491578.js b/test/mjsunit/compiler/regress-4207.js
similarity index 68%
copy from test/mjsunit/compiler/regress-491578.js
copy to test/mjsunit/compiler/regress-4207.js
index c27570456c31e9a191fe1f4f1ea17b80f29de98e..6f54509b5a40c7a91acfba30d64ccf1b54c6a3c1 100644
--- a/test/mjsunit/compiler/regress-491578.js
+++ b/test/mjsunit/compiler/regress-4207.js
@@ -4,12 +4,7 @@
// Flags: --allow-natives-syntax
-function foo(x) {
- if (x === undefined) return;
- while (true) {
- while (1 || 2) { }
- f();
- }
-}
+function foo() { return 0/0 || 1; }
titzer 2015/06/23 11:41:27 What about adding a test for && as well?
Benedikt Meurer 2015/06/23 11:58:53 Done.
+assertEquals(1, foo());
%OptimizeFunctionOnNextCall(foo);
-foo();
+assertEquals(1, foo());
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698