Skip to content

wasm-emscripten-finalize: Add flags to limit dynCall creation #3070

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 2 commits into from
Aug 26, 2020

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Aug 21, 2020

Two flags here, one to completely remove dynCalls, and another to
limit them to only signatures that contains i64.

See #3043

@sbc100 sbc100 requested a review from kripken August 21, 2020 14:41
@sbc100 sbc100 changed the title wasm-emscripten-finalize: Add flags to limit dynCall creations wasm-emscripten-finalize: Add flags to limit dynCall creation Aug 21, 2020
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

I assume the overall plan here is to move to always do either no dynCalls or just i64 ones? (and the old way of doing things is supported for now until we move to that?

"limited" might just be "i64" perhaps. That is, "generateI64DynCalls" etc. Could be clearer?

Two flags here, one to completely remove dynCalls, and another to
limit them to only signatures that contains i64.

See #3043
@@ -143,7 +143,27 @@ inline void exportFunction(Module& wasm, Name name, bool must_export) {
wasm.addExport(exp);
}

static bool needsDynCall(Signature sig) {
Copy link
Member

Choose a reason for hiding this comment

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

how about hasI64? This function by itself doesn't decide if we need a dyncall or not (we may have passed a flag that says we never need any), it just identifies an i64 specifically IIUC.

@sbc100 sbc100 merged commit 9371352 into master Aug 26, 2020
@sbc100 sbc100 deleted the remove_dyncall branch August 26, 2020 16:56
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