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