66// store: *mut dyn Store,
77// limits: *const VMRuntimeLimits,
88// flags: [VMGlobalDefinition; component.num_runtime_component_instances],
9- // lowering_anyfuncs: [VMCallerCheckedAnyfunc ; component.num_lowerings],
10- // always_trap_anyfuncs: [VMCallerCheckedAnyfunc ; component.num_always_trap],
11- // transcoder_anyfuncs: [VMCallerCheckedAnyfunc ; component.num_transcoders],
9+ // lowering_anyfuncs: [VMCallerCheckedFuncRef ; component.num_lowerings],
10+ // always_trap_anyfuncs: [VMCallerCheckedFuncRef ; component.num_always_trap],
11+ // transcoder_anyfuncs: [VMCallerCheckedFuncRef ; component.num_transcoders],
1212// lowerings: [VMLowering; component.num_lowerings],
1313// memories: [*mut VMMemoryDefinition; component.num_memories],
14- // reallocs: [*mut VMCallerCheckedAnyfunc ; component.num_reallocs],
15- // post_returns: [*mut VMCallerCheckedAnyfunc ; component.num_post_returns],
14+ // reallocs: [*mut VMCallerCheckedFuncRef ; component.num_reallocs],
15+ // post_returns: [*mut VMCallerCheckedFuncRef ; component.num_post_returns],
1616// }
1717
1818use crate :: component:: {
@@ -57,7 +57,7 @@ pub struct VMComponentOffsets<P> {
5757 /// least 1).
5858 pub num_runtime_component_instances : u32 ,
5959 /// Number of "always trap" functions which have their
60- /// `VMCallerCheckedAnyfunc ` stored inline in the `VMComponentContext`.
60+ /// `VMCallerCheckedFuncRef ` stored inline in the `VMComponentContext`.
6161 pub num_always_trap : u32 ,
6262 /// Number of transcoders needed for string conversion.
6363 pub num_transcoders : u32 ,
@@ -148,9 +148,9 @@ impl<P: PtrSize> VMComponentOffsets<P> {
148148 align( 16 ) ,
149149 size( flags) = cmul( ret. num_runtime_component_instances, ret. ptr. size_of_vmglobal_definition( ) ) ,
150150 align( u32 :: from( ret. ptr. size( ) ) ) ,
151- size( lowering_anyfuncs) = cmul( ret. num_lowerings, ret. ptr. size_of_vmcaller_checked_anyfunc ( ) ) ,
152- size( always_trap_anyfuncs) = cmul( ret. num_always_trap, ret. ptr. size_of_vmcaller_checked_anyfunc ( ) ) ,
153- size( transcoder_anyfuncs) = cmul( ret. num_transcoders, ret. ptr. size_of_vmcaller_checked_anyfunc ( ) ) ,
151+ size( lowering_anyfuncs) = cmul( ret. num_lowerings, ret. ptr. size_of_vmcaller_checked_func_ref ( ) ) ,
152+ size( always_trap_anyfuncs) = cmul( ret. num_always_trap, ret. ptr. size_of_vmcaller_checked_func_ref ( ) ) ,
153+ size( transcoder_anyfuncs) = cmul( ret. num_transcoders, ret. ptr. size_of_vmcaller_checked_func_ref ( ) ) ,
154154 size( lowerings) = cmul( ret. num_lowerings, ret. ptr. size( ) * 2 ) ,
155155 size( memories) = cmul( ret. num_runtime_memories, ret. ptr. size( ) ) ,
156156 size( reallocs) = cmul( ret. num_runtime_reallocs, ret. ptr. size( ) ) ,
@@ -210,12 +210,12 @@ impl<P: PtrSize> VMComponentOffsets<P> {
210210 self . lowering_anyfuncs
211211 }
212212
213- /// The offset of `VMCallerCheckedAnyfunc ` for the `index` specified.
213+ /// The offset of `VMCallerCheckedFuncRef ` for the `index` specified.
214214 #[ inline]
215215 pub fn lowering_anyfunc ( & self , index : LoweredIndex ) -> u32 {
216216 assert ! ( index. as_u32( ) < self . num_lowerings) ;
217217 self . lowering_anyfuncs ( )
218- + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_anyfunc ( ) )
218+ + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_func_ref ( ) )
219219 }
220220
221221 /// The offset of the `always_trap_anyfuncs` field.
@@ -224,12 +224,12 @@ impl<P: PtrSize> VMComponentOffsets<P> {
224224 self . always_trap_anyfuncs
225225 }
226226
227- /// The offset of `VMCallerCheckedAnyfunc ` for the `index` specified.
227+ /// The offset of `VMCallerCheckedFuncRef ` for the `index` specified.
228228 #[ inline]
229229 pub fn always_trap_anyfunc ( & self , index : RuntimeAlwaysTrapIndex ) -> u32 {
230230 assert ! ( index. as_u32( ) < self . num_always_trap) ;
231231 self . always_trap_anyfuncs ( )
232- + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_anyfunc ( ) )
232+ + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_func_ref ( ) )
233233 }
234234
235235 /// The offset of the `transcoder_anyfuncs` field.
@@ -238,12 +238,12 @@ impl<P: PtrSize> VMComponentOffsets<P> {
238238 self . transcoder_anyfuncs
239239 }
240240
241- /// The offset of `VMCallerCheckedAnyfunc ` for the `index` specified.
241+ /// The offset of `VMCallerCheckedFuncRef ` for the `index` specified.
242242 #[ inline]
243243 pub fn transcoder_anyfunc ( & self , index : RuntimeTranscoderIndex ) -> u32 {
244244 assert ! ( index. as_u32( ) < self . num_transcoders) ;
245245 self . transcoder_anyfuncs ( )
246- + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_anyfunc ( ) )
246+ + index. as_u32 ( ) * u32:: from ( self . ptr . size_of_vmcaller_checked_func_ref ( ) )
247247 }
248248
249249 /// The offset of the `lowerings` field.
@@ -309,7 +309,7 @@ impl<P: PtrSize> VMComponentOffsets<P> {
309309 self . reallocs
310310 }
311311
312- /// The offset of the `*mut VMCallerCheckedAnyfunc ` for the runtime index
312+ /// The offset of the `*mut VMCallerCheckedFuncRef ` for the runtime index
313313 /// provided.
314314 #[ inline]
315315 pub fn runtime_realloc ( & self , index : RuntimeReallocIndex ) -> u32 {
@@ -323,7 +323,7 @@ impl<P: PtrSize> VMComponentOffsets<P> {
323323 self . post_returns
324324 }
325325
326- /// The offset of the `*mut VMCallerCheckedAnyfunc ` for the runtime index
326+ /// The offset of the `*mut VMCallerCheckedFuncRef ` for the runtime index
327327 /// provided.
328328 #[ inline]
329329 pub fn runtime_post_return ( & self , index : RuntimePostReturnIndex ) -> u32 {
0 commit comments