Commit a495c35e authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[zone] Remove unneeded ZoneAllocator::address

This method is not specified as part of the Allocator requirement, as
is deprecated on std::allocator since C++17.

This also removes the only violation of the 'runtime/references'
cpplint check in the zone directory.

R=mlippautz@chromium.org

Bug: v8:9429, v8:9396
Change-Id: I77c28afbf3c0e122c5ac27796b9f46b6c9455e61
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1690830Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62559}
parent 6786707f
......@@ -47,9 +47,6 @@ class ZoneAllocator {
template <typename U>
friend class ZoneAllocator;
T* address(T& x) const { return &x; } // NOLINT(runtime/references)
const T* address(const T& x) const { return &x; }
T* allocate(size_t n, const void* hint = nullptr) {
return static_cast<T*>(zone_->NewArray<T>(static_cast<int>(n)));
}
......
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