5#ifndef V8_OBJECTS_INTERNAL_INDEX_H_
6#define V8_OBJECTS_INTERNAL_INDEX_H_
40 return static_cast<uint32_t
>(
entry_);
44 return static_cast<int>(
entry_);
48 return entry_ == other.entry_;
54 return entry_ != other.entry_;
62 return entry_ < other.entry_;
79 static const size_t kNotFound = std::numeric_limits<size_t>::max();
Range(size_t min, size_t max)
InternalIndex & operator++()
bool is_not_found() const
static const size_t kNotFound
bool operator!=(const InternalIndex &other) const
bool operator==(const InternalIndex &other) const
static InternalIndex NotFound()
constexpr InternalIndex(size_t raw)
constexpr int as_int() const
V8_WARN_UNUSED_RESULT InternalIndex adjust_down(size_t subtract) const
uint32_t as_uint32() const
V8_WARN_UNUSED_RESULT InternalIndex adjust_up(size_t add) const
InternalIndex operator*()
bool operator<(const InternalIndex &other) const
#define DCHECK_LE(v1, v2)
#define DCHECK_GE(v1, v2)
#define DCHECK_LT(v1, v2)
#define V8_WARN_UNUSED_RESULT