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
ObjectBuilder
type was refactored to remove unwind information and additionally split out dwarf processing into the mainCompiler
type.
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_fn
as ausize
rather 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-environ
crate but the types for the function pointer signature (e.g.VMContext
andValRaw
) are located in thewasmtime-runtime
crate whichwasmtime-cranelift
doesn't depend on, so I think the dependency tree is thwarting that plumbing of information.
alexcrichton merged PR #4202.
Last updated: Dec 23 2024 at 12:05 UTC