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

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

Issue 1130813002: dart2js cps: Handle error cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comments from floitch Created 5 years, 7 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/cps_ir_nodes_sexpr.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
index 8a99d4434bc7a5b26d8163c872ca3bb5263d7a1d..c330117d32beedb69c42ee101f8a1a2a91235291 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
@@ -373,6 +373,12 @@ class SExpressionStringifier extends Indentation implements Visitor<String> {
String value = access(node.value);
return '(NonTailThrow $value)';
}
+
+ String visitCreateInvocationMirror(CreateInvocationMirror node) {
+ String selector = node.selector.name;
+ String args = node.arguments.map(access).join(', ');
+ return '(CreateInvocationMirror $selector $args)';
+ }
}
class ConstantStringifier extends ConstantValueVisitor<String, Null> {

Powered by Google App Engine
This is Rietveld 408576698