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

Unified Diff: src/ast-literal-reindexer.h

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 1 month 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/ast-expression-visitor.cc ('k') | src/ast-literal-reindexer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-literal-reindexer.h
diff --git a/src/ast-literal-reindexer.h b/src/ast-literal-reindexer.h
deleted file mode 100644
index 14f64f6ef18a43fbe9d4e550fd1e4251a33e3492..0000000000000000000000000000000000000000
--- a/src/ast-literal-reindexer.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_AST_LITERAL_REINDEXER
-#define V8_AST_LITERAL_REINDEXER
-
-#include "src/ast.h"
-#include "src/scopes.h"
-
-namespace v8 {
-namespace internal {
-
-class AstLiteralReindexer final : public AstVisitor {
- public:
- AstLiteralReindexer() : AstVisitor(), next_index_(0) {}
-
- int count() const { return next_index_; }
- void Reindex(Expression* pattern);
- int NextIndex() { return next_index_++; }
-
- private:
-#define DEFINE_VISIT(type) void Visit##type(type* node) override;
- AST_NODE_LIST(DEFINE_VISIT)
-#undef DEFINE_VISIT
-
- void VisitStatements(ZoneList<Statement*>* statements) override;
- void VisitDeclarations(ZoneList<Declaration*>* declarations) override;
- void VisitArguments(ZoneList<Expression*>* arguments);
- void VisitObjectLiteralProperty(ObjectLiteralProperty* property);
-
- void UpdateIndex(MaterializedLiteral* literal) {
- literal->literal_index_ = next_index_++;
- }
-
- void Visit(AstNode* node) override { node->Accept(this); }
-
- int next_index_;
-
- DISALLOW_COPY_AND_ASSIGN(AstLiteralReindexer);
-};
-} // namespace internal
-} // namespace v8
-
-#endif // V8_AST_LITERAL_REINDEXER
« no previous file with comments | « src/ast-expression-visitor.cc ('k') | src/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698