28 #ifndef V8_LIVEOBJECTLIST_INL_H_
29 #define V8_LIVEOBJECTLIST_INL_H_
38 #ifdef LIVE_OBJECT_LIST
41 if (!NeedLOLProcessing())
return;
47 if (!NeedLOLProcessing())
return;
49 if (FLAG_verify_lol) {
57 if (!NeedLOLProcessing())
return;
58 IterateElementsPrivate(v);
64 if (last()) DoProcessNonLive(obj);
69 if (LiveObjectList::NeedLOLProcessing()) {
70 UpdateLiveObjectListVisitor update_visitor;
76 LiveObjectList* LiveObjectList::FindLolForId(
int id,
77 LiveObjectList* start_lol) {
79 LiveObjectList* lol = start_lol;
81 if (lol->id() == id) {
94 inline LiveObjectList::Element*
95 LiveObjectList::FindElementFor(
T (*GetValue)(LiveObjectList::Element*),
T key) {
96 LiveObjectList* lol = last();
98 Element* elements = lol->elements_;
99 for (
int i = 0; i < lol->obj_count_; i++) {
100 Element* element = &elements[i];
101 if (GetValue(element) == key) {
111 inline int LiveObjectList::GetElementId(LiveObjectList::Element* element) {
117 LiveObjectList::GetElementObj(LiveObjectList::Element* element) {
118 return element->obj_;
121 #endif // LIVE_OBJECT_LIST
125 #endif // V8_LIVEOBJECTLIST_INL_H_
static void IterateElements(ObjectVisitor *v)
#define T(name, string, precedence)
static void UpdateReferencesForScavengeGC()
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
static void ProcessNonLive(HeapObject *obj)