diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-05 04:15:17 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-05 04:15:20 +0100 |
commit | 9ee73a8459eb2bb58adc29da02de312b7e4e7dca (patch) | |
tree | f41bddde050c61e254af8ba4c53a3bc11ca7b804 /vm.c | |
parent | 93fe66fb8ef5c731b46a30a804f74b4bf3b133d7 (diff) |
refactor hashtables, and use objstrings for keys
doesn't yet work without string interning, which will require
further refactoring
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -55,17 +55,6 @@ Vm vm_new(Chunk *ch) { void runvm(Chunk *ch) { - // Chunk ch = chunk_new(); - - // chunk_wbc(&ch, OP_LOADK); - // chunk_wbc(&ch, chunk_wconst(&ch, VAL_NUM(10.0))); - // chunk_wbc(&ch, OP_LOADK); - // chunk_wbc(&ch, chunk_wconst(&ch, VAL_NUM(3.0))); - // chunk_wbc(&ch, OP_DIV); - // chunk_wbc(&ch, OP_PRINT); - - // chunk_wbc(&ch, OP_RET); - disasm_chunk(ch); |