Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 2bb7c9465861f2ee51b5342db58234790b0075bf..26a5426cff042e63b6e29622b7c69e7c43a130aa 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -7,6 +7,7 @@ |
#include "v8.h" |
#include "prettyprinter.h" |
+#include "ast-string-table.h" |
#include "scopes.h" |
#include "platform.h" |
@@ -133,7 +134,7 @@ void PrettyPrinter::VisitIfStatement(IfStatement* node) { |
void PrettyPrinter::VisitContinueStatement(ContinueStatement* node) { |
Print("continue"); |
- ZoneStringList* labels = node->target()->labels(); |
+ ZoneList<const AstString*>* labels = node->target()->labels(); |
if (labels != NULL) { |
Print(" "); |
ASSERT(labels->length() > 0); // guaranteed to have at least one entry |
@@ -145,7 +146,7 @@ void PrettyPrinter::VisitContinueStatement(ContinueStatement* node) { |
void PrettyPrinter::VisitBreakStatement(BreakStatement* node) { |
Print("break"); |
- ZoneStringList* labels = node->target()->labels(); |
+ ZoneList<const AstString*>* labels = node->target()->labels(); |
if (labels != NULL) { |
Print(" "); |
ASSERT(labels->length() > 0); // guaranteed to have at least one entry |
@@ -524,7 +525,7 @@ void PrettyPrinter::PrintStatements(ZoneList<Statement*>* statements) { |
} |
-void PrettyPrinter::PrintLabels(ZoneStringList* labels) { |
+void PrettyPrinter::PrintLabels(ZoneList<const AstString*>* labels) { |
if (labels != NULL) { |
for (int i = 0; i < labels->length(); i++) { |
PrintLiteral(labels->at(i), false); |
@@ -582,6 +583,11 @@ void PrettyPrinter::PrintLiteral(Handle<Object> value, bool quote) { |
} |
+void PrettyPrinter::PrintLiteral(const AstString* value, bool quote) { |
+ PrintLiteral(value->string(), quote); |
+} |
+ |
+ |
void PrettyPrinter::PrintParameters(Scope* scope) { |
Print("("); |
for (int i = 0; i < scope->num_parameters(); i++) { |
@@ -676,7 +682,7 @@ void AstPrinter::PrintLiteralWithModeIndented(const char* info, |
} |
-void AstPrinter::PrintLabelsIndented(ZoneStringList* labels) { |
+void AstPrinter::PrintLabelsIndented(ZoneList<const AstString*>* labels) { |
if (labels == NULL || labels->length() == 0) return; |
PrintIndented("LABELS "); |
PrintLabels(labels); |