@@ -660,8 +660,8 @@ fn verify_ctx(jit: &JITState, ctx: &Context) {
660
660
let stack_val = jit. peek_at_stack ( ctx, i as isize ) ;
661
661
let val_type = Type :: from ( stack_val) ;
662
662
663
- match learned_mapping. get_kind ( ) {
664
- TempMappingKind :: MapToSelf => {
663
+ match learned_mapping {
664
+ TempMapping :: MapToSelf => {
665
665
if self_val != stack_val {
666
666
panic ! (
667
667
"verify_ctx: stack value was mapped to self, but values did not match!\n stack: {}\n self: {}" ,
@@ -670,8 +670,7 @@ fn verify_ctx(jit: &JITState, ctx: &Context) {
670
670
) ;
671
671
}
672
672
}
673
- TempMappingKind :: MapToLocal => {
674
- let local_idx: u8 = learned_mapping. get_local_idx ( ) ;
673
+ TempMapping :: MapToLocal ( local_idx) => {
675
674
let local_val = jit. peek_at_local ( local_idx. into ( ) ) ;
676
675
if local_val != stack_val {
677
676
panic ! (
@@ -682,7 +681,7 @@ fn verify_ctx(jit: &JITState, ctx: &Context) {
682
681
) ;
683
682
}
684
683
}
685
- TempMappingKind :: MapToStack => { }
684
+ TempMapping :: MapToStack ( _ ) => { }
686
685
}
687
686
688
687
// If the actual type differs from the learned type
@@ -7987,7 +7986,7 @@ fn gen_iseq_kw_call(
7987
7986
asm. ctx . dealloc_reg ( stack_kwrest. reg_opnd ( ) ) ;
7988
7987
asm. mov ( stack_kwrest, kwrest) ;
7989
7988
if stack_kwrest_idx >= 0 {
7990
- asm. ctx . set_opnd_mapping ( stack_kwrest. into ( ) , TempMapping :: map_to_stack ( kwrest_type) ) ;
7989
+ asm. ctx . set_opnd_mapping ( stack_kwrest. into ( ) , TempMapping :: MapToStack ( kwrest_type) ) ;
7991
7990
}
7992
7991
7993
7992
Some ( kwrest_type)
@@ -8057,7 +8056,7 @@ fn gen_iseq_kw_call(
8057
8056
let default_param = asm. stack_opnd ( kwargs_stack_base - kwarg_idx as i32 ) ;
8058
8057
let param_type = Type :: from ( default_value) ;
8059
8058
asm. mov ( default_param, default_value. into ( ) ) ;
8060
- asm. ctx . set_opnd_mapping ( default_param. into ( ) , TempMapping :: map_to_stack ( param_type) ) ;
8059
+ asm. ctx . set_opnd_mapping ( default_param. into ( ) , TempMapping :: MapToStack ( param_type) ) ;
8061
8060
}
8062
8061
}
8063
8062
0 commit comments