Files
subcoding/stackframe.go

16 lines
355 B
Go
Raw Normal View History

2021-11-15 20:44:26 -10:00
package vm
2021-11-16 15:39:12 -10:00
type stackFrame struct {
previousFunctionIndex int64
previousInstructionIndex int64
2021-11-16 16:21:32 -10:00
functionMemory *memory
}
func newStackFrame(state *State) *stackFrame {
return &stackFrame{
previousFunctionIndex: state.functionIndex,
previousInstructionIndex: state.instructionIndex,
functionMemory: newMemory(16),
}
2021-11-15 20:44:26 -10:00
}