Class CallStackFrame

java.lang.Object
svm.CallStackFrame

public class CallStackFrame extends Object

CallStackFrame.

FRAME:
	EXPORT ?  -------.  FRAME HEAD
	IMPORT           |
	...              |
	IMPORT           |
	RETURN ADDRESS   |
	LOCAL            |
	...              |
	LOCAL -----------'
	STACK -----------.  LOCAL STACK
	...              |
	STACK -----------'

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • ident

      public String ident
      Routine ident
    • rutAddr

      public ProgramAddress rutAddr
      The Routine Address
    • rtStackIndex

      public int rtStackIndex
      The Runtime Stack index
    • exportSize

      public int exportSize
      The Export size
    • importSize

      public int importSize
      The Inport size
    • localSize

      public int localSize
      The locals size
  • Constructor Details

    • CallStackFrame

      public CallStackFrame(String ident, int rtStackIndex, int exportSize, int importSize)
      Construct a new CallStackFrame with the given parameters
      Parameters:
      ident - The Routine ident
      rtStackIndex - The Runtime Stack index
      exportSize - The Export size
      importSize - The Inport size
  • Method Details

    • headSize

      public int headSize()
      Returns the Frame Head size
      Returns:
      the Frame Head size
    • returnAddress

      public ProgramAddress returnAddress()
      Returns the return address
      Returns:
      the return address
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLine

      public String toLine()
      Listing utility: Edit the CallStackFrame as a single line
      Returns:
      the CallStackFrame as a single line
    • print

      public void print()
      Print the CallStackFrame
    • dump

      public void dump(String title)
      Dump the CallStackFrame
      Parameters:
      title - the title of the dump printout