@@ -186,7 +186,7 @@ def write(self, out: Formatter) -> None:
186
186
187
187
# Write cache effect
188
188
if self .cache_offset :
189
- out .emit (f"next_instr += { self .cache_offset } ;" )
189
+ out .emit (f"JUMPBY( { self .cache_offset } ) ;" )
190
190
191
191
def write_body (self , out : Formatter , dedent : int , cache_adjust : int = 0 ) -> None :
192
192
"""Write the instruction body."""
@@ -601,11 +601,11 @@ def write_super(self, sup: SuperInstruction) -> None:
601
601
for comp in sup .parts :
602
602
if not first :
603
603
self .out .emit ("NEXTOPARG();" )
604
- self .out .emit ("next_instr++ ;" )
604
+ self .out .emit ("JUMPBY(1) ;" )
605
605
first = False
606
606
comp .write_body (self .out , 0 )
607
607
if comp .instr .cache_offset :
608
- self .out .emit (f"next_instr += { comp .instr .cache_offset } ;" )
608
+ self .out .emit (f"JUMPBY( { comp .instr .cache_offset } ) ;" )
609
609
610
610
def write_macro (self , mac : MacroInstruction ) -> None :
611
611
"""Write code for a macro instruction."""
@@ -620,7 +620,7 @@ def write_macro(self, mac: MacroInstruction) -> None:
620
620
cache_adjust += comp .instr .cache_offset
621
621
622
622
if cache_adjust :
623
- self .out .emit (f"next_instr += { cache_adjust } ;" )
623
+ self .out .emit (f"JUMPBY( { cache_adjust } ) ;" )
624
624
625
625
@contextlib .contextmanager
626
626
def wrap_super_or_macro (self , up : SuperOrMacroInstruction ):
0 commit comments