![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <worklist.h>
Public Member Functions | |
V8_INLINE void | Push (EntryType entry) |
V8_INLINE void | Pop (EntryType *entry) |
template<typename Callback > | |
void | Update (Callback callback) |
template<typename Callback > | |
void | Iterate (Callback callback) const |
Segment * | next () const |
void | set_next (Segment *segment) |
![]() | |
constexpr | SegmentBase (uint16_t capacity) |
size_t | Size () const |
size_t | Capacity () const |
bool | IsEmpty () const |
bool | IsFull () const |
void | Clear () |
Static Public Member Functions | |
static Segment * | Create (uint16_t min_segment_size) |
static void | Delete (Segment *segment) |
![]() | |
static SegmentBase * | GetSentinelSegmentAddress () |
Private Member Functions | |
constexpr | Segment (size_t capacity) |
EntryType & | entry (size_t index) |
const EntryType & | entry (size_t index) const |
Static Private Member Functions | |
static constexpr size_t | MallocSizeForCapacity (size_t num_entries) |
static constexpr size_t | CapacityForMallocSize (size_t malloc_size) |
Private Attributes | |
Segment * | next_ = nullptr |
Additional Inherited Members | |
![]() | |
const uint16_t | capacity_ |
uint16_t | index_ = 0 |
Definition at line 215 of file worklist.h.
|
inlineexplicitconstexprprivate |
Definition at line 256 of file worklist.h.
|
inlinestaticconstexprprivate |
Definition at line 252 of file worklist.h.
|
inlinestatic |
Definition at line 218 of file worklist.h.
|
inlinestatic |
Definition at line 235 of file worklist.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 262 of file worklist.h.
void heap::base::Worklist< EntryType, MinSegmentSize >::Segment::Iterate | ( | Callback | callback | ) | const |
Definition at line 295 of file worklist.h.
|
inlinestaticconstexprprivate |
Definition at line 249 of file worklist.h.
|
inline |
void heap::base::Worklist< EntryType, MinSegmentSize >::Segment::Pop | ( | EntryType * | entry | ) |
void heap::base::Worklist< EntryType, MinSegmentSize >::Segment::Push | ( | EntryType | entry | ) |
|
inline |
void heap::base::Worklist< EntryType, MinSegmentSize >::Segment::Update | ( | Callback | callback | ) |
Definition at line 283 of file worklist.h.
|
private |
Definition at line 266 of file worklist.h.