wasm_interp: implement function call (no arguments yet!)

This commit is contained in:
Brian Carroll 2022-11-22 22:08:29 +00:00
parent 972d9dbb19
commit 0a2f2739b2
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
4 changed files with 116 additions and 21 deletions

View file

@ -1,3 +1,5 @@
use crate::Serialize;
use super::parse::{Parse, ParseError, SkipBytes};
#[repr(u8)]
@ -495,3 +497,9 @@ impl SkipBytes for OpCode {
Ok(())
}
}
impl Serialize for OpCode {
fn serialize<T: crate::SerialBuffer>(&self, buffer: &mut T) {
(*self as u8).serialize(buffer)
}
}