V8 Project
v8::internal::compiler::UseInterval Class Reference

#include <register-allocator.h>

+ Inheritance diagram for v8::internal::compiler::UseInterval:
+ Collaboration diagram for v8::internal::compiler::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
 
void set_start (LifetimePosition start)
 
void set_next (UseInterval *next)
 
- 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)
 

Public Attributes

LifetimePosition start_
 
LifetimePosition end_
 
UseIntervalnext_
 

Detailed Description

Definition at line 117 of file register-allocator.h.

Constructor & Destructor Documentation

◆ UseInterval()

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

Definition at line 119 of file register-allocator.h.

120  : start_(start), end_(end), next_(NULL) {
121  DCHECK(start.Value() < end.Value());
122  }
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::compiler::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::compiler::UseInterval::Contains ( LifetimePosition  point) const
inline

Definition at line 140 of file register-allocator.h.

140  {
141  return start_.Value() <= point.Value() && point.Value() < end_.Value();
142  }

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

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

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

◆ end()

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

Definition at line 125 of file register-allocator.h.

125 { return end_; }

References end_.

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

+ Here is the caller graph for this function:

◆ Intersect()

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

Definition at line 134 of file register-allocator.h.

134  {
135  if (other->start().Value() < start_.Value()) return other->Intersect(this);
136  if (other->start().Value() < end_.Value()) return other->start();
137  return LifetimePosition::Invalid();
138  }

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

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

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

◆ next()

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

Definition at line 126 of file register-allocator.h.

126 { return next_; }

References next_.

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

+ Here is the caller graph for this function:

◆ set_next()

void v8::internal::compiler::UseInterval::set_next ( UseInterval next)
inline

Definition at line 145 of file register-allocator.h.

145 { next_ = next; }

References next(), and next_.

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

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

◆ set_start()

void v8::internal::compiler::UseInterval::set_start ( LifetimePosition  start)
inline

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

144 { start_ = start; }

References start(), and start_.

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

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

◆ SplitAt()

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

Definition at line 53 of file register-allocator.cc.

53  {
54  DCHECK(Contains(pos) && pos.Value() != start().Value());
55  UseInterval* after = new (zone) UseInterval(pos, end_);
56  after->next_ = next_;
57  next_ = after;
58  end_ = pos;
59 }
UseInterval(LifetimePosition start, LifetimePosition end)
bool Contains(LifetimePosition point) const

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

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

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

◆ start()

Member Data Documentation

◆ end_

LifetimePosition v8::internal::compiler::UseInterval::end_

◆ next_

UseInterval* v8::internal::compiler::UseInterval::next_

◆ start_

LifetimePosition v8::internal::compiler::UseInterval::start_

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