Switch to passing the vmctx hidden argument at the beginning.

This switches to passing the vmctx hidden argument at the beginning of
the argument list, rather than the end.
This commit is contained in:
Dan Gohman
2019-01-31 16:38:57 -08:00
parent e66f01b923
commit 4675948c2a
7 changed files with 43 additions and 27 deletions

View File

@@ -387,7 +387,7 @@ impl InstanceContents {
};
// Make the call.
unsafe { wasmtime_call(callee_address, callee_vmctx) }
unsafe { wasmtime_call(callee_vmctx, callee_address) }
.map_err(InstantiationError::StartTrap)
}