tvm
Public Member Functions | Public Attributes | List of all members
tvm::runtime::vm::VMFrame Struct Reference

A representation of a stack frame. More...

#include <vm.h>

Collaboration diagram for tvm::runtime::vm::VMFrame:

Public Member Functions

 VMFrame (Index pc, Index func_index, Index args, const Instruction *code, Index register_file_size)
 

Public Attributes

Index pc
 The return program counter. More...
 
Index func_index
 The index into the function table, points to the caller. More...
 
Index args
 The number of arguments. More...
 
const Instructioncode
 A pointer into the caller function's instructions. More...
 
std::vector< ObjectRefregister_file
 Statically allocated space for objects. More...
 
RegName caller_return_register
 Register in caller's frame to put return value. More...
 

Detailed Description

A representation of a stack frame.

A stack frame is a record containing the information needed to restore the caller's virtual machine state after returning from a function call.

Constructor & Destructor Documentation

◆ VMFrame()

tvm::runtime::vm::VMFrame::VMFrame ( Index  pc,
Index  func_index,
Index  args,
const Instruction code,
Index  register_file_size 
)
inline

Member Data Documentation

◆ args

Index tvm::runtime::vm::VMFrame::args

The number of arguments.

◆ caller_return_register

RegName tvm::runtime::vm::VMFrame::caller_return_register

Register in caller's frame to put return value.

◆ code

const Instruction* tvm::runtime::vm::VMFrame::code

A pointer into the caller function's instructions.

◆ func_index

Index tvm::runtime::vm::VMFrame::func_index

The index into the function table, points to the caller.

◆ pc

Index tvm::runtime::vm::VMFrame::pc

The return program counter.

◆ register_file

std::vector<ObjectRef> tvm::runtime::vm::VMFrame::register_file

Statically allocated space for objects.


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