Skip to content

Conversation

@lum1n0us
Copy link
Contributor

No description provided.

goto fail;
}

argv = pack_argv(cc);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check return value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pack_argv uses the return value of jit_cc_new_reg_ptr, which we use directly.

}

static JitReg
pack_argv(JitCompContext *cc)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not easy to understand what pack_argv/unpack_argv means.
How about changing pack_argv to get_outs_area? And changing unpack_argv to get_results_from_outs_area?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use pack to describe the act of packaging all parameters into an array, and unpack is the opposite.

@lum1n0us lum1n0us force-pushed the impl_call_indirect branch from 5bdfdb0 to 91917f5 Compare May 6, 2022 06:38
@wenyongh wenyongh merged commit dd96697 into bytecodealliance:dev/fast_jit May 6, 2022
@lum1n0us lum1n0us deleted the impl_call_indirect branch May 7, 2022 00:08
wenyongh added a commit to wenyongh/wasm-micro-runtime that referenced this pull request May 7, 2022
Implement JIT IR translation for opcode call_indirect (bytecodealliance#1138)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants