Move Value from wasm_interp to wasm_module & create GlobalSection::initial_values

This commit is contained in:
Brian Carroll 2022-11-23 08:51:03 +00:00
parent 0a2f2739b2
commit 235c238e36
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
6 changed files with 85 additions and 15 deletions

View file

@ -1,10 +1,8 @@
use bitvec::vec::BitVec;
use bumpalo::{collections::Vec, Bump};
use roc_wasm_module::ValueType;
use roc_wasm_module::{Value, ValueType};
use std::{fmt::Debug, mem::size_of};
use crate::Value;
/// Memory-efficient Struct-of-Arrays storage for the value stack.
/// Pack the values and their types as densely as possible,
/// to get better cache usage, at the expense of some extra logic.