Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
dart::UseInterval Class Reference

#include <linearscan.h>

Inheritance diagram for dart::UseInterval:
dart::ZoneAllocated

Public Member Functions

 UseInterval (intptr_t start, intptr_t end, UseInterval *next)
 
void Print ()
 
intptr_t start () const
 
intptr_t end () const
 
UseIntervalnext () const
 
bool Contains (intptr_t pos) const
 
intptr_t Intersect (UseInterval *other)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Friends

class LiveRange
 

Detailed Description

Definition at line 431 of file linearscan.h.

Constructor & Destructor Documentation

◆ UseInterval()

dart::UseInterval::UseInterval ( intptr_t  start,
intptr_t  end,
UseInterval next 
)
inline

Definition at line 433 of file linearscan.h.

434 : start_(start), end_(end), next_(next) {}
UseInterval * next() const
Definition: linearscan.h:440
intptr_t start() const
Definition: linearscan.h:438
intptr_t end() const
Definition: linearscan.h:439

Member Function Documentation

◆ Contains()

bool dart::UseInterval::Contains ( intptr_t  pos) const
inline

Definition at line 442 of file linearscan.h.

442 {
443 return (start() <= pos) && (pos < end());
444 }
SkPoint pos

◆ end()

intptr_t dart::UseInterval::end ( ) const
inline

Definition at line 439 of file linearscan.h.

439{ return end_; }

◆ Intersect()

intptr_t dart::UseInterval::Intersect ( UseInterval other)

Definition at line 1844 of file linearscan.cc.

1844 {
1845 if (this->start() <= other->start()) {
1846 if (other->start() < this->end()) return other->start();
1847 } else if (this->start() < other->end()) {
1848 return this->start();
1849 }
1850 return kIllegalPosition;
1851}
static constexpr intptr_t kIllegalPosition
Definition: linearscan.cc:35

◆ next()

UseInterval * dart::UseInterval::next ( ) const
inline

Definition at line 440 of file linearscan.h.

440{ return next_; }

◆ Print()

void dart::UseInterval::Print ( )

◆ start()

intptr_t dart::UseInterval::start ( ) const
inline

Definition at line 438 of file linearscan.h.

438{ return start_; }

Friends And Related Function Documentation

◆ LiveRange

friend class LiveRange
friend

Definition at line 451 of file linearscan.h.


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