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

Unified Diff: src/prettyprinter.cc

Issue 1106383008: Remove unused Module-related AST nodes and associated codegen (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « src/ppc/full-codegen-ppc.cc ('k') | src/rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index 17f16fd97a4b084f229642a9907948bb9d8dd44d..3a476575718d4dbfb83388252886dfdc2c8b676c 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -100,11 +100,6 @@ void CallPrinter::VisitVariableDeclaration(VariableDeclaration* node) {}
void CallPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {}
-void CallPrinter::VisitModuleDeclaration(ModuleDeclaration* node) {
- Find(node->module());
-}
-
-
void CallPrinter::VisitImportDeclaration(ImportDeclaration* node) {
}
@@ -112,22 +107,6 @@ void CallPrinter::VisitImportDeclaration(ImportDeclaration* node) {
void CallPrinter::VisitExportDeclaration(ExportDeclaration* node) {}
-void CallPrinter::VisitModuleLiteral(ModuleLiteral* node) {
- VisitBlock(node->body());
-}
-
-
-void CallPrinter::VisitModulePath(ModulePath* node) { Find(node->module()); }
-
-
-void CallPrinter::VisitModuleUrl(ModuleUrl* node) {}
-
-
-void CallPrinter::VisitModuleStatement(ModuleStatement* node) {
- Find(node->body());
-}
-
-
void CallPrinter::VisitExpressionStatement(ExpressionStatement* node) {
Find(node->expression());
}
@@ -474,15 +453,6 @@ void PrettyPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {
}
-void PrettyPrinter::VisitModuleDeclaration(ModuleDeclaration* node) {
- Print("module ");
- PrintLiteral(node->proxy()->name(), false);
- Print(" = ");
- Visit(node->module());
- Print(";");
-}
-
-
void PrettyPrinter::VisitImportDeclaration(ImportDeclaration* node) {
Print("import ");
PrintLiteral(node->proxy()->name(), false);
@@ -499,30 +469,6 @@ void PrettyPrinter::VisitExportDeclaration(ExportDeclaration* node) {
}
-void PrettyPrinter::VisitModuleLiteral(ModuleLiteral* node) {
- VisitBlock(node->body());
-}
-
-
-void PrettyPrinter::VisitModulePath(ModulePath* node) {
- Visit(node->module());
- Print(".");
- PrintLiteral(node->name(), false);
-}
-
-
-void PrettyPrinter::VisitModuleUrl(ModuleUrl* node) {
- Print("at ");
- PrintLiteral(node->url(), true);
-}
-
-
-void PrettyPrinter::VisitModuleStatement(ModuleStatement* node) {
- Print("module ");
- Visit(node->body());
-}
-
-
void PrettyPrinter::VisitExpressionStatement(ExpressionStatement* node) {
Visit(node->expression());
Print(";");
@@ -1216,13 +1162,6 @@ void AstPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {
}
-void AstPrinter::VisitModuleDeclaration(ModuleDeclaration* node) {
- IndentedScope indent(this, "MODULE");
- PrintLiteralIndented("NAME", node->proxy()->name(), true);
- Visit(node->module());
-}
-
-
void AstPrinter::VisitImportDeclaration(ImportDeclaration* node) {
IndentedScope indent(this, "IMPORT");
PrintLiteralIndented("NAME", node->proxy()->name(), true);
@@ -1236,30 +1175,6 @@ void AstPrinter::VisitExportDeclaration(ExportDeclaration* node) {
}
-void AstPrinter::VisitModuleLiteral(ModuleLiteral* node) {
- IndentedScope indent(this, "MODULE LITERAL");
- VisitBlock(node->body());
-}
-
-
-void AstPrinter::VisitModulePath(ModulePath* node) {
- IndentedScope indent(this, "MODULE PATH");
- PrintIndentedVisit("MODULE PATH PARENT", node->module());
- PrintLiteralIndented("NAME", node->name(), true);
-}
-
-
-void AstPrinter::VisitModuleUrl(ModuleUrl* node) {
- PrintLiteralIndented("URL", node->url(), true);
-}
-
-
-void AstPrinter::VisitModuleStatement(ModuleStatement* node) {
- IndentedScope indent(this, "MODULE STATEMENT");
- PrintStatements(node->body()->statements());
-}
-
-
void AstPrinter::VisitExpressionStatement(ExpressionStatement* node) {
IndentedScope indent(this, "EXPRESSION STATEMENT");
Visit(node->expression());
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | src/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698