summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-21 18:54:53 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-21 19:08:40 -0700
commit14aeadb41737f1765b6f3489f3b8da330aeccf39 (patch)
tree58eeceec013d79b26e024f47a065896e5a44a21d /6/asm.h
parent0bd2678722f5f70a063190d54d12e62420f02b05 (diff)
downloadmc-14aeadb41737f1765b6f3489f3b8da330aeccf39.tar.gz
Get closer to the C ABI
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/6/asm.h b/6/asm.h
index 0797eba..2a4946a 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -130,10 +130,14 @@ struct Insn {
struct Func {
char *name; /* function name */
int isexport; /* is this exported from the asm? */
- size_t stksz; /* stack size */
Type *type; /* type of function */
+
+ Node **args; /* argument list */
+ size_t nargs; /* number of args, including hidden ones */
Htab *stkoff; /* Loc* -> int stackoff map */
+ size_t stksz; /* stack size */
Node *ret; /* return value */
+
Cfg *cfg; /* flow graph */
};