diff options
Diffstat (limited to 'src/bytecode/chunk.h')
-rwxr-xr-x | src/bytecode/chunk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bytecode/chunk.h b/src/bytecode/chunk.h index 1e88ea0..a3e02d1 100755 --- a/src/bytecode/chunk.h +++ b/src/bytecode/chunk.h | |||
@@ -12,10 +12,16 @@ typedef struct LineInfo { | |||
12 | } LineInfo; | 12 | } LineInfo; |
13 | 13 | ||
14 | typedef struct Chunk { | 14 | typedef struct Chunk { |
15 | // Program code. | ||
15 | u8 *code; | 16 | u8 *code; |
17 | // Compile time constants. | ||
16 | Object *constants; | 18 | Object *constants; |
19 | // Contains debugging information for every code operation. | ||
17 | LineInfo *lines; | 20 | LineInfo *lines; |
21 | // Chunk name. | ||
18 | char *name; | 22 | char *name; |
23 | // Parameters | ||
24 | StringView *params; | ||
19 | } Chunk; | 25 | } Chunk; |
20 | 26 | ||
21 | #define NEW_CHUNK(NAME) chunk_init((StringView){(NAME), sizeof(NAME)}) | 27 | #define NEW_CHUNK(NAME) chunk_init((StringView){(NAME), sizeof(NAME)}) |