Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-129805: Clean up some changes from GH-129806#133540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
brandtbucher wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
frombrandtbucher:jit-build-annotations
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletionsTools/jit/_stencils.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -140,11 +140,7 @@ class Hole:
def __post_init__(self) -> None:
self.func = _PATCH_FUNCS[self.kind]

def fold(
self,
other: typing.Self,
body: bytes | bytearray,
) -> typing.Self | None:
def fold(self, other: typing.Self, body: bytearray) -> typing.Self | None:
"""Combine two holes into a single hole, if possible."""
instruction_a = int.from_bytes(
body[self.offset : self.offset + 4], byteorder=sys.byteorder
Expand Down
17 changes: 4 additions & 13 deletionsTools/jit/_targets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -110,7 +110,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
raise NotImplementedError(type(self))

def _handle_relocation(
self, base: int, relocation: _R, raw:bytes |bytearray
self, base: int, relocation: _R, raw: bytearray
) -> _stencils.Hole:
raise NotImplementedError(type(self))

Expand DownExpand Up@@ -277,10 +277,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
return _stencils.symbol_to_value(name)

def _handle_relocation(
self,
base: int,
relocation: _schema.COFFRelocation,
raw: bytes | bytearray,
self, base: int, relocation: _schema.COFFRelocation, raw: bytearray
) -> _stencils.Hole:
match relocation:
case {
Expand DownExpand Up@@ -375,10 +372,7 @@ def _handle_section(
}, section_type

def _handle_relocation(
self,
base: int,
relocation: _schema.ELFRelocation,
raw: bytes | bytearray,
self, base: int, relocation: _schema.ELFRelocation, raw: bytearray
) -> _stencils.Hole:
symbol: str | None
match relocation:
Expand DownExpand Up@@ -454,10 +448,7 @@ def _handle_section(
stencil.holes.append(hole)

def _handle_relocation(
self,
base: int,
relocation: _schema.MachORelocation,
raw: bytes | bytearray,
self, base: int, relocation: _schema.MachORelocation, raw: bytearray
) -> _stencils.Hole:
symbol: str | None
match relocation:
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp