Move vm into subdir

This commit is contained in:
Ian Gulliver
2021-11-16 20:41:57 -10:00
parent cf33a52392
commit db33045391
10 changed files with 1 additions and 1 deletions

15
vm/stackframe.go Normal file
View File

@@ -0,0 +1,15 @@
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(16),
}
}