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

Unified Diff: test/mjsunit/regress/regress-v8-5255-1.js

Issue 2206553002: [turbofan] Fix invalid representation selection for Phis/Selects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/simplified-lowering.cc ('k') | test/mjsunit/regress/regress-v8-5255-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-v8-5255-1.js
diff --git a/test/mjsunit/regress/regress-crbug-629062.js b/test/mjsunit/regress/regress-v8-5255-1.js
similarity index 70%
copy from test/mjsunit/regress/regress-crbug-629062.js
copy to test/mjsunit/regress/regress-v8-5255-1.js
index 228ae6d2d5012e8d00b19fe5093ed54f7de4ded9..cd14d63792290572b9cfd1d83082f8206c88a1a6 100644
--- a/test/mjsunit/regress/regress-crbug-629062.js
+++ b/test/mjsunit/regress/regress-v8-5255-1.js
@@ -5,10 +5,10 @@
// Flags: --allow-natives-syntax
function foo(x) {
- return 1 + ((1 == 0) && undefined);
+ return (x ? true : "7") >> 0;
}
-foo(false);
-foo(false);
+assertEquals(1, foo(1));
+assertEquals(1, foo(1));
%OptimizeFunctionOnNextCall(foo);
-foo(true);
+assertEquals(7, foo(0));
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | test/mjsunit/regress/regress-v8-5255-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698