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

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

Issue 23623009: Always visit branches during HGraph building (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/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-crbug-280333.js
diff --git a/test/mjsunit/regress/regress-2843.js b/test/mjsunit/regress/regress-crbug-280333.js
similarity index 88%
copy from test/mjsunit/regress/regress-2843.js
copy to test/mjsunit/regress/regress-crbug-280333.js
index 5b28c2d7948ee5b71f2cc072aea326057f8156db..ca3fdc774606bfa56669b8a3b289af9845176ff3 100644
--- a/test/mjsunit/regress/regress-2843.js
+++ b/test/mjsunit/regress/regress-crbug-280333.js
@@ -27,19 +27,21 @@
// Flags: --allow-natives-syntax
-function bailout() { throw "bailout"; }
+function funky() { return false; }
var global;
function foo(x, fun) {
var a = x + 1;
var b = x + 2; // Need another Simulate to fold the first one into.
global = true; // Need a side effect to deopt to.
- fun();
- return a;
+ if (fun()) {
+ return a;
+ }
+ return 0;
}
-assertThrows("foo(1, bailout)");
-assertThrows("foo(1, bailout)");
+assertEquals(0, foo(1, funky));
+assertEquals(0, foo(1, funky));
%OptimizeFunctionOnNextCall(foo);
-assertThrows("foo(1, bailout)");
-assertEquals(2, foo(1, function() {}));
+assertEquals(0, foo(1, funky));
+assertEquals(2, foo(1, function() { return true; }));
« 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