Have vmctx be the first argument so we (almost) never have to shuffle it around

This commit is contained in:
Jef
2019-01-16 09:33:46 +01:00
parent b86d11e4ad
commit d7434fe5d2
4 changed files with 34 additions and 21 deletions

View File

@@ -158,7 +158,7 @@ pub fn translate(
let operators = body.get_operators_reader()?;
// We must add 1 here to supply `vmctx`
let func = ctx.start_function(arg_count + 1, num_locals);
let func = ctx.start_function(arg_count, num_locals);
let mut control_frames = Vec::new();