alexcrichton opened PR #4202 from refactor-cranelift-obj-builder to main:
In an effort to make future PRs for component-model functionality smaller I'm splitting off pieces into smaller PRs to get independently reviewed ahead of time. This round of refactorings for wasmtime-cranelift is targeted at splitting out pieces which will be used for the component model. Specifically the wasm-to-host trampoline function was split into components (hah) and the
ObjectBuildertype was refactored to remove unwind information and additionally split out dwarf processing into the mainCompilertype.
alexcrichton requested fitzgen for a review on PR #4202.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
// Write all debug data relocations.
alexcrichton updated PR #4202 from refactor-cranelift-obj-builder to main.
fitzgen submitted PR review.
fitzgen submitted PR review.
fitzgen created PR review comment:
Pre-existing, but why do we pass
host_fnas ausizerather than a function pointer with the appropriate signature that we then cast to an integer here?
alexcrichton submitted PR review.
alexcrichton created PR review comment:
That's a good question...
Looking into it it appears that it's because the compiler type is defined in the
wasmtime-environcrate but the types for the function pointer signature (e.g.VMContextandValRaw) are located in thewasmtime-runtimecrate whichwasmtime-craneliftdoesn't depend on, so I think the dependency tree is thwarting that plumbing of information.
alexcrichton merged PR #4202.
Last updated: Dec 06 2025 at 06:05 UTC