summaryrefslogtreecommitdiff
path: root/src/bytecode.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-03-28 15:42:05 -0400
committerAdrian Thurston <thurston@complang.org>2015-03-28 15:42:05 -0400
commitefab3b8fe98850e7c092001e162d977e5f16b94b (patch)
tree541edd1962d18f732d45b1083dfd1a159d607c4d /src/bytecode.h
parent195b62d89fa85440a7589bf3719138d1cd9a2da5 (diff)
downloadcolm-efab3b8fe98850e7c092001e162d977e5f16b94b.tar.gz
work in progress on a contiguous arg space prepared by caller
Also fixed the tree downref in exit unwind. Not always a tree.
Diffstat (limited to 'src/bytecode.h')
-rw-r--r--src/bytecode.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bytecode.h b/src/bytecode.h
index 3ccab2a9..c24913bb 100644
--- a/src/bytecode.h
+++ b/src/bytecode.h
@@ -74,13 +74,14 @@ typedef unsigned long colm_value_t;
#define IN_TST_NZ_TREE 0xd1
-// 0xe8
-// 0xe9
// 0xea
// 0xeb
// 0xec
// 0xd4
+#define IN_PREP_ARGS 0xe8
+#define IN_CLEAR_ARGS 0xe9
+
#define IN_GEN_ITER_FROM_REF 0xd3
#define IN_GEN_ITER_DESTROY 0xd5
#define IN_GEN_ITER_GET_CUR_R 0xdf
@@ -577,11 +578,12 @@ typedef Tree **StackPtr;
#define SIZEOF_HALF 2
#define SIZEOF_WORD sizeof(Word)
-typedef struct _Execution
+typedef struct colm_execution
{
Tree **framePtr;
Tree **iframePtr;
long frameId;
+ Tree **callArgs;
long rcodeUnitLen;