fitzgen opened issue #12243:
https://github.com/bytecodealliance/wasmtime/pull/12234 introduced a new simple const-eval fast path. We already have one here. We didn't initially share them because the existing one is inside the
wasmtimecrate and useswasmtimecrate types, which can't be used from insidewasmtime-internal-cranelift. We should resolve this situation by adding traits or moving all of this intowasmtime-environand adding aWasmValueenum to that crate or something.
Could this also get deduplicated with our preexisting fast path in const-eval?
_Originally posted by @alexcrichton in https://github.com/bytecodealliance/wasmtime/pull/12234#discussion_r2662277342_
fitzgen edited issue #12243:
https://github.com/bytecodealliance/wasmtime/pull/12234 introduced a new simple const-eval fast path. We already have one here. We didn't initially share them because the existing one is inside the
wasmtimecrate and useswasmtimecrate types, which can't be used from insidewasmtime-internal-cranelift. We should resolve this situation by adding traits or moving all of this intowasmtime-environand adding aWasmValueenum to that crate or something.
Could this also get deduplicated with our preexisting fast path in const-eval?
_Originally posted by @alexcrichton in https://github.com/bytecodealliance/wasmtime/pull/12234#discussion_r2662277342_
Last updated: Jan 09 2026 at 13:15 UTC