about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/bytecode/opcode.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-10-02T12·55+0300
committertazjin <mail@tazj.in>2021-10-19T12·58+0000
commitad7e591c8046d6e179476192ef9928d5fae78422 (patch)
tree52347fd8cdd8f7d888746abbd6f66a3a2946de83 /users/tazjin/rlox/src/bytecode/opcode.rs
parent6a38600ce88bbf2d9fa9a3821d7df3ebd8e0d4f3 (diff)
feat(tazjin/rlox): Global variable assignment r/2977
Needed for example code compatibility.

Change-Id: Id83210eaaad7dcfef5aa238dd3a7ec159f6935e9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3684
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.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/bytecode/opcode.rs b/users/tazjin/rlox/src/bytecode/opcode.rs
index 1c23449e76b3..c7ccdd89e85f 100644
--- a/users/tazjin/rlox/src/bytecode/opcode.rs
+++ b/users/tazjin/rlox/src/bytecode/opcode.rs
@@ -33,4 +33,5 @@ pub enum OpCode {
     // Variable management
     OpDefineGlobal(usize),
     OpGetGlobal(usize),
+    OpSetGlobal(usize),
 }