Skip to content

Process declared element segments for "possibly exported funcs"#2851

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-declared-element
Apr 20, 2021
Merged

Process declared element segments for "possibly exported funcs"#2851
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-declared-element

Conversation

@alexcrichton
Copy link
Member

Now that we're using "possibly exported" as an impactful decision for
codegen (which trampolines to generate and which ABI a function has)
it's important that we calculate this property of a wasm function
correctly! Previously Wasmtime forgot to processed "declared" elements
in apart from active/passive element segments, but this updates Wasmtime
to ensure that these entries are processed and all the functions
contained within are flagged as "possibly exported".

Closes #2850

Now that we're using "possibly exported" as an impactful decision for
codegen (which trampolines to generate and which ABI a function has)
it's important that we calculate this property of a wasm function
correctly! Previously Wasmtime forgot to processed "declared" elements
in apart from active/passive element segments, but this updates Wasmtime
to ensure that these entries are processed and all the functions
contained within are flagged as "possibly exported".

Closes bytecodealliance#2850
@alexcrichton alexcrichton force-pushed the fix-declared-element branch from bea8d44 to acf0c63 Compare April 20, 2021 20:38
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:wasm labels Apr 20, 2021
@alexcrichton alexcrichton merged commit 196bcec into bytecodealliance:main Apr 20, 2021
@alexcrichton alexcrichton deleted the fix-declared-element branch April 20, 2021 21:52
mchesser pushed a commit to mchesser/wasmtime that referenced this pull request May 24, 2021
…codealliance#2851)

Now that we're using "possibly exported" as an impactful decision for
codegen (which trampolines to generate and which ABI a function has)
it's important that we calculate this property of a wasm function
correctly! Previously Wasmtime forgot to processed "declared" elements
in apart from active/passive element segments, but this updates Wasmtime
to ensure that these entries are processed and all the functions
contained within are flagged as "possibly exported".

Closes bytecodealliance#2850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:wasm cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wasmtime: missing trampolines for declarative element segments (should be treated as possibly exported).

2 participants