V8 Project
v8::internal::Segment Class Reference
+ Collaboration diagram for v8::internal::Segment:

Public Member Functions

void Initialize (Segment *next, int size)
 
Segmentnext () const
 
void clear_next ()
 
int size () const
 
int capacity () const
 
Address start () const
 
Address end () const
 

Private Member Functions

Address address (int n) const
 

Private Attributes

Segmentnext_
 
int size_
 

Detailed Description

Definition at line 20 of file zone.cc.

Member Function Documentation

◆ address()

Address v8::internal::Segment::address ( int  n) const
inlineprivate

Definition at line 38 of file zone.cc.

38  {
39  return Address(this) + n;
40  }
byte * Address
Definition: globals.h:101

Referenced by end(), and start().

+ Here is the caller graph for this function:

◆ capacity()

int v8::internal::Segment::capacity ( ) const
inline

Definition at line 31 of file zone.cc.

31 { return size_ - sizeof(Segment); }

References size_.

Referenced by v8::internal::Zone::DeleteAll().

+ Here is the caller graph for this function:

◆ clear_next()

void v8::internal::Segment::clear_next ( )
inline

Definition at line 28 of file zone.cc.

28 { next_ = NULL; }
Segment * next_
Definition: zone.cc:42
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 next_, and NULL.

Referenced by v8::internal::Zone::DeleteAll().

+ Here is the caller graph for this function:

◆ end()

Address v8::internal::Segment::end ( ) const
inline

Definition at line 34 of file zone.cc.

34 { return address(size_); }
Address address(int n) const
Definition: zone.cc:38

References address(), and size_.

Referenced by v8::internal::Zone::DeleteAll(), and v8::internal::Zone::NewExpand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Initialize()

void v8::internal::Segment::Initialize ( Segment next,
int  size 
)
inline

Definition at line 22 of file zone.cc.

22  {
23  next_ = next;
24  size_ = size;
25  }
Segment * next() const
Definition: zone.cc:27
int size() const
Definition: zone.cc:30

References next(), next_, size(), and size_.

+ Here is the call graph for this function:

◆ next()

Segment* v8::internal::Segment::next ( ) const
inline

Definition at line 27 of file zone.cc.

27 { return next_; }

References next_.

Referenced by v8::internal::Zone::DeleteAll(), v8::internal::Zone::DeleteKeptSegment(), and Initialize().

+ Here is the caller graph for this function:

◆ size()

int v8::internal::Segment::size ( ) const
inline

Definition at line 30 of file zone.cc.

30 { return size_; }

References size_.

Referenced by v8::internal::Zone::DeleteKeptSegment(), Initialize(), and v8::internal::Zone::NewExpand().

+ Here is the caller graph for this function:

◆ start()

Address v8::internal::Segment::start ( ) const
inline

Definition at line 33 of file zone.cc.

33 { return address(sizeof(Segment)); }

References address().

Referenced by v8::internal::Zone::DeleteAll(), and v8::internal::Zone::NewExpand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ next_

Segment* v8::internal::Segment::next_
private

Definition at line 42 of file zone.cc.

Referenced by clear_next(), Initialize(), and next().

◆ size_

int v8::internal::Segment::size_
private

Definition at line 43 of file zone.cc.

Referenced by capacity(), end(), Initialize(), and size().


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