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

Unified Diff: test/mjsunit/compiler/type-feedback-after-throw.js

Issue 23441018: Make VisitStatements() consistent among all AstVisitor implementations (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/compiler/type-feedback-after-throw.js
diff --git a/test/mjsunit/regress/regress-171641.js b/test/mjsunit/compiler/type-feedback-after-throw.js
similarity index 91%
copy from test/mjsunit/regress/regress-171641.js
copy to test/mjsunit/compiler/type-feedback-after-throw.js
index 8db6781821325f8f6253eb2df4abb2b362b001c0..891e315c5c1121fb1674ee4094890266a7708889 100644
--- a/test/mjsunit/regress/regress-171641.js
+++ b/test/mjsunit/compiler/type-feedback-after-throw.js
@@ -27,14 +27,12 @@
// Flags: --allow-natives-syntax
-function foo(k, p) {
- for (var i = 0; i < 1; i++) {
- p = Math.min(p, i);
- }
- m = Math.floor((k | 0) / p);
-}
+function foo() {
+ throw "Error";
+ return 1 > 5;
+};
-foo(0, 1);
-foo(0, 1);
+try { foo() } catch(e) {}
+try { foo() } catch(e) {}
%OptimizeFunctionOnNextCall(foo);
-foo(0, 1);
+try { foo() } catch(e) {}
« 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