Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement tables and call_indirect #12

Merged
merged 3 commits into from
Aug 15, 2018

Conversation

pepyakin
Copy link
Collaborator

Based on #9
Consists of only de6b9f1 for the moment of writing


// For some reason table_addr only works with I64.
let callee_i64 = pos.ins().uextend(I64, callee);
let table_entry_addr = pos.ins().table_addr(I64, table, callee_i64, 0);
Copy link
Member

Choose a reason for hiding this comment

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

The current limitation is that it be the same type as a pointer, fwiw.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, didn't know about that.

Then I would probably go with pointer_type() and extend only if needed.

debug_assert_eq!(table_index, 0, "non-default tables not supported yet");

Copy link
Member

Choose a reason for hiding this comment

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

We should leave the comment about signature checking for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😨 oh yeah you're right! That was unintended.

@pepyakin pepyakin changed the title Implement tables and call_indirect [WIP] Implement tables and call_indirect Aug 13, 2018
@pepyakin pepyakin changed the title [WIP] Implement tables and call_indirect Implement tables and call_indirect Aug 15, 2018
Copy link
Member

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

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

Cool, this looks good. The table_addr type limitation is something I hope to lift, but for now it's reasonable to add a uextend here.

@sunfishcode sunfishcode merged commit 7b22219 into bytecodealliance:master Aug 15, 2018
howjmay pushed a commit to howjmay/wasmtime that referenced this pull request Jan 24, 2022
pchickey pushed a commit to pchickey/wasmtime that referenced this pull request May 12, 2023
Currently traps for the `*_CPUTIME_*` clocks and doesn't check for
overflow on nanoseconds.
frank-emrich pushed a commit to frank-emrich/wasmtime that referenced this pull request Sep 27, 2023
mooori pushed a commit to mooori/wasmtime that referenced this pull request Dec 20, 2023
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.

None yet

2 participants