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

#include <locations_helpers_arm.h>

Public Member Functions

 QRegisterView (QRegister reg)
 
 operator QRegister () const
 
DRegister d (intptr_t i) const
 
SRegister s (intptr_t i) const
 

Detailed Description

Definition at line 20 of file locations_helpers_arm.h.

Constructor & Destructor Documentation

◆ QRegisterView()

dart::QRegisterView::QRegisterView ( QRegister  reg)
inlineexplicit

Definition at line 22 of file locations_helpers_arm.h.

22: reg_(reg) {}

Member Function Documentation

◆ d()

DRegister dart::QRegisterView::d ( intptr_t  i) const
inline

Definition at line 26 of file locations_helpers_arm.h.

26 {
27 ASSERT(0 <= i && i < 2);
28 return static_cast<DRegister>(reg_ * 2 + i);
29 }
#define ASSERT(E)

◆ operator QRegister()

dart::QRegisterView::operator QRegister ( ) const
inline

Definition at line 24 of file locations_helpers_arm.h.

24{ return reg_; }

◆ s()

SRegister dart::QRegisterView::s ( intptr_t  i) const
inline

Definition at line 31 of file locations_helpers_arm.h.

31 {
32 ASSERT(0 <= i && i < 4);
33 ASSERT(reg_ <= Q7);
34 return static_cast<SRegister>(reg_ * 4 + i);
35 }

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