Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
dart::PcRelativeCallPatternBase Class Reference

#include <instructions_arm.h>

Inheritance diagram for dart::PcRelativeCallPatternBase:
dart::ValueObject dart::PcRelativeCallPattern dart::PcRelativeTailCallPattern

Public Member Functions

 PcRelativeCallPatternBase (uword pc)
 
int32_t distance ()
 
void set_distance (int32_t distance)
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Static Public Attributes

static constexpr intptr_t kLowerCallingRange
 
static constexpr intptr_t kUpperCallingRange
 
static constexpr int kLengthInBytes = 1 * Instr::kInstrSize
 

Protected Attributes

uword pc_
 

Detailed Description

Definition at line 183 of file instructions_arm.h.

Constructor & Destructor Documentation

◆ PcRelativeCallPatternBase()

dart::PcRelativeCallPatternBase::PcRelativeCallPatternBase ( uword  pc)
inlineexplicit

Definition at line 191 of file instructions_arm.h.

Member Function Documentation

◆ distance()

int32_t dart::PcRelativeCallPatternBase::distance ( )
inline

Definition at line 195 of file instructions_arm.h.

195 {
196#if !defined(DART_PRECOMPILED_RUNTIME)
198 *reinterpret_cast<int32_t*>(pc_));
199#else
200 UNREACHABLE();
201 return 0;
202#endif
203 }
#define UNREACHABLE()
Definition: assert.h:248
static int32_t DecodeBranchOffset(int32_t inst)

◆ set_distance()

void dart::PcRelativeCallPatternBase::set_distance ( int32_t  distance)
inline

Definition at line 205 of file instructions_arm.h.

205 {
206#if !defined(DART_PRECOMPILED_RUNTIME)
207 int32_t* word = reinterpret_cast<int32_t*>(pc_);
209#else
210 UNREACHABLE();
211#endif
212 }
static int32_t EncodeBranchOffset(int32_t offset, int32_t inst)
intptr_t word
Definition: globals.h:500

Member Data Documentation

◆ kLengthInBytes

constexpr int dart::PcRelativeCallPatternBase::kLengthInBytes = 1 * Instr::kInstrSize
staticconstexpr

Definition at line 193 of file instructions_arm.h.

◆ kLowerCallingRange

constexpr intptr_t dart::PcRelativeCallPatternBase::kLowerCallingRange
staticconstexpr
Initial value:
=
-(1 << 25) + Instr::kPCReadOffset

Definition at line 186 of file instructions_arm.h.

◆ kUpperCallingRange

constexpr intptr_t dart::PcRelativeCallPatternBase::kUpperCallingRange
staticconstexpr
Initial value:

Definition at line 188 of file instructions_arm.h.

◆ pc_

uword dart::PcRelativeCallPatternBase::pc_
protected

Definition at line 215 of file instructions_arm.h.


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