Skip to content

Commit b6da4e6

Browse files
committed
fixup
1 parent 6ddeaaf commit b6da4e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tools/jit/_optimizers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ class OptimizerAArch64(Optimizer): # pylint: disable = too-few-public-methods
287287

288288
# TODO: @diegorusso
289289
_alignment = 8
290+
# https://developer.arm.com/documentation/ddi0602/2025-03/Base-Instructions/B--Branch-
290291
_re_jump = re.compile(r"\s*b\s+(?P<target>[\w.]+)")
291292

292293

@@ -297,7 +298,9 @@ class OptimizerX86(Optimizer): # pylint: disable = too-few-public-methods
297298
_re_branch = re.compile(
298299
rf"\s*(?P<instruction>{'|'.join(_X86_BRANCHES)})\s+(?P<target>[\w.]+)"
299300
)
301+
# https://www.felixcloutier.com/x86/jmp
300302
_re_jump = re.compile(r"\s*jmp\s+(?P<target>[\w.]+)")
303+
# https://www.felixcloutier.com/x86/ret
301304
_re_return = re.compile(r"\s*ret\b")
302305

303306

0 commit comments

Comments
 (0)