Skip to content

Commit 5a395d2

Browse files
committed
Reformat changed files
1 parent b618909 commit 5a395d2

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

Tools/jit/_optimizers.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,18 +384,14 @@ def _make_cold_target(self, block: _Block) -> str:
384384
return label
385385

386386
def _make_cross_section_target(self, block: _Block) -> str:
387-
real_target = self._make_cold_target(block).removeprefix(
388-
self.symbol_prefix
389-
)
387+
real_target = self._make_cold_target(block).removeprefix(self.symbol_prefix)
390388
return (
391389
f"{self.symbol_prefix}_JIT_CROSS_SECTION_"
392390
f"{real_target}_JIT_CROSS_SECTION"
393391
)
394392

395393
def _relocation_marker(self, reloc: str, block: _Block) -> Instruction:
396-
target = self._make_cross_section_target(block).removeprefix(
397-
self.symbol_prefix
398-
)
394+
target = self._make_cross_section_target(block).removeprefix(self.symbol_prefix)
399395
label = f"{self.symbol_prefix}{reloc}_JIT_RELOCATION_{target}:"
400396
return Instruction(InstructionKind.OTHER, "", label, None, None)
401397

@@ -716,10 +712,7 @@ def _remove_redundant_jumps(self) -> None:
716712
if (
717713
block.link
718714
and target is block.link.resolve()
719-
and (
720-
self._same_layout_section(block, target)
721-
or target is continuation
722-
)
715+
and (self._same_layout_section(block, target) or target is continuation)
723716
):
724717
block.target = None
725718
block.fallthrough = True

Tools/jit/_stencils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class HoleValue(enum.Enum):
152152
_CROSS_SECTION_PREFIX = "_JIT_CROSS_SECTION_"
153153
_CROSS_SECTION_SUFFIX = "_JIT_CROSS_SECTION"
154154

155+
155156
@dataclasses.dataclass
156157
class Hole:
157158
"""

0 commit comments

Comments
 (0)