Only generate a single trap to reduce code size and complexity in call_indirect

This commit is contained in:
Jef
2019-01-18 16:59:29 +01:00
parent 2c8efa32b8
commit 26cb8de303
2 changed files with 49 additions and 43 deletions

View File

@@ -299,7 +299,7 @@ impl VmCtx {
}
pub fn offset_of_funcs_len() -> usize {
offset_of!(Self, table.ptr)
offset_of!(Self, table.len)
}
}