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 {
RelocatableArguments(Isolate* isolate, int length, Address* arguments)
: BuiltinArguments(length, arguments), Relocatable(isolate) {}
RelocatableArguments(const RelocatableArguments&) = delete;
RelocatableArguments& operator=(const RelocatableArguments&) = delete;
inline void IterateInstance(RootVisitor* v) override {
if (length() == 0) return;
v->VisitRootPointers(Root::kRelocatable, nullptr, first_slot(),
last_slot() + 1);
}
private:
DISALLOW_COPY_AND_ASSIGN(RelocatableArguments);
};
} // namespace
......
......@@ -40,6 +40,9 @@ class Builtins {
public:
explicit Builtins(Isolate* isolate) : isolate_(isolate) {}
Builtins(const Builtins&) = delete;
Builtins& operator=(const Builtins&) = delete;
void TearDown();
// Disassembler support.
......@@ -250,8 +253,6 @@ class Builtins {
int js_entry_handler_offset_ = 0;
friend class SetupIsolateDelegate;
DISALLOW_COPY_AND_ASSIGN(Builtins);
};
Builtins::Name ExampleBuiltinForTorqueFunctionPointerType(
......
......@@ -24,6 +24,10 @@ class BuiltinsConstantsTableBuilder final {
public:
explicit BuiltinsConstantsTableBuilder(Isolate* isolate);
BuiltinsConstantsTableBuilder(const BuiltinsConstantsTableBuilder&) = delete;
BuiltinsConstantsTableBuilder& operator=(
const BuiltinsConstantsTableBuilder&) = delete;
// Returns the index within the builtins constants table for the given
// object, possibly adding the object to the table. Objects are deduplicated.
uint32_t AddObject(Handle<Object> object);
......@@ -49,8 +53,6 @@ class BuiltinsConstantsTableBuilder final {
// Maps objects to corresponding indices within the constants list.
using ConstantsMap = IdentityMap<uint32_t, FreeStoreAllocationPolicy>;
ConstantsMap map_;
DISALLOW_COPY_AND_ASSIGN(BuiltinsConstantsTableBuilder);
};
} // 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