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

Unified Diff: runtime/vm/ast_printer.cc

Issue 8678031: Optimize type checks of list and map literals. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « runtime/vm/ast.h ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
===================================================================
--- runtime/vm/ast_printer.cc (revision 1825)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -128,6 +128,17 @@
}
+void AstPrinter::VisitAssignableNode(AssignableNode* node) {
+ OS::Print("(assignable ");
+ node->expr()->Visit(this);
+ const Type& type = node->type();
+ const String& dst_name = node->dst_name();
+ OS::Print(" to type '%s' of '%s')",
+ String::Handle(type.Name()).ToCString(),
+ dst_name.ToCString());
+}
+
+
void AstPrinter::VisitPrimaryNode(PrimaryNode* node) {
OS::Print("***** PRIMARY NODE IN AST ***** (%s '%s')",
node->Name(), node->primary().ToCString());
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698