Remove Nop instruction
I forget what it was used for but it's not being used now. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -109,11 +109,6 @@ fn disassemble_chunk(chunk: &Chunk, globals: &Vec<String>, constants: &Vec<ObjP>
|
|||||||
arg = format!("{len}");
|
arg = format!("{len}");
|
||||||
info = String::new();
|
info = String::new();
|
||||||
}
|
}
|
||||||
Op::Nop => {
|
|
||||||
op_str = "NOP";
|
|
||||||
arg = String::new();
|
|
||||||
info = String::new();
|
|
||||||
}
|
|
||||||
Op::EvalModule => {
|
Op::EvalModule => {
|
||||||
op_str = "EVAL_MODULE";
|
op_str = "EVAL_MODULE";
|
||||||
arg = String::new();
|
arg = String::new();
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ pub enum Op {
|
|||||||
BuildList(ListLen),
|
BuildList(ListLen),
|
||||||
|
|
||||||
// VM control
|
// VM control
|
||||||
Nop,
|
|
||||||
EvalModule,
|
EvalModule,
|
||||||
ExitModule,
|
ExitModule,
|
||||||
}
|
}
|
||||||
@@ -462,9 +461,6 @@ impl<'c> Vm<'c> {
|
|||||||
let list = List::create(list_items);
|
let list = List::create(list_items);
|
||||||
self.push(list);
|
self.push(list);
|
||||||
}
|
}
|
||||||
Op::Nop => {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Op::EvalModule => {
|
Op::EvalModule => {
|
||||||
// check if the module has been evaluated yet
|
// check if the module has been evaluated yet
|
||||||
let module = self.peek();
|
let module = self.peek();
|
||||||
|
|||||||
Reference in New Issue
Block a user