@@ -5,9 +5,9 @@ use crate::component::matching::InstanceType;
55use crate :: component:: storage:: { slice_to_storage_mut, storage_as_slice_mut} ;
66use crate :: component:: { ComponentNamedList , ComponentType , Instance , Lift , Lower , Val } ;
77use crate :: prelude:: * ;
8- use crate :: rr_hooks ;
8+ use crate :: rr ;
99#[ cfg( feature = "rr-component" ) ]
10- use crate :: rr_hooks :: component_hooks:: ReplayLoweringPhase ;
10+ use crate :: rr :: component_hooks:: ReplayLoweringPhase ;
1111use crate :: runtime:: vm:: component:: {
1212 ComponentInstance , VMComponentContext , VMLowering , VMLoweringCallee ,
1313} ;
@@ -257,7 +257,7 @@ where
257257
258258 let types = vminstance. component ( ) . types ( ) . clone ( ) ;
259259
260- rr_hooks :: component_hooks:: record_replay_host_func_entry ( storage, & ty, store. 0 ) ?;
260+ rr :: component_hooks:: record_replay_host_func_entry ( storage, & ty, store. 0 ) ?;
261261
262262 let ty = & types[ ty] ;
263263 let param_tys = InterfaceType :: Tuple ( ty. params ) ;
@@ -621,27 +621,27 @@ where
621621 ) -> Result < ( ) > {
622622 match self . lower_dst ( ) {
623623 Dst :: Direct ( storage) => {
624- let result = rr_hooks :: component_hooks:: record_lower_flat (
624+ let result = rr :: component_hooks:: record_lower_flat (
625625 |cx, ty| ret. linear_lower_to_flat ( cx, ty, storage) ,
626626 cx,
627627 ty,
628628 ) ;
629- rr_hooks :: component_hooks:: record_host_func_return (
629+ rr :: component_hooks:: record_host_func_return (
630630 unsafe { storage_as_slice_mut ( storage) } ,
631631 cx. store . 0 ,
632632 ) ?;
633633 result
634634 }
635635 Dst :: Indirect ( ptr) => {
636636 let ptr = validate_inbounds :: < R > ( cx. as_slice ( ) , ptr) ?;
637- let result = rr_hooks :: component_hooks:: record_lower_memory (
637+ let result = rr :: component_hooks:: record_lower_memory (
638638 |cx, ty, ptr| ret. linear_lower_to_memory ( cx, ty, ptr) ,
639639 cx,
640640 ty,
641641 ptr,
642642 ) ;
643643 // Recording here is just for marking the return event
644- rr_hooks :: component_hooks:: record_host_func_return ( & [ ] , cx. store . 0 ) ?;
644+ rr :: component_hooks:: record_host_func_return ( & [ ] , cx. store . 0 ) ?;
645645 result
646646 }
647647 }
@@ -811,7 +811,7 @@ where
811811
812812 let types = instance. id ( ) . get ( store. 0 ) . component ( ) . types ( ) . clone ( ) ;
813813
814- rr_hooks :: component_hooks:: record_replay_host_func_entry ( storage, & ty, store. 0 ) ?;
814+ rr :: component_hooks:: record_replay_host_func_entry ( storage, & ty, store. 0 ) ?;
815815
816816 let func_ty = & types[ ty] ;
817817 let param_tys = & types[ func_ty. params ] ;
@@ -924,28 +924,28 @@ where
924924 if let Some ( cnt) = result_tys. abi . flat_count ( MAX_FLAT_RESULTS ) {
925925 let mut dst = storage[ ..cnt] . iter_mut ( ) ;
926926 for ( val, ty) in result_vals. iter ( ) . zip ( result_tys. types . iter ( ) ) {
927- rr_hooks :: component_hooks:: record_lower_flat (
927+ rr :: component_hooks:: record_lower_flat (
928928 |cx, ty| val. lower ( cx, ty, & mut dst) ,
929929 & mut cx,
930930 * ty,
931931 ) ?;
932932 }
933933 assert ! ( dst. next( ) . is_none( ) ) ;
934- rr_hooks :: component_hooks:: record_host_func_return ( storage, cx. store . 0 ) ?;
934+ rr :: component_hooks:: record_host_func_return ( storage, cx. store . 0 ) ?;
935935 } else {
936936 let ret_ptr = unsafe { storage[ ret_index] . assume_init_ref ( ) } ;
937937 let mut ptr = validate_inbounds_dynamic ( & result_tys. abi , cx. as_slice ( ) , ret_ptr) ?;
938938 for ( val, ty) in result_vals. iter ( ) . zip ( result_tys. types . iter ( ) ) {
939939 let offset = types. canonical_abi ( ty) . next_field32_size ( & mut ptr) ;
940- rr_hooks :: component_hooks:: record_lower_memory (
940+ rr :: component_hooks:: record_lower_memory (
941941 |cx, ty, ptr| val. store ( cx, ty, ptr) ,
942942 & mut cx,
943943 * ty,
944944 offset,
945945 ) ?;
946946 }
947947 // Recording here is just for marking the return event
948- rr_hooks :: component_hooks:: record_host_func_return ( & [ ] , cx. store . 0 ) ?;
948+ rr :: component_hooks:: record_host_func_return ( & [ ] , cx. store . 0 ) ?;
949949 }
950950
951951 unsafe {
0 commit comments