Files
subcoding/vm/stackframe.go
2021-11-20 18:27:06 -10:00

16 lines
385 B
Go

package vm
type stackFrame struct {
previousFunctionIndex int64
previousInstructionIndex int64
functionMemory *Memory
}
func newStackFrame(state *State) *stackFrame {
return &stackFrame{
previousFunctionIndex: state.functionIndex,
previousInstructionIndex: state.instructionIndex,
functionMemory: NewMemory(state.program.FunctionMemorySize),
}
}