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

Unified Diff: src/ast/prettyprinter.cc

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor cleanup per Adam Created 4 years, 5 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
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 969025b38d53d5f1e10a6333ac5d410924efe258..aafaa33378d964b86f9dd3f61972c1c541fa3cef 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -218,14 +218,6 @@ void CallPrinter::VisitFunctionLiteral(FunctionLiteral* node) {
}
-void CallPrinter::VisitClassLiteral(ClassLiteral* node) {
- if (node->extends()) Find(node->extends());
- for (int i = 0; i < node->properties()->length(); i++) {
- Find(node->properties()->at(i)->value());
- }
-}
-
-
void CallPrinter::VisitNativeFunctionLiteral(NativeFunctionLiteral* node) {}
@@ -917,16 +909,6 @@ void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) {
}
-void AstPrinter::VisitClassLiteral(ClassLiteral* node) {
- IndentedScope indent(this, "CLASS LITERAL", node->position());
- PrintLiteralIndented("NAME", node->constructor()->name(), false);
- if (node->extends() != nullptr) {
- PrintIndentedVisit("EXTENDS", node->extends());
- }
- PrintProperties(node->properties());
-}
-
-
void AstPrinter::PrintProperties(
ZoneList<ObjectLiteral::Property*>* properties) {
for (int i = 0; i < properties->length(); i++) {

Powered by Google App Engine
This is Rietveld 408576698