Remove the local field of Module (#2091)
This was added long ago at this point to assist with caching, but caching has moved to a different level such that this wonky second level of a `Module` isn't necessary. This commit removes the `ModuleLocal` type to simplify accessors and generally make it easier to work with.
This commit is contained in:
@@ -16,7 +16,7 @@ pub unsafe extern "C" fn resolve_vmctx_memory_ptr(p: *const u32) -> *const u8 {
|
||||
);
|
||||
let handle = InstanceHandle::from_vmctx(VMCTX_AND_MEMORY.0);
|
||||
assert!(
|
||||
VMCTX_AND_MEMORY.1 < handle.module().local.memory_plans.len(),
|
||||
VMCTX_AND_MEMORY.1 < handle.module().memory_plans.len(),
|
||||
"memory index for debugger is out of bounds"
|
||||
);
|
||||
let index = MemoryIndex::new(VMCTX_AND_MEMORY.1);
|
||||
|
||||
Reference in New Issue
Block a user