pchickey edited PR #10621.
alexcrichton submitted PR review.
pchickey edited PR #10621:
wasmtime::component::InstancePregets a new field to hold an arc to the imported resources tableresource_types: Arc<PrimaryMap<ResourceIndex, ResourceType>>. This information is available at the two spots where anInstancePreis constructed (one of which is new, below), so theres no additional computation required here, just a clone of the arc.InstancePregets a new methodinstance_type(&self) -> InstanceType<'_>. TheInstanceTypeis used for typechecking. The whole purpose of this PR is so that typechecking can occur from either an Instance or InstancePre, and without taking a borrow into a Store, for the sake of #10610.wasmtime::component::Instancegets a new methodinstance_pre<T>(&self, store: &impl AsContext<Data = T>) -> InstancePre<T>. All of the information required to construct theInstancePreis already found in the Store at the Instances's index.
pchickey requested wasmtime-core-reviewers for a review on PR #10621.
pchickey has marked PR #10621 as ready for review.
pchickey requested dicej for a review on PR #10621.
pchickey requested alexcrichton for a review on PR #10621.
pchickey merged PR #10621.
Last updated: Dec 06 2025 at 07:03 UTC