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

Unified Diff: lib/compiler/implementation/ssa/tracer.dart

Issue 10232011: Implement simple dynamic type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor edits. Created 8 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: lib/compiler/implementation/ssa/tracer.dart
diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
index b87418192c34e0f88b043c18457534c25250f2b3..c77ce262ec521a0871018a787405b466bc96dc52 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -433,7 +433,7 @@ class HInstructionStringifier implements HVisitor<String> {
}
String visitIs(HIs node) {
- String type = node.typeName.toString();
+ String type = node.typeExpression.toString();
return "TypeTest: ${temporaryId(node.expression)} is $type";
}
}

Powered by Google App Engine
This is Rietveld 408576698