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

#include <linearscan.h>

Inheritance diagram for dart::UsePosition:
dart::ZoneAllocated

Public Member Functions

 UsePosition (intptr_t pos, UsePosition *next, Location *location_slot)
 
Locationlocation_slot () const
 
void set_location_slot (Location *location_slot)
 
Location hint () const
 
void set_hint (Location *hint)
 
bool HasHint () const
 
void set_next (UsePosition *next)
 
UsePositionnext () const
 
intptr_t pos () const
 
- 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)
 

Detailed Description

Definition at line 389 of file linearscan.h.

Constructor & Destructor Documentation

◆ UsePosition()

dart::UsePosition::UsePosition ( intptr_t  pos,
UsePosition next,
Location location_slot 
)
inline

Definition at line 391 of file linearscan.h.

392 : pos_(pos), location_slot_(location_slot), hint_(nullptr), next_(next) {
393 ASSERT(location_slot != nullptr);
394 }
Location * location_slot() const
Definition: linearscan.h:396
intptr_t pos() const
Definition: linearscan.h:413
UsePosition * next() const
Definition: linearscan.h:411
#define ASSERT(E)

Member Function Documentation

◆ HasHint()

bool dart::UsePosition::HasHint ( ) const
inline

Definition at line 408 of file linearscan.h.

408{ return (hint_ != nullptr) && !hint_->IsUnallocated(); }
bool IsUnallocated() const
Definition: locations.h:341

◆ hint()

Location dart::UsePosition::hint ( ) const
inline

Definition at line 401 of file linearscan.h.

401 {
402 ASSERT(HasHint());
403 return *hint_;
404 }
bool HasHint() const
Definition: linearscan.h:408

◆ location_slot()

Location * dart::UsePosition::location_slot ( ) const
inline

Definition at line 396 of file linearscan.h.

396{ return location_slot_; }

◆ next()

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

Definition at line 411 of file linearscan.h.

411{ return next_; }

◆ pos()

intptr_t dart::UsePosition::pos ( ) const
inline

Definition at line 413 of file linearscan.h.

413{ return pos_; }

◆ set_hint()

void dart::UsePosition::set_hint ( Location hint)
inline

Definition at line 406 of file linearscan.h.

406{ hint_ = hint; }
Location hint() const
Definition: linearscan.h:401

◆ set_location_slot()

void dart::UsePosition::set_location_slot ( Location location_slot)
inline

Definition at line 397 of file linearscan.h.

397 {
398 location_slot_ = location_slot;
399 }

◆ set_next()

void dart::UsePosition::set_next ( UsePosition next)
inline

Definition at line 410 of file linearscan.h.

410{ next_ = next; }

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