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

Public Member Functions

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

Private Attributes

Heapheap_
 

Detailed Description

Definition at line 1399 of file heap.cc.

Constructor & Destructor Documentation

◆ ScavengeWeakObjectRetainer()

v8::internal::ScavengeWeakObjectRetainer::ScavengeWeakObjectRetainer ( Heap heap)
inlineexplicit

Definition at line 1401 of file heap.cc.

1401 : heap_(heap) {}

Member Function Documentation

◆ RetainAs()

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

Implements v8::internal::WeakObjectRetainer.

Definition at line 1403 of file heap.cc.

1403  {
1404  if (!heap_->InFromSpace(object)) {
1405  return object;
1406  }
1407 
1408  MapWord map_word = HeapObject::cast(object)->map_word();
1409  if (map_word.IsForwardingAddress()) {
1410  return map_word.ToForwardingAddress();
1411  }
1412  return NULL;
1413  }
bool InFromSpace(Object *object)
Definition: heap-inl.h:334
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 heap_, v8::internal::Heap::InFromSpace(), and NULL.

+ Here is the call graph for this function:

Member Data Documentation

◆ heap_

Heap* v8::internal::ScavengeWeakObjectRetainer::heap_
private

Definition at line 1416 of file heap.cc.

Referenced by RetainAs().


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