LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
frame::In_Frame Class Reference

Local variable stored in the stack frame. More...

#include <access.hh>

Inheritance diagram for frame::In_Frame:
Collaboration diagram for frame::In_Frame:

Public Member Functions

 In_Frame (int offset)
int offset_get () const
 The offset of this Access.
virtual std::ostream & dump (std::ostream &ostr) const override
 Used for debugging.
virtual tree::rExp exp (const tree::rExp &fp) const override
virtual In_Frameclone () const override
virtual tree::rExp exp () const
 Return a Tree expression that gives the location of THIS. If it is in the frame, then the result is something like Mem (Temp fp + OFFSET).

Private Attributes

int offset_
 The offset from the frame pointer referenced by this Access.

Detailed Description

Local variable stored in the stack frame.

Constructor & Destructor Documentation

frame::In_Frame::In_Frame ( int  offset)

Referenced by clone().

Member Function Documentation

In_Frame * frame::In_Frame::clone ( ) const
overridevirtual
See Also
Access::clone ().

Implements frame::Access.

References In_Frame(), and offset_get().

std::ostream & frame::In_Frame::dump ( std::ostream &  ostr) const
overridevirtual

Used for debugging.

Implements frame::Access.

References offset_.

tree::rExp frame::Access::exp ( ) const
virtualinherited

Return a Tree expression that gives the location of THIS. If it is in the frame, then the result is something like Mem (Temp fp + OFFSET).

Referenced by translate::Access::exp().

tree::rExp frame::In_Frame::exp ( const tree::rExp &  fp) const
overridevirtual
See Also
Access::exp ().

Implements frame::Access.

References tree::Binop::add, and offset_.

int frame::In_Frame::offset_get ( ) const
inline

The offset of this Access.

References offset_.

Referenced by clone().

Member Data Documentation

int frame::In_Frame::offset_
private

The offset from the frame pointer referenced by this Access.

Referenced by dump(), exp(), and offset_get().


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