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

Unified Diff: test/mjsunit/regress/regress-cr412210.js

Issue 550453003: Fix inaccurate type condition in Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/hydrogen.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-cr412210.js
diff --git a/test/mjsunit/regress/regress-crbug-387636.js b/test/mjsunit/regress/regress-cr412210.js
similarity index 81%
copy from test/mjsunit/regress/regress-crbug-387636.js
copy to test/mjsunit/regress/regress-cr412210.js
index 1e50ace45a293c8561042f1a09c8fcd505b43dc2..6ec7d62379c2dbc511da1c29d96216637e1fcae1 100644
--- a/test/mjsunit/regress/regress-crbug-387636.js
+++ b/test/mjsunit/regress/regress-cr412210.js
@@ -4,11 +4,9 @@
// Flags: --allow-natives-syntax
-function f() {
- [].indexOf(0x40000000);
-}
+function f(x) {
+ return (x ? "" >> 0 : "") + /a/;
+};
-f();
-f();
%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698