Commit 90d260e0 authored by Zhi An Ng's avatar Zhi An Ng Committed by Commit Bot

[cleanup][ast] Remove uses of DISALLOW_COPY_AND_ASSIGN

Bug: v8:11074
Change-Id: I82d84f03a8a9361cc1299a28cd9e4ba757930dd6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2569560
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71635}
parent 59a6636a
......@@ -21,6 +21,9 @@ class AstFunctionLiteralIdReindexer final
: public AstTraversalVisitor<AstFunctionLiteralIdReindexer> {
public:
AstFunctionLiteralIdReindexer(size_t stack_limit, int delta);
AstFunctionLiteralIdReindexer(const AstFunctionLiteralIdReindexer&) = delete;
AstFunctionLiteralIdReindexer& operator=(
const AstFunctionLiteralIdReindexer&) = delete;
~AstFunctionLiteralIdReindexer();
void Reindex(Expression* pattern);
......@@ -42,8 +45,6 @@ class AstFunctionLiteralIdReindexer final
#else
void CheckVisited(Expression* expr) {}
#endif
DISALLOW_COPY_AND_ASSIGN(AstFunctionLiteralIdReindexer);
};
} // namespace internal
......
......@@ -30,6 +30,8 @@ class AstTraversalVisitor : public AstVisitor<Subclass> {
public:
explicit AstTraversalVisitor(Isolate* isolate, AstNode* root = nullptr);
explicit AstTraversalVisitor(uintptr_t stack_limit, AstNode* root = nullptr);
AstTraversalVisitor(const AstTraversalVisitor&) = delete;
AstTraversalVisitor& operator=(const AstTraversalVisitor&) = delete;
void Run() {
DCHECK_NOT_NULL(root_);
......@@ -56,8 +58,6 @@ class AstTraversalVisitor : public AstVisitor<Subclass> {
AstNode* root_;
int depth_;
DISALLOW_COPY_AND_ASSIGN(AstTraversalVisitor);
};
// ----------------------------------------------------------------------------
......
......@@ -286,6 +286,8 @@ using AstRawStringMap =
class AstStringConstants final {
public:
AstStringConstants(Isolate* isolate, uint64_t hash_seed);
AstStringConstants(const AstStringConstants&) = delete;
AstStringConstants& operator=(const AstStringConstants&) = delete;
#define F(name, str) \
const AstRawString* name##_string() const { return name##_string_; }
......@@ -303,8 +305,6 @@ class AstStringConstants final {
#define F(name, str) AstRawString* name##_string_;
AST_STRING_CONSTANTS(F)
#undef F
DISALLOW_COPY_AND_ASSIGN(AstStringConstants);
};
class AstValueFactory {
......
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