From 93f8f31b6d6d9c0335e9cb4c7d9193d5ed2eb26d Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 3 Feb 2025 17:56:11 -0500 Subject: [PATCH] Fix compiler bug --- dust-lang/src/compiler/mod.rs | 2 +- dust-lang/src/vm/action.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dust-lang/src/compiler/mod.rs b/dust-lang/src/compiler/mod.rs index 4fc2dd5..371380b 100644 --- a/dust-lang/src/compiler/mod.rs +++ b/dust-lang/src/compiler/mod.rs @@ -697,7 +697,7 @@ impl<'src> Compiler<'src> { ) -> Result<(Operand, bool), CompileError> { let (argument, push_back) = match instruction.operation() { Operation::LOAD_CONSTANT => (Operand::Constant(instruction.b_field()), false), - Operation::POINT => (Operand::Register(instruction.a_field()), false), + Operation::POINT => (instruction.b_as_operand(), false), Operation::LOAD_BOOLEAN | Operation::LOAD_LIST | Operation::LOAD_SELF diff --git a/dust-lang/src/vm/action.rs b/dust-lang/src/vm/action.rs index fd01a93..52d4307 100644 --- a/dust-lang/src/vm/action.rs +++ b/dust-lang/src/vm/action.rs @@ -99,10 +99,6 @@ pub fn load_function(instruction: InstructionBuilder, thread: &mut Thread) {} pub fn load_self(instruction: InstructionBuilder, thread: &mut Thread) {} -pub fn get_local(instruction: InstructionBuilder, thread: &mut Thread) {} - -pub fn set_local(instruction: InstructionBuilder, thread: &mut Thread) {} - pub fn add(instruction: InstructionBuilder, thread: &mut Thread) {} pub fn subtract(instruction: InstructionBuilder, thread: &mut Thread) {}