V8 Project
v8::internal::UseInterval Class Reference

#include <lithium-allocator.h>

+ Inheritance diagram for v8::internal::UseInterval:
+ Collaboration diagram for v8::internal::UseInterval:

Public Member Functions

 UseInterval (LifetimePosition start, LifetimePosition end)
 
LifetimePosition start () const
 
LifetimePosition end () const
 
UseIntervalnext () const
 
void SplitAt (LifetimePosition pos, Zone *zone)
 
LifetimePosition Intersect (const UseInterval *other) const
 
bool Contains (LifetimePosition point) const
 
- Public Member Functions inherited from v8::internal::ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Private Member Functions

void set_start (LifetimePosition start)
 
void set_next (UseInterval *next)
 

Private Attributes

LifetimePosition start_
 
LifetimePosition end_
 
UseIntervalnext_
 

Friends

class LiveRange
 

Detailed Description

Definition at line 121 of file lithium-allocator.h.

Constructor & Destructor Documentation

◆ UseInterval()

v8::internal::UseInterval::UseInterval ( LifetimePosition  start,
LifetimePosition  end 
)
inline

Definition at line 123 of file lithium-allocator.h.

124  : start_(start), end_(end), next_(NULL) {
125  DCHECK(start.Value() < end.Value());
126  }
LifetimePosition end() const
LifetimePosition start() const
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
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, end(), start(), and v8::internal::LifetimePosition::Value().

Referenced by SplitAt().

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

Member Function Documentation

◆ Contains()

bool v8::internal::UseInterval::Contains ( LifetimePosition  point) const
inline

Definition at line 144 of file lithium-allocator.h.

144  {
145  return start_.Value() <= point.Value() && point.Value() < end_.Value();
146  }

References end_, start_, and v8::internal::LifetimePosition::Value().

Referenced by SplitAt(), and v8::internal::LiveRange::SplitAt().

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

◆ end()

LifetimePosition v8::internal::UseInterval::end ( ) const
inline

Definition at line 129 of file lithium-allocator.h.

129 { return end_; }

References end_.

Referenced by v8::internal::LiveRange::AddUseInterval(), v8::internal::LiveRange::End(), v8::internal::LiveRange::EnsureInterval(), v8::internal::LiveRange::ShortenTo(), and UseInterval().

+ Here is the caller graph for this function:

◆ Intersect()

LifetimePosition v8::internal::UseInterval::Intersect ( const UseInterval other) const
inline

Definition at line 138 of file lithium-allocator.h.

138  {
139  if (other->start().Value() < start_.Value()) return other->Intersect(this);
140  if (other->start().Value() < end_.Value()) return other->start();
141  return LifetimePosition::Invalid();
142  }
static LifetimePosition Invalid()

References end_, Intersect(), v8::internal::LifetimePosition::Invalid(), start(), start_, and v8::internal::LifetimePosition::Value().

Referenced by v8::internal::LiveRange::FirstIntersection(), and Intersect().

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

◆ next()

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

Definition at line 130 of file lithium-allocator.h.

130 { return next_; }

References next_.

Referenced by v8::internal::LiveRange::EnsureInterval(), v8::internal::LiveRange::FirstIntersection(), set_next(), and v8::internal::LiveRange::SplitAt().

+ Here is the caller graph for this function:

◆ set_next()

void v8::internal::UseInterval::set_next ( UseInterval next)
inlineprivate

Definition at line 150 of file lithium-allocator.h.

150 { next_ = next; }
UseInterval * next() const

References next(), and next_.

Referenced by v8::internal::LiveRange::AddUseInterval().

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

◆ set_start()

void v8::internal::UseInterval::set_start ( LifetimePosition  start)
inlineprivate

Definition at line 149 of file lithium-allocator.h.

149 { start_ = start; }

References start(), and start_.

Referenced by v8::internal::LiveRange::AddUseInterval(), and v8::internal::LiveRange::ShortenTo().

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

◆ SplitAt()

void v8::internal::UseInterval::SplitAt ( LifetimePosition  pos,
Zone zone 
)

Definition at line 59 of file lithium-allocator.cc.

59  {
60  DCHECK(Contains(pos) && pos.Value() != start().Value());
61  UseInterval* after = new(zone) UseInterval(pos, end_);
62  after->next_ = next_;
63  next_ = after;
64  end_ = pos;
65 }
UseInterval(LifetimePosition start, LifetimePosition end)
bool Contains(LifetimePosition point) const

References Contains(), DCHECK, end_, next_, start(), UseInterval(), and v8::internal::LifetimePosition::Value().

Referenced by v8::internal::LiveRange::SplitAt().

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

◆ start()

LifetimePosition v8::internal::UseInterval::start ( ) const
inline

Friends And Related Function Documentation

◆ LiveRange

friend class LiveRange
friend

Definition at line 156 of file lithium-allocator.h.

Member Data Documentation

◆ end_

LifetimePosition v8::internal::UseInterval::end_
private

◆ next_

UseInterval* v8::internal::UseInterval::next_
private

◆ start_

LifetimePosition v8::internal::UseInterval::start_
private

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