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

Unified Diff: runtime/vm/ast_printer.cc

Issue 8234016: Inline allocation of implicit closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_generator.h » ('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 355)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -52,7 +52,7 @@
OS::Print("(%s %s%s '%s'",
node->Name(),
var.is_final() ? "final " : "",
- var.type().ToCString(),
+ String::Handle(var.type().Name()).ToCString(),
var.name().ToCString());
if (var.HasIndex()) {
OS::Print(" @%d", var.index());
@@ -79,7 +79,7 @@
OS::Print("(%s %s%s '%s' ",
node->Name(),
field.is_final() ? "final " : "",
- Type::Handle(field.type()).ToCString(),
+ String::Handle(Type::Handle(field.type()).Name()).ToCString(),
String::Handle(field.name()).ToCString());
node->VisitChildren(this);
OS::Print(")");
@@ -119,7 +119,7 @@
void AstPrinter::VisitTypeNode(TypeNode* node) {
const Type& type = node->type();
- OS::Print("'%s'", type.ToCString());
+ OS::Print("'%s'", String::Handle(type.Name()).ToCString());
}
@@ -267,14 +267,15 @@
}
-void AstPrinter::VisitStaticImplicitClosureNode(
- StaticImplicitClosureNode* node) {
+void AstPrinter::VisitImplicitStaticClosureNode(
+ ImplicitStaticClosureNode* node) {
const char* function_fullname = node->function().ToFullyQualifiedCString();
OS::Print("static (%s '%s')", node->Name(), function_fullname);
}
-void AstPrinter::VisitImplicitClosureNode(ImplicitClosureNode* node) {
+void AstPrinter::VisitImplicitInstanceClosureNode(
+ ImplicitInstanceClosureNode* node) {
const char* function_fullname = node->function().ToFullyQualifiedCString();
OS::Print("(%s '%s')", node->Name(), function_fullname);
}
@@ -400,7 +401,7 @@
LocalVariable* var = scope->VariableAt(i);
OS::Print("(%s%s '%s'",
var->is_final() ? "final " : "",
- var->type().ToCString(),
+ String::Handle(var->type().Name()).ToCString(),
var->name().ToCString());
if (var->owner() != scope) {
OS::Print(" alias");
@@ -447,7 +448,7 @@
ASSERT(param->owner() == scope);
OS::Print("(param %s%s '%s'",
param->is_final() ? "final " : "",
- param->type().ToCString(),
+ String::Handle(param->type().Name()).ToCString(),
param->name().ToCString());
// Print the default value if the parameter is optional.
if (pos >= num_fixed_params && pos < num_params) {
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698