chromium/v8/src/heap/large-page-metadata.h

// Copyright 2023 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_HEAP_LARGE_PAGE_METADATA_H_
#define V8_HEAP_LARGE_PAGE_METADATA_H_

#include "src/heap/mutable-page-metadata.h"

namespace v8 {
namespace internal {

class LargePageMetadata : public MutablePageMetadata {};

}  // namespace internal

namespace base {
// Define special hash function for page pointers, to be used with std data
// structures, e.g. std::unordered_set<LargePageMetadata*,
// base::hash<LargePageMetadata*>
template <>
struct hash<i::LargePageMetadata*> : hash<i::MemoryChunkMetadata*> {};
template <>
struct hash<const i::LargePageMetadata*> : hash<const i::MemoryChunkMetadata*> {};
}  // namespace base

}  // namespace v8

#endif  // V8_HEAP_LARGE_PAGE_METADATA_H_