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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 1092023002: CPS implementation of throw and rethrow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: pkg/compiler/lib/src/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index f4ca628d12caeb521b7f256bd9e09b2f35e2adfe..ae1e609cf7b53d5e8806be1e4336805801617ec7 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -607,6 +607,16 @@ class _TypePropagationVisitor<T> implements Visitor {
}
}
+ void visitThrow(Throw node) {
+ }
+
+ void visitRethrow(Rethrow node) {
+ }
+
+ void visitNonTailThrow(NonTailThrow node) {
+ internalError(null, 'found non-tail throw after they were eliminated');
+ }
+
void visitBranch(Branch node) {
IsTrue isTrue = node.condition;
_AbstractValue<T> conditionCell = getValue(isTrue.value.definition);

Powered by Google App Engine
This is Rietveld 408576698