V8 Project
v8::internal::DeferredHandles Class Reference

#include <api.h>

+ Collaboration diagram for v8::internal::DeferredHandles:

Public Member Functions

 ~DeferredHandles ()
 

Private Member Functions

 DeferredHandles (Object **first_block_limit, Isolate *isolate)
 
void Iterate (ObjectVisitor *v)
 

Private Attributes

List< Object ** > blocks_
 
DeferredHandlesnext_
 
DeferredHandlesprevious_
 
Object ** first_block_limit_
 
Isolateisolate_
 

Friends

class HandleScopeImplementer
 
class Isolate
 

Detailed Description

Definition at line 457 of file api.h.

Constructor & Destructor Documentation

◆ ~DeferredHandles()

v8::internal::DeferredHandles::~DeferredHandles ( )

Definition at line 7639 of file api.cc.

7639  {
7641 
7642  for (int i = 0; i < blocks_.length(); i++) {
7643 #ifdef ENABLE_HANDLE_ZAPPING
7644  HandleScope::ZapRange(blocks_[i], &blocks_[i][kHandleBlockSize]);
7645 #endif
7647  }
7648 }
List< Object ** > blocks_
Definition: api.h:472
void ReturnBlock(Object **block)
Definition: api.h:540
void UnlinkDeferredHandles(DeferredHandles *deferred_handles)
Definition: isolate.cc:2115
HandleScopeImplementer * handle_scope_implementer()
Definition: isolate.h:901
const int kHandleBlockSize
Definition: api.h:596

References v8::internal::kHandleBlockSize.

◆ DeferredHandles()

v8::internal::DeferredHandles::DeferredHandles ( Object **  first_block_limit,
Isolate isolate 
)
inlineprivate

Definition at line 462 of file api.h.

463  : next_(NULL),
464  previous_(NULL),
465  first_block_limit_(first_block_limit),
466  isolate_(isolate) {
467  isolate->LinkDeferredHandles(this);
468  }
DeferredHandles * previous_
Definition: api.h:474
Object ** first_block_limit_
Definition: api.h:475
DeferredHandles * next_
Definition: api.h:473
void LinkDeferredHandles(DeferredHandles *deferred_handles)
Definition: isolate.cc:2106
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::Isolate::LinkDeferredHandles().

+ Here is the call graph for this function:

Member Function Documentation

◆ Iterate()

void v8::internal::DeferredHandles::Iterate ( ObjectVisitor v)
private

Definition at line 7651 of file api.cc.

7651  {
7652  DCHECK(!blocks_.is_empty());
7653 
7654  DCHECK((first_block_limit_ >= blocks_.first()) &&
7655  (first_block_limit_ <= &(blocks_.first())[kHandleBlockSize]));
7656 
7657  v->VisitPointers(blocks_.first(), first_block_limit_);
7658 
7659  for (int i = 1; i < blocks_.length(); i++) {
7660  v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]);
7661  }
7662 }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and v8::internal::kHandleBlockSize.

Friends And Related Function Documentation

◆ HandleScopeImplementer

friend class HandleScopeImplementer
friend

Definition at line 478 of file api.h.

◆ Isolate

friend class Isolate
friend

Definition at line 479 of file api.h.

Member Data Documentation

◆ blocks_

List<Object**> v8::internal::DeferredHandles::blocks_
private

Definition at line 472 of file api.h.

Referenced by v8::internal::HandleScopeImplementer::Detach().

◆ first_block_limit_

Object** v8::internal::DeferredHandles::first_block_limit_
private

Definition at line 475 of file api.h.

◆ isolate_

Isolate* v8::internal::DeferredHandles::isolate_
private

Definition at line 476 of file api.h.

◆ next_

DeferredHandles* v8::internal::DeferredHandles::next_
private

◆ previous_

DeferredHandles* v8::internal::DeferredHandles::previous_
private

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