5#ifndef V8_ZONE_ZONE_COMPRESSION_H_
6#define V8_ZONE_ZONE_COMPRESSION_H_
36 "Bad zone alignment");
45 if (
p1 ==
nullptr ||
p2 ==
nullptr)
return true;
50 inline static uint32_t
Compress(
const void* value) {
52 uint32_t compressed_value =
static_cast<uint32_t
>(raw_value &
kOffsetMask);
55 return compressed_value;
59 uint32_t compressed_value) {
61 return base_of(zone_pointer) + compressed_value;
#define COMPRESS_ZONES_BOOL
constexpr bool IsPowerOfTwo(T value)
static constexpr Address kNullAddress
#define DCHECK_IMPLIES(v1, v2)
#define CHECK_EQ(lhs, rhs)
#define DCHECK_LT(v1, v2)
static const size_t kReservationSize
static Address Decompress(const void *zone_pointer, uint32_t compressed_value)
static uint32_t Compress(const void *value)
static const size_t kOffsetMask
static Address base_of(const void *zone_pointer)
static const size_t kReservationAlignment
static bool CheckSameBase(const void *p1, const void *p2)