5#ifndef V8_CODEGEN_ALIGNED_SLOT_ALLOCATOR_H_
6#define V8_CODEGEN_ALIGNED_SLOT_ALLOCATOR_H_
27 return (bytes + kSlotSize - 1) / kSlotSize;
38 int NextSlot(
int n)
const;
45 int AllocateUnaligned(
int n);
56 static constexpr int kInvalidSlot = -1;
58 static bool IsValid(
int slot) {
return slot > kInvalidSlot; }
60 int next1_ = kInvalidSlot;
61 int next2_ = kInvalidSlot;
static int NumSlotsForWidth(int bytes)
static bool IsValid(int slot)
AlignedSlotAllocator()=default
constexpr int kSystemPointerSize
#define DCHECK_GT(v1, v2)
#define DISALLOW_NEW_AND_DELETE()
#define V8_EXPORT_PRIVATE