@@ -215,7 +215,7 @@ impl VMStackLimits {
215215#[ derive( Debug , Clone ) ]
216216/// Reference to a stack-allocated buffer ("array"), storing data of some type
217217/// `T`.
218- pub struct VMArray < T > {
218+ pub struct VMHostArray < T > {
219219 /// Number of currently occupied slots.
220220 pub length : u32 ,
221221 /// Number of slots in the data buffer. Note that this is *not* the size of
@@ -225,7 +225,7 @@ pub struct VMArray<T> {
225225 pub data : * mut T ,
226226}
227227
228- impl < T > VMArray < T > {
228+ impl < T > VMHostArray < T > {
229229 /// Creates empty `Array`
230230 pub fn empty ( ) -> Self {
231231 Self {
@@ -252,32 +252,32 @@ fn check_vm_array_offsets() {
252252 let module = Module :: new ( ) ;
253253 let offsets = VMOffsets :: new ( HostPtr , & module) ;
254254 assert_eq ! (
255- size_of:: <VMArray <( ) >>( ) ,
255+ size_of:: <VMHostArray <( ) >>( ) ,
256256 usize :: from( offsets. ptr. size_of_vmarray( ) )
257257 ) ;
258258 assert_eq ! (
259- offset_of!( VMArray <( ) >, length) ,
259+ offset_of!( VMHostArray <( ) >, length) ,
260260 usize :: from( offsets. ptr. vmarray_length( ) )
261261 ) ;
262262 assert_eq ! (
263- offset_of!( VMArray <( ) >, capacity) ,
263+ offset_of!( VMHostArray <( ) >, capacity) ,
264264 usize :: from( offsets. ptr. vmarray_capacity( ) )
265265 ) ;
266266 assert_eq ! (
267- offset_of!( VMArray <( ) >, data) ,
267+ offset_of!( VMHostArray <( ) >, data) ,
268268 usize :: from( offsets. ptr. vmarray_data( ) )
269269 ) ;
270270}
271271
272272/// Type used for passing payloads to and from continuations. The actual type
273273/// argument should be wasmtime::runtime::vm::vmcontext::ValRaw, but we don't
274274/// have access to that here.
275- pub type VMPayloads = VMArray < u128 > ;
275+ pub type VMPayloads = VMHostArray < u128 > ;
276276
277277/// Type for a list of handlers, represented by the handled tag. Thus, the
278278/// stored data is actually `*mut VMTagDefinition`, but we don't havr access to
279279/// that here.
280- pub type VMHandlerList = VMArray < * mut u8 > ;
280+ pub type VMHandlerList = VMHostArray < * mut u8 > ;
281281
282282/// The main type representing a continuation.
283283#[ repr( C ) ]
@@ -453,7 +453,7 @@ pub fn cont_new(
453453
454454 // The initialization function will allocate the actual args/return value buffer and
455455 // update this object (if needed).
456- let contref_args_ptr = & mut contref. args as * mut _ as * mut VMArray < crate :: ValRaw > ;
456+ let contref_args_ptr = & mut contref. args as * mut _ as * mut VMHostArray < crate :: ValRaw > ;
457457
458458 contref. stack . initialize (
459459 func. cast :: < crate :: vm:: VMFuncRef > ( ) ,
0 commit comments