mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-29 14:42:02 +00:00
code builder initial
This commit is contained in:
@ -15,6 +15,11 @@ impl Opcodes {
|
||||
Opcodes(elements)
|
||||
}
|
||||
|
||||
/// Empty expression with only `Opcode::End` opcode
|
||||
pub fn empty() -> Self {
|
||||
Opcodes(vec![Opcode::End])
|
||||
}
|
||||
|
||||
/// List of individual opcodes
|
||||
pub fn elements(&self) -> &[Opcode] { &self.0 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user