V8 Project
v8::internal::MarkCompactWeakObjectRetainer Class Reference
+ Inheritance diagram for v8::internal::MarkCompactWeakObjectRetainer:
+ Collaboration diagram for v8::internal::MarkCompactWeakObjectRetainer:

Public Member Functions

virtual ObjectRetainAs (Object *object)
 
- Public Member Functions inherited from v8::internal::WeakObjectRetainer
virtual ~WeakObjectRetainer ()
 

Detailed Description

Definition at line 1854 of file mark-compact.cc.

Member Function Documentation

◆ RetainAs()

virtual Object* v8::internal::MarkCompactWeakObjectRetainer::RetainAs ( Object object)
inlinevirtual

Implements v8::internal::WeakObjectRetainer.

Definition at line 1856 of file mark-compact.cc.

1856  {
1857  if (Marking::MarkBitFrom(HeapObject::cast(object)).Get()) {
1858  return object;
1859  } else if (object->IsAllocationSite() &&
1860  !(AllocationSite::cast(object)->IsZombie())) {
1861  // "dead" AllocationSites need to live long enough for a traversal of new
1862  // space. These sites get a one-time reprieve.
1863  AllocationSite* site = AllocationSite::cast(object);
1864  site->MarkZombie();
1865  site->GetHeap()->mark_compact_collector()->MarkAllocationSite(site);
1866  return object;
1867  } else {
1868  return NULL;
1869  }
1870  }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References v8::internal::HeapObject::GetHeap(), v8::internal::Heap::mark_compact_collector(), v8::internal::MarkCompactCollector::MarkAllocationSite(), v8::internal::AllocationSite::MarkZombie(), and NULL.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: