Visitar URL original
GH-123391: Code generators: Track stack and locals in `if` statements. by markshannon · Pull Request #123397 · python/cpython · GitHub
Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'main' into stack-copy-and-merge
  • Loading branch information
markshannon committed Aug 8, 2024
commit c7e9102d71a0b6c12634d671bd4f84b90692508f
3 changes: 2 additions & 1 deletion Tools/cases_generator/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def condition(self) -> str | None:
def is_array(self) -> bool:
return self.item.is_array()

def copy(self) -> Local:

return Local(self.item, self.cached, self.in_memory, self.defined)

def __eq__(self, other: object) -> bool:
Expand All @@ -88,6 +88,7 @@ def __eq__(self, other: object) -> bool:
self.defined is other.defined
)


@dataclass
class StackOffset:
"The stack offset of the virtual base of the stack from the physical stack pointer"
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.