@@ -554,22 +554,14 @@ impl InterpretedInstance {
554
554
|| log:: log_enabled!( target: "polkavm::interpreter" , log:: Level :: Debug )
555
555
|| cfg ! ( test)
556
556
{
557
- if !self . step_tracing {
558
- Ok ( self . run_impl :: < true , false > ( ) )
559
- } else {
560
- Ok ( self . run_impl :: < true , true > ( ) )
561
- }
557
+ Ok ( self . run_impl :: < true > ( ) )
562
558
} else {
563
- if !self . step_tracing {
564
- Ok ( self . run_impl :: < false , false > ( ) )
565
- } else {
566
- Ok ( self . run_impl :: < false , true > ( ) )
567
- }
559
+ Ok ( self . run_impl :: < false > ( ) )
568
560
}
569
561
}
570
562
571
563
#[ inline( never) ]
572
- fn run_impl < const DEBUG : bool , const STEP_TRACING : bool > ( & mut self ) -> InterruptKind {
564
+ fn run_impl < const DEBUG : bool > ( & mut self ) -> InterruptKind {
573
565
if !self . module . is_dynamic_paging ( ) {
574
566
self . basic_memory . mark_dirty ( ) ;
575
567
}
@@ -756,7 +748,7 @@ impl InterpretedInstance {
756
748
#[ cfg( debug_assertions) ]
757
749
let original_length = self . compiled_handlers . len ( ) ;
758
750
759
- instruction. visit ( & mut Compiler :: < DEBUG , false > {
751
+ instruction. visit ( & mut Compiler :: < DEBUG > {
760
752
program_counter : instruction. offset ,
761
753
next_program_counter : instruction. next_offset ,
762
754
compiled_handlers : & mut self . compiled_handlers ,
@@ -2729,21 +2721,21 @@ define_interpreter! {
2729
2721
}
2730
2722
}
2731
2723
2732
- struct Compiler < ' a , const DEBUG : bool , const STEP_TRACING : bool > {
2724
+ struct Compiler < ' a , const DEBUG : bool > {
2733
2725
program_counter : ProgramCounter ,
2734
2726
next_program_counter : ProgramCounter ,
2735
2727
compiled_handlers : & ' a mut Vec < Handler > ,
2736
2728
compiled_args : & ' a mut Vec < Args > ,
2737
2729
module : & ' a Module ,
2738
2730
}
2739
2731
2740
- impl < ' a , const DEBUG : bool , const STEP_TRACING : bool > Compiler < ' a , DEBUG , STEP_TRACING > {
2732
+ impl < ' a , const DEBUG : bool > Compiler < ' a , DEBUG > {
2741
2733
fn next_program_counter ( & self ) -> ProgramCounter {
2742
2734
self . next_program_counter
2743
2735
}
2744
2736
}
2745
2737
2746
- impl < ' a , const DEBUG : bool , const STEP_TRACING : bool > InstructionVisitor for Compiler < ' a , DEBUG , STEP_TRACING > {
2738
+ impl < ' a , const DEBUG : bool > InstructionVisitor for Compiler < ' a , DEBUG > {
2747
2739
type ReturnTy = ( ) ;
2748
2740
2749
2741
#[ cold]
0 commit comments