pub fn instantiate(
data: Rc<ModuleData>,
frame: &[Value],
ctx: &Ctx,
) -> Result<Value, Raised>Expand description
Instantiates a compiled module, creating its Module
terminal and returning it as a Value::Module.
This assigns the module an identity (fresh Rc) and reserves its ID block
so items can be stamped with stable IDs (see materialize_body).
frame provides outer values against ModuleData::frame_names. A length
mismatch raises .module_arity. The frame is stored as a flat Frame,
though recur may build the terminal directly.