wasm_interp: store return type in frame & create SignatureParamsIter

This commit is contained in:
Brian Carroll 2022-12-17 13:14:13 +00:00
parent d51beb073f
commit b0d2e7a409
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
4 changed files with 153 additions and 61 deletions

View file

@ -838,12 +838,14 @@ fn test_set_get_local() {
let fn_index = 0;
let return_addr = 0x1234;
let return_block_depth = 0;
let arg_type_bytes = &[];
let n_args = 0;
let ret_type = Some(ValueType::I32);
inst.current_frame = Frame::enter(
fn_index,
return_addr,
return_block_depth,
arg_type_bytes,
n_args,
ret_type,
&buffer,
&mut inst.value_stack,
&mut cursor,
@ -883,12 +885,14 @@ fn test_tee_get_local() {
let fn_index = 0;
let return_addr = 0x1234;
let return_block_depth = 0;
let arg_type_bytes = &[];
let n_args = 0;
let ret_type = Some(ValueType::I32);
inst.current_frame = Frame::enter(
fn_index,
return_addr,
return_block_depth,
arg_type_bytes,
n_args,
ret_type,
&buffer,
&mut inst.value_stack,
&mut cursor,