wasm_interp: Tests for ExecutionState

This commit is contained in:
Brian Carroll 2022-11-21 18:25:24 +00:00
parent 26cce05bbe
commit 3d7fb380a5
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
5 changed files with 720 additions and 11 deletions

View file

@ -8,6 +8,7 @@ use crate::Value;
/// Struct-of-Arrays storage for the call stack.
/// Type info is packed to avoid wasting space on padding.
/// However we store 64 bits for every local, even 32-bit values, for easy random access.
#[derive(Debug)]
pub struct CallStack<'a> {
/// return addresses (one entry per frame)
return_addrs: Vec<'a, u32>,