alexcrichton opened PR #1486 from refactor-translation to master:
This commit refactors some wasmtime internals to pass around more
context-style structures rather than individual fields of each
structure. The intention here is to make the addition of fields to a
structure easier to plumb throughout the internals of wasmtime.
Currently you need to edit lots of functions to pass lots of parameters,
but ideally after this you'll only need to edit one or two struct fields
and then relevant locations have access to the information already.Updates in this commit are:
debug_infoconfiguration is now folded intoTunables. Additionally
awasmtime::Confignow holds aTunablesdirectly and is passed
into an internalCompiler. Eventually this should allow for direct
configuration of theTunablesattributes from thewasmtimeAPI,
but no new configuration is exposed at this time.
ModuleTranslationis now passed around as a whole rather than
passing individual components to allow access to all the fields,
includingTunables.This was motivated by investigating what it would take to optionally
allow loops and such to get interrupted, but that sort of codegen
setting was currently relatively difficult to plumb all the way through
and now it's hoped to be largely just an addition toTunables.
alexcrichton updated PR #1486 from refactor-translation to master:
This commit refactors some wasmtime internals to pass around more
context-style structures rather than individual fields of each
structure. The intention here is to make the addition of fields to a
structure easier to plumb throughout the internals of wasmtime.
Currently you need to edit lots of functions to pass lots of parameters,
but ideally after this you'll only need to edit one or two struct fields
and then relevant locations have access to the information already.Updates in this commit are:
debug_infoconfiguration is now folded intoTunables. Additionally
awasmtime::Confignow holds aTunablesdirectly and is passed
into an internalCompiler. Eventually this should allow for direct
configuration of theTunablesattributes from thewasmtimeAPI,
but no new configuration is exposed at this time.
ModuleTranslationis now passed around as a whole rather than
passing individual components to allow access to all the fields,
includingTunables.This was motivated by investigating what it would take to optionally
allow loops and such to get interrupted, but that sort of codegen
setting was currently relatively difficult to plumb all the way through
and now it's hoped to be largely just an addition toTunables.
abrown submitted PR Review.
abrown submitted PR Review.
abrown created PR Review Comment:
I'm assuming this was used by a
PrimaryMapincompilebut I didn't look closely enough; just checking that it is used somewhere...
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Ah yeah the
Hashhere is used as a hash key for cached module compilations, so it is indeed used :)
alexcrichton merged PR #1486.
Last updated: Dec 13 2025 at 21:03 UTC