From 7cf2065be92855b5b1db31a4bb7afbb4af29a817 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sun, 29 Mar 2026 08:28:28 -1000 Subject: calling functions and some optimizations --- scope.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scope.h') diff --git a/scope.h b/scope.h index 52ae6b1..4d6cc7f 100644 --- a/scope.h +++ b/scope.h @@ -3,16 +3,18 @@ struct storage_location { enum { - REGISTER, - JMP_LABEL, - BP_OFFSET, - IMMEDIATE, + STO_REG, + STO_LABEL, + STO_STACK, + STO_IMM, + STO_FN, } type; union { const struct reg* reg; const char* label; - long long offset; + long long bp_offset; unsigned long long value; + struct fn_decl_node* decl; }; }; -- cgit v1.2.3