@@ -869,42 +869,42 @@ impl VMFuncRef {
869869 /// exhaustively documented.
870870 #[ inline]
871871 pub unsafe fn array_call (
872- & self ,
872+ me : NonNull < Self > ,
873873 pulley : Option < InterpreterRef < ' _ > > ,
874874 caller : NonNull < VMOpaqueContext > ,
875875 args_and_results : NonNull < [ ValRaw ] > ,
876876 ) -> bool {
877877 match pulley {
878- Some ( vm) => self . array_call_interpreted ( vm, caller, args_and_results) ,
879- None => self . array_call_native ( caller, args_and_results) ,
878+ Some ( vm) => Self :: array_call_interpreted ( me , vm, caller, args_and_results) ,
879+ None => Self :: array_call_native ( me , caller, args_and_results) ,
880880 }
881881 }
882882
883883 unsafe fn array_call_interpreted (
884- & self ,
884+ me : NonNull < Self > ,
885885 vm : InterpreterRef < ' _ > ,
886886 caller : NonNull < VMOpaqueContext > ,
887887 args_and_results : NonNull < [ ValRaw ] > ,
888888 ) -> bool {
889889 // If `caller` is actually a `VMArrayCallHostFuncContext` then skip the
890890 // interpreter, even though it's available, as `array_call` will be
891891 // native code.
892- if self . vmctx . as_non_null ( ) . as_ref ( ) . magic
892+ if me . as_ref ( ) . vmctx . as_non_null ( ) . as_ref ( ) . magic
893893 == wasmtime_environ:: VM_ARRAY_CALL_HOST_FUNC_MAGIC
894894 {
895- return self . array_call_native ( caller, args_and_results) ;
895+ return Self :: array_call_native ( me , caller, args_and_results) ;
896896 }
897897 vm. call (
898- self . array_call . as_non_null ( ) . cast ( ) ,
899- self . vmctx . as_non_null ( ) ,
898+ me . as_ref ( ) . array_call . as_non_null ( ) . cast ( ) ,
899+ me . as_ref ( ) . vmctx . as_non_null ( ) ,
900900 caller,
901901 args_and_results,
902902 )
903903 }
904904
905905 #[ inline]
906906 unsafe fn array_call_native (
907- & self ,
907+ me : NonNull < Self > ,
908908 caller : NonNull < VMOpaqueContext > ,
909909 args_and_results : NonNull < [ ValRaw ] > ,
910910 ) -> bool {
@@ -913,11 +913,11 @@ impl VMFuncRef {
913913 ptr : NonNull < VMArrayCallFunction > ,
914914 }
915915 let native = GetNativePointer {
916- ptr : self . array_call . as_non_null ( ) ,
916+ ptr : me . as_ref ( ) . array_call . as_non_null ( ) ,
917917 }
918918 . native ;
919919 native (
920- self . vmctx . as_non_null ( ) ,
920+ me . as_ref ( ) . vmctx . as_non_null ( ) ,
921921 caller,
922922 args_and_results. cast ( ) ,
923923 args_and_results. len ( ) ,
0 commit comments