Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

fix: Remove old reference to Opcode::Call #217

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions brillig_bytecode/src/opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ pub enum Opcode {
JMP {
destination: Label,
},
PushStack {
source: RegisterMemIndex,
},
// TODO:This is used to call functions and setup things like
// TODO execution contexts.
CallBack,
Expand All @@ -73,12 +76,6 @@ pub enum Opcode {
array_id_reg: RegisterMemIndex,
index: RegisterMemIndex,
},
PushStack {
source: RegisterMemIndex,
},
// PopStack {

// }
/// Used if execution fails during evaluation
Trap,
/// Hack
Expand All @@ -96,7 +93,8 @@ impl Opcode {
Opcode::JMPIFNOT { .. } => "jmpifnot",
Opcode::JMPIF { .. } => "jmpif",
Opcode::JMP { .. } => "jmp",
Opcode::Call { .. } => "call",
Opcode::PushStack { .. } => "pushstack",
Opcode::CallBack => "callback",
Opcode::Intrinsics => "intrinsics",
Opcode::Oracle(_) => "oracle",
Opcode::Mov { .. } => "mov",
Expand Down