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

#include <locations.h>

Inheritance diagram for dart::PairLocation:
dart::ZoneAllocated

Public Member Functions

 PairLocation ()
 
intptr_t length () const
 
Location At (intptr_t i) const
 
void SetAt (intptr_t i, Location loc)
 
LocationSlotAt (intptr_t i)
 
- 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 608 of file locations.h.

Constructor & Destructor Documentation

◆ PairLocation()

dart::PairLocation::PairLocation ( )
inline

Definition at line 610 of file locations.h.

610 {
611 for (intptr_t i = 0; i < kPairLength; i++) {
612 ASSERT(locations_[i].IsInvalid());
613 }
614 }
#define ASSERT(E)

Member Function Documentation

◆ At()

Location dart::PairLocation::At ( intptr_t  i) const
inline

Definition at line 618 of file locations.h.

618 {
619 ASSERT(i >= 0);
620 ASSERT(i < kPairLength);
621 return locations_[i];
622 }

◆ length()

intptr_t dart::PairLocation::length ( ) const
inline

Definition at line 616 of file locations.h.

616{ return kPairLength; }

◆ SetAt()

void dart::PairLocation::SetAt ( intptr_t  i,
Location  loc 
)
inline

Definition at line 624 of file locations.h.

624 {
625 ASSERT(i >= 0);
626 ASSERT(i < kPairLength);
627 locations_[i] = loc;
628 }

◆ SlotAt()

Location * dart::PairLocation::SlotAt ( intptr_t  i)
inline

Definition at line 630 of file locations.h.

630 {
631 ASSERT(i >= 0);
632 ASSERT(i < kPairLength);
633 return &locations_[i];
634 }

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