Refactoring only: Removed unused argument from IndentedScope constructor.

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/14864008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14591 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3d7e2912
...@@ -632,7 +632,7 @@ class IndentedScope BASE_EMBEDDED { ...@@ -632,7 +632,7 @@ class IndentedScope BASE_EMBEDDED {
ast_printer_->inc_indent(); ast_printer_->inc_indent();
} }
IndentedScope(AstPrinter* printer, const char* txt, AstNode* node = NULL) IndentedScope(AstPrinter* printer, const char* txt)
: ast_printer_(printer) { : ast_printer_(printer) {
ast_printer_->PrintIndented(txt); ast_printer_->PrintIndented(txt);
ast_printer_->Print("\n"); ast_printer_->Print("\n");
...@@ -707,7 +707,7 @@ void AstPrinter::PrintLabelsIndented(const char* info, ZoneStringList* labels) { ...@@ -707,7 +707,7 @@ void AstPrinter::PrintLabelsIndented(const char* info, ZoneStringList* labels) {
void AstPrinter::PrintIndentedVisit(const char* s, AstNode* node) { void AstPrinter::PrintIndentedVisit(const char* s, AstNode* node) {
IndentedScope indent(this, s, node); IndentedScope indent(this, s);
Visit(node); Visit(node);
} }
...@@ -1059,7 +1059,7 @@ void AstPrinter::VisitVariableProxy(VariableProxy* node) { ...@@ -1059,7 +1059,7 @@ void AstPrinter::VisitVariableProxy(VariableProxy* node) {
void AstPrinter::VisitAssignment(Assignment* node) { void AstPrinter::VisitAssignment(Assignment* node) {
IndentedScope indent(this, Token::Name(node->op()), node); IndentedScope indent(this, Token::Name(node->op()));
Visit(node->target()); Visit(node->target());
Visit(node->value()); Visit(node->value());
} }
...@@ -1076,7 +1076,7 @@ void AstPrinter::VisitThrow(Throw* node) { ...@@ -1076,7 +1076,7 @@ void AstPrinter::VisitThrow(Throw* node) {
void AstPrinter::VisitProperty(Property* node) { void AstPrinter::VisitProperty(Property* node) {
IndentedScope indent(this, "PROPERTY", node); IndentedScope indent(this, "PROPERTY");
Visit(node->obj()); Visit(node->obj());
Literal* literal = node->key()->AsLiteral(); Literal* literal = node->key()->AsLiteral();
if (literal != NULL && literal->handle()->IsInternalizedString()) { if (literal != NULL && literal->handle()->IsInternalizedString()) {
...@@ -1122,14 +1122,14 @@ void AstPrinter::VisitCountOperation(CountOperation* node) { ...@@ -1122,14 +1122,14 @@ void AstPrinter::VisitCountOperation(CountOperation* node) {
void AstPrinter::VisitBinaryOperation(BinaryOperation* node) { void AstPrinter::VisitBinaryOperation(BinaryOperation* node) {
IndentedScope indent(this, Token::Name(node->op()), node); IndentedScope indent(this, Token::Name(node->op()));
Visit(node->left()); Visit(node->left());
Visit(node->right()); Visit(node->right());
} }
void AstPrinter::VisitCompareOperation(CompareOperation* node) { void AstPrinter::VisitCompareOperation(CompareOperation* node) {
IndentedScope indent(this, Token::Name(node->op()), node); IndentedScope indent(this, Token::Name(node->op()));
Visit(node->left()); Visit(node->left());
Visit(node->right()); Visit(node->right());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment