summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.h b/vm.h
index 0d1782d..39fc0bb 100644
--- a/vm.h
+++ b/vm.h
@@ -13,7 +13,7 @@ typedef struct _thread Thread;
typedef struct {
size_t ip;
Chunk *ch;
-
+ size_t fp;
} StackFrame;
#define MAXDEPTH 64
@@ -22,6 +22,7 @@ typedef struct _thread {
Chunk *ch;
size_t ip;
Val stack[STACKSIZE];
+ size_t fp;
size_t sp;
StackFrame rstack[MAXDEPTH];
size_t rsp;