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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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.cc ('k') | runtime/vm/ast_printer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc
index 7cc69d4596a90ca00f053a3f8f30dda3b2046b34..9997a981d057f187b415a785e00607e9ef987748 100644
--- a/runtime/vm/ast_printer.cc
+++ b/runtime/vm/ast_printer.cc
@@ -30,9 +30,9 @@ void AstPrinter::VisitSequenceNode(SequenceNode* node) {
LocalScope* scope = node->scope();
THR_Print("(%s (scope \"%p\"", node->PrettyName(), scope);
if (scope != NULL) {
- THR_Print(" (%" Pd "-%" Pd ") loop %d",
- scope->begin_token_pos(),
- scope->end_token_pos(),
+ THR_Print(" (%s-%s) loop %d",
+ scope->begin_token_pos().ToCString(),
+ scope->end_token_pos().ToCString(),
scope->loop_level());
if (scope->HasContextLevel()) {
THR_Print(" context %d captures %d",
@@ -478,9 +478,9 @@ void AstPrinter::PrintLocalScopeVariable(const LocalScope* scope,
} else if (var->owner()->function_level() != 0) {
THR_Print(" lev %d", var->owner()->function_level());
}
- THR_Print(" valid %" Pd "-%" Pd ")\n",
- var->token_pos(),
- scope->end_token_pos());
+ THR_Print(" valid %s-%s)\n",
+ var->token_pos().ToCString(),
+ scope->end_token_pos().ToCString());
}
@@ -551,9 +551,9 @@ void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) {
THR_Print(" ctx %d", param->owner()->context_level());
}
}
- THR_Print(" valid %" Pd "-%" Pd ")\n",
- param->token_pos(),
- scope->end_token_pos());
+ THR_Print(" valid %s-%s)\n",
+ param->token_pos().ToCString(),
+ scope->end_token_pos().ToCString());
pos++;
}
// Visit remaining non-parameter variables and children scopes.
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/ast_printer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698