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

[Wasm64] Fix PostEmscripten::optimizeExceptions on invokes with an i64 argument #6074

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

kripken
Copy link
Member

@kripken kripken commented Nov 1, 2023

In wasm64, function pointers are 64-bit like all pointers.

fixes #6073

@kripken kripken requested a review from sbc100 November 1, 2023 21:20
@kripken
Copy link
Member Author

kripken commented Nov 1, 2023

I verified this fixes the original testcase. Compilation passes and it gets to the browser test, which fails on

+/report_result?abort:CompileError: WebAssembly.instantiate(): invalid memory limits flags 0x5 (enable via --experimental-wasm-memory64) @+1675

which makes sense as I didn't set up wasm64 in my browser.

@kripken kripken merged commit b14bf89 into main Nov 1, 2023
14 checks passed
@kripken kripken deleted the wasm64.invoke branch November 1, 2023 22:10
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
…4 argument (WebAssembly#6074)

In wasm64, function pointers are 64-bit like all pointers.

fixes WebAssembly#6073
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.

Crash in wasm-opt running emscripten test browser64.test_sdl_audio_beep_sleep
2 participants