mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 05:18:43 +00:00
Move offset_guard_size to the memory style
This commit is contained in:
@@ -644,8 +644,9 @@ impl<'module_environment> BaseFuncEnvironment for FuncEnvironment<'module_enviro
|
||||
// allocated up front and never moved.
|
||||
let (offset_guard_size, heap_style, readonly_base) = match self.memory_plans[index] {
|
||||
MemoryPlan {
|
||||
style: MemoryStyle::Dynamic,
|
||||
offset_guard_size,
|
||||
style: MemoryStyle::Dynamic {
|
||||
offset_guard_size
|
||||
},
|
||||
memory: _,
|
||||
} => {
|
||||
let heap_bound = func.create_global_value(ir::GlobalValueData::Load {
|
||||
@@ -663,8 +664,7 @@ impl<'module_environment> BaseFuncEnvironment for FuncEnvironment<'module_enviro
|
||||
)
|
||||
}
|
||||
MemoryPlan {
|
||||
style: MemoryStyle::Static { bound },
|
||||
offset_guard_size,
|
||||
style: MemoryStyle::Static { bound, offset_guard_size },
|
||||
memory: _,
|
||||
} => (
|
||||
Uimm64::new(offset_guard_size),
|
||||
|
||||
Reference in New Issue
Block a user