Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
dart::compiler::StackRegisterScope Class Reference
Inheritance diagram for dart::compiler::StackRegisterScope:
dart::ValueObject

Public Member Functions

 StackRegisterScope (Assembler *assembler, Register *reg, intptr_t depth, Register alt=TMP)
 
 ~StackRegisterScope ()
 

Static Public Attributes

static constexpr intptr_t kNoDepth = kIntptrMin
 

Detailed Description

Definition at line 2727 of file stub_code_compiler.cc.

Constructor & Destructor Documentation

◆ StackRegisterScope()

dart::compiler::StackRegisterScope::StackRegisterScope ( Assembler assembler,
Register reg,
intptr_t  depth,
Register  alt = TMP 
)
inline

Definition at line 2729 of file stub_code_compiler.cc.

2733 : assembler(assembler), reg_(reg), depth_(depth), alt_(alt) {
2734 if (depth_ != kNoDepth) {
2735 ASSERT(depth_ >= 0);
2736 ASSERT(*reg_ == kNoRegister);
2737 ASSERT(alt_ != kNoRegister);
2738 __ LoadFromStack(alt_, depth_);
2739 *reg_ = alt_;
2740 } else {
2741 ASSERT(*reg_ != kNoRegister);
2742 }
2743 }
#define ASSERT(E)
@ kNoRegister
Definition: constants_arm.h:99
#define __

◆ ~StackRegisterScope()

dart::compiler::StackRegisterScope::~StackRegisterScope ( )
inline

Definition at line 2745 of file stub_code_compiler.cc.

2745 {
2746 if (depth_ != kNoDepth) {
2747 __ StoreToStack(alt_, depth_);
2748 *reg_ = kNoRegister;
2749 }
2750 }

Member Data Documentation

◆ kNoDepth

constexpr intptr_t dart::compiler::StackRegisterScope::kNoDepth = kIntptrMin
staticconstexpr

Definition at line 2752 of file stub_code_compiler.cc.


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