28 #ifndef V8_UNBOUND_QUEUE_INL_H_
29 #define V8_UNBOUND_QUEUE_INL_H_
36 template<
typename Record>
37 struct UnboundQueue<Record>::
Node:
public Malloced {
38 explicit Node(
const Record& value)
39 : value(value), next(
NULL) {
47 template<
typename Record>
48 UnboundQueue<Record>::UnboundQueue() {
49 first_ =
new Node(Record());
50 divider_ = last_ =
reinterpret_cast<AtomicWord>(first_);
54 template<
typename Record>
55 UnboundQueue<Record>::~UnboundQueue() {
56 while (first_ !=
NULL) DeleteFirst();
60 template<
typename Record>
61 void UnboundQueue<Record>::DeleteFirst() {
68 template<
typename Record>
69 void UnboundQueue<Record>::Dequeue(Record* rec) {
71 Node* next =
reinterpret_cast<Node*
>(divider_)->next;
77 template<
typename Record>
78 void UnboundQueue<Record>::Enqueue(
const Record& rec) {
79 Node*& next =
reinterpret_cast<Node*
>(last_)->next;
82 while (first_ != reinterpret_cast<Node*>(divider_)) DeleteFirst();
86 template<
typename Record>
87 Record* UnboundQueue<Record>::Peek() {
89 Node* next =
reinterpret_cast<Node*
>(divider_)->next;
95 #endif // V8_UNBOUND_QUEUE_INL_H_
#define ASSERT(condition)
static void ReleaseStore(volatile AtomicWord *ptr, AtomicWord value)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
Node(const Record &value)