diff options
author | Vincent Ambo <mail@tazj.in> | 2021-10-03T11·20+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-10-19T12·58+0000 |
commit | c318f42c119f3dd13bf0cfd7917bfdd41fea7085 (patch) | |
tree | 19ab277a770dc12fd0ca7b7615b3ba0df38723f8 /users/tazjin/rlox/src/bytecode/opcode.rs | |
parent | ad7e591c8046d6e179476192ef9928d5fae78422 (diff) |
feat(tazjin/rlox): Support local variables r/2978
WIP Change-Id: I78fbc885faaac165c380cbd9aa98b4b64a9b8274 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3685 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/opcode.rs')
-rw-r--r-- | users/tazjin/rlox/src/bytecode/opcode.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/bytecode/opcode.rs b/users/tazjin/rlox/src/bytecode/opcode.rs index c7ccdd89e85f..143a79f41916 100644 --- a/users/tazjin/rlox/src/bytecode/opcode.rs +++ b/users/tazjin/rlox/src/bytecode/opcode.rs @@ -34,4 +34,6 @@ pub enum OpCode { OpDefineGlobal(usize), OpGetGlobal(usize), OpSetGlobal(usize), + OpGetLocal(usize), + OpSetLocal(usize), } |