mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
wasm_interp: implement function call (no arguments yet!)
This commit is contained in:
parent
972d9dbb19
commit
0a2f2739b2
4 changed files with 116 additions and 21 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue