@@ -1046,7 +1046,7 @@ impl Func {
10461046 unsafe {
10471047 let ty = & self . ty ( & store) ;
10481048 let origin = self . origin . expand ( ) ;
1049- Self :: call_unchecked_raw_with_rr (
1049+ Self :: call_unchecked_raw (
10501050 & mut store,
10511051 func_ref,
10521052 params_and_returns,
@@ -1055,17 +1055,11 @@ impl Func {
10551055 }
10561056 }
10571057
1058- /// Same as [`Func::call_unchecked_raw`] but enables recording and replaying
1059- /// hooks for func entry/exit based on whether the intended call was from a component or
1060- /// core wasm module.
1058+ /// Raw, unchecked call to the underlying func_ref.
10611059 ///
1062- /// This method is essentially a wrapper over [`Func::call_unchecked_raw`] and operates exactly like it
1063- /// when recording/replay is not enabled, so use this for all calls that will potentially need
1064- /// to be recorded/replayed.
1065- ///
1066- /// `RRWasmFuncType::None` can be used to disable recording/replaying and passthrough to `call_unchecked_raw`.
1067- /// Eventually we can replace all occurences of `call_unchecked_raw` with this method with `RRWasmFuncType::None``
1068- pub ( crate ) unsafe fn call_unchecked_raw_with_rr < T > (
1060+ /// This method contains record/replay hooks for either component or core wasm source that
1061+ /// invoked it based on `rr`. `RRWasmFuncType::None` can be used to disable record/replay for the call
1062+ pub ( crate ) unsafe fn call_unchecked_raw < T > (
10691063 mut store : & mut StoreContextMut < ' _ , T > ,
10701064 func_ref : NonNull < VMFuncRef > ,
10711065 params_and_returns : NonNull < [ ValRaw ] > ,
@@ -1080,7 +1074,7 @@ impl Func {
10801074 // SAFETY: the safety of this function call is the same as the contract
10811075 // of this function.
10821076 unsafe {
1083- Self :: call_unchecked_raw ( & mut store, func_ref, params_and_returns)
1077+ Self :: call_unchecked_raw_inner ( & mut store, func_ref, params_and_returns)
10841078 }
10851079 } ,
10861080 unsafe { params_and_returns. as_ref ( ) } ,
@@ -1093,7 +1087,7 @@ impl Func {
10931087 RRWasmFuncType :: Component { type_idx, types } => {
10941088 rr:: component_hooks:: record_and_replay_validate_wasm_func (
10951089 |mut store| unsafe {
1096- Self :: call_unchecked_raw ( & mut store, func_ref, params_and_returns)
1090+ Self :: call_unchecked_raw_inner ( & mut store, func_ref, params_and_returns)
10971091 } ,
10981092 unsafe { params_and_returns. as_ref ( ) } ,
10991093 type_idx,
@@ -1102,13 +1096,14 @@ impl Func {
11021096 )
11031097 }
11041098 // Passthrough
1099+ #[ cfg( feature = "component-model" ) ]
11051100 RRWasmFuncType :: None => unsafe {
1106- Self :: call_unchecked_raw ( & mut store, func_ref, params_and_returns)
1101+ Self :: call_unchecked_raw_inner ( & mut store, func_ref, params_and_returns)
11071102 } ,
11081103 }
11091104 }
11101105
1111- pub ( crate ) unsafe fn call_unchecked_raw < T > (
1106+ unsafe fn call_unchecked_raw_inner < T > (
11121107 store : & mut StoreContextMut < ' _ , T > ,
11131108 func_ref : NonNull < VMFuncRef > ,
11141109 params_and_returns : NonNull < [ ValRaw ] > ,
0 commit comments