![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <worklist.h>
Classes | |
class | Local |
class | Segment |
Public Member Functions | |
Worklist ()=default | |
~Worklist () | |
Worklist (const Worklist &)=delete | |
Worklist & | operator= (const Worklist &)=delete |
bool | IsEmpty () const |
size_t | Size () const |
void | Merge (Worklist< EntryType, MinSegmentSize > &other) |
void | Clear () |
template<typename Callback > | |
void | Update (Callback callback) |
template<typename Callback > | |
void | Iterate (Callback callback) const |
Static Public Attributes | |
static constexpr int | kMinSegmentSize = MinSegmentSize |
Private Member Functions | |
void | Push (Segment *segment) |
bool | Pop (Segment **segment) |
Private Attributes | |
v8::base::Mutex | lock_ |
Segment * | top_ = nullptr |
std::atomic< size_t > | size_ {0} |
Definition at line 57 of file worklist.h.
|
default |
|
inline |
|
delete |
void heap::base::Worklist< EntryType, MinSegmentSize >::Clear | ( | ) |
Definition at line 139 of file worklist.h.
bool heap::base::Worklist< EntryType, MinSegmentSize >::IsEmpty | ( | ) | const |
void heap::base::Worklist< EntryType, MinSegmentSize >::Iterate | ( | Callback | callback | ) | const |
Definition at line 181 of file worklist.h.
void heap::base::Worklist< EntryType, MinSegmentSize >::Merge | ( | Worklist< EntryType, MinSegmentSize > & | other | ) |
Definition at line 189 of file worklist.h.
|
delete |
|
private |
Definition at line 115 of file worklist.h.
|
private |
Definition at line 106 of file worklist.h.
size_t heap::base::Worklist< EntryType, MinSegmentSize >::Size | ( | ) | const |
void heap::base::Worklist< EntryType, MinSegmentSize >::Update | ( | Callback | callback | ) |
|
staticconstexpr |
Definition at line 64 of file worklist.h.
|
mutableprivate |
Definition at line 100 of file worklist.h.
|
private |
Definition at line 102 of file worklist.h.
|
private |
Definition at line 101 of file worklist.h.