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

Unified Diff: frog/leg/ssa/bailout.dart

Issue 9351020: Implement try/catch without finally, and without type checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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
Index: frog/leg/ssa/bailout.dart
===================================================================
--- frog/leg/ssa/bailout.dart (revision 3986)
+++ frog/leg/ssa/bailout.dart (working copy)
@@ -193,6 +193,13 @@
}
}
+ void visitTry(HTry node) {
+ List<HBasicBlock> successors = node.block.successors;
+ for (int i = 0; i < successors.length; i++) {
+ visitBasicBlock(successors[i]);
ngeoffray 2012/02/08 07:56:03 I know this is wrong. I plan on adding test cases
ngeoffray 2012/02/08 09:52:23 After discussions, decided to not do any speculati
+ }
+ }
+
// Deal with all kinds of control flow instructions. In case we add
// a new one, we will hit an internal error.
void visitExit(HExit exit) {}
@@ -326,6 +333,13 @@
visitBasicBlock(branchBlock.successors[1]);
}
+ void visitTry(HTry node) {
+ List<HBasicBlock> successors = node.block.successors;
+ for (int i = 0; i < successors.length; i++) {
+ visitBasicBlock(successors[i]);
+ }
ngeoffray 2012/02/08 07:56:03 ditto.
+ }
+
// Deal with all kinds of control flow instructions. In case we add
// a new one, we will hit an internal error.
void visitExit(HExit exit) {}

Powered by Google App Engine
This is Rietveld 408576698