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

Unified Diff: src/ast/ast-expression-rewriter.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/ast-expression-rewriter.cc
diff --git a/src/ast/ast-expression-rewriter.cc b/src/ast/ast-expression-rewriter.cc
index 53aabe91c38d5ded95a894dd78b5d8b28385284b..97badabbd98e4bb207aae151baea4afdc73ed071 100644
--- a/src/ast/ast-expression-rewriter.cc
+++ b/src/ast/ast-expression-rewriter.cc
@@ -198,20 +198,6 @@ void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) {
}
-void AstExpressionRewriter::VisitClassLiteral(ClassLiteral* node) {
- REWRITE_THIS(node);
- // Not visiting `class_variable_proxy_`.
- if (node->extends() != nullptr) {
- AST_REWRITE_PROPERTY(Expression, node, extends);
- }
- AST_REWRITE_PROPERTY(FunctionLiteral, node, constructor);
- ZoneList<typename ClassLiteral::Property*>* properties = node->properties();
- for (int i = 0; i < properties->length(); i++) {
- VisitObjectLiteralProperty(properties->at(i));
- }
-}
-
-
void AstExpressionRewriter::VisitNativeFunctionLiteral(
NativeFunctionLiteral* node) {
REWRITE_THIS(node);

Powered by Google App Engine
This is Rietveld 408576698