Skip to content

Make Asyncify work with wasm64 #5105

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

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Make Asyncify work with wasm64 #5105

merged 1 commit into from
Oct 5, 2022

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Oct 1, 2022

The emscripten side is a little tricky but I've got some tests passing. Currently blocked on:
emscripten-core/emscripten#17969

@sbc100 sbc100 requested a review from kripken October 4, 2022 00:52
@sbc100 sbc100 requested a review from kripken October 4, 2022 18:48
is64 = module->memories.size() && module->memories[0]->is64();
pointerType = is64 ? Type::i64 : Type::i32;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
is64 = module->memories.size() && module->memories[0]->is64();
pointerType = is64 ? Type::i64 : Type::i32;
pointerType = module->memories[0]->indexType;

Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC the problem here is that module->memories might be empty. I guess asyncify should probably error out in that case? But that seems like a bigger change.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, right, sorry, my suggested diff here isn't right then. Still, using indexType might simplify things.

The emscripten side is a little tricky but I've got some tests passing.
Currently blocked on:
emscripten-core/emscripten#17969
@sbc100 sbc100 merged commit 9868e17 into main Oct 5, 2022
@sbc100 sbc100 deleted the asyncify_wasm64 branch October 5, 2022 02:09
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