Commit 3a4781c7 authored by Zhi An Ng's avatar Zhi An Ng Committed by Commit Bot

[cleanup][builtins] Remove uses of DISALLOW_COPY_AND_ASSIGN

Bug: v8:11074
Change-Id: Iccb5daa414f4a0be0820f4c19416c11374ffc17e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2558266Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71471}
parent 2c26fe57
...@@ -151,14 +151,14 @@ class RelocatableArguments : public BuiltinArguments, public Relocatable { ...@@ -151,14 +151,14 @@ class RelocatableArguments : public BuiltinArguments, public Relocatable {
RelocatableArguments(Isolate* isolate, int length, Address* arguments) RelocatableArguments(Isolate* isolate, int length, Address* arguments)
: BuiltinArguments(length, arguments), Relocatable(isolate) {} : BuiltinArguments(length, arguments), Relocatable(isolate) {}
RelocatableArguments(const RelocatableArguments&) = delete;
RelocatableArguments& operator=(const RelocatableArguments&) = delete;
inline void IterateInstance(RootVisitor* v) override { inline void IterateInstance(RootVisitor* v) override {
if (length() == 0) return; if (length() == 0) return;
v->VisitRootPointers(Root::kRelocatable, nullptr, first_slot(), v->VisitRootPointers(Root::kRelocatable, nullptr, first_slot(),
last_slot() + 1); last_slot() + 1);
} }
private:
DISALLOW_COPY_AND_ASSIGN(RelocatableArguments);
}; };
} // namespace } // namespace
......
...@@ -40,6 +40,9 @@ class Builtins { ...@@ -40,6 +40,9 @@ class Builtins {
public: public:
explicit Builtins(Isolate* isolate) : isolate_(isolate) {} explicit Builtins(Isolate* isolate) : isolate_(isolate) {}
Builtins(const Builtins&) = delete;
Builtins& operator=(const Builtins&) = delete;
void TearDown(); void TearDown();
// Disassembler support. // Disassembler support.
...@@ -250,8 +253,6 @@ class Builtins { ...@@ -250,8 +253,6 @@ class Builtins {
int js_entry_handler_offset_ = 0; int js_entry_handler_offset_ = 0;
friend class SetupIsolateDelegate; friend class SetupIsolateDelegate;
DISALLOW_COPY_AND_ASSIGN(Builtins);
}; };
Builtins::Name ExampleBuiltinForTorqueFunctionPointerType( Builtins::Name ExampleBuiltinForTorqueFunctionPointerType(
......
...@@ -24,6 +24,10 @@ class BuiltinsConstantsTableBuilder final { ...@@ -24,6 +24,10 @@ class BuiltinsConstantsTableBuilder final {
public: public:
explicit BuiltinsConstantsTableBuilder(Isolate* isolate); explicit BuiltinsConstantsTableBuilder(Isolate* isolate);
BuiltinsConstantsTableBuilder(const BuiltinsConstantsTableBuilder&) = delete;
BuiltinsConstantsTableBuilder& operator=(
const BuiltinsConstantsTableBuilder&) = delete;
// Returns the index within the builtins constants table for the given // Returns the index within the builtins constants table for the given
// object, possibly adding the object to the table. Objects are deduplicated. // object, possibly adding the object to the table. Objects are deduplicated.
uint32_t AddObject(Handle<Object> object); uint32_t AddObject(Handle<Object> object);
...@@ -49,8 +53,6 @@ class BuiltinsConstantsTableBuilder final { ...@@ -49,8 +53,6 @@ class BuiltinsConstantsTableBuilder final {
// Maps objects to corresponding indices within the constants list. // Maps objects to corresponding indices within the constants list.
using ConstantsMap = IdentityMap<uint32_t, FreeStoreAllocationPolicy>; using ConstantsMap = IdentityMap<uint32_t, FreeStoreAllocationPolicy>;
ConstantsMap map_; ConstantsMap map_;
DISALLOW_COPY_AND_ASSIGN(BuiltinsConstantsTableBuilder);
}; };
} // namespace internal } // namespace internal
......
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