Move vm into subdir
This commit is contained in:
15
vm/stackframe.go
Normal file
15
vm/stackframe.go
Normal 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),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user