(self)
| 358 | out.emit(self.as_comment() + "\n") |
| 359 | |
| 360 | def copy(self) -> "Stack": |
| 361 | other = Stack() |
| 362 | other.base_offset = self.base_offset |
| 363 | other.physical_sp = self.physical_sp |
| 364 | other.logical_sp = self.logical_sp |
| 365 | other.variables = [var.copy() for var in self.variables] |
| 366 | other.check_stack_bounds = self.check_stack_bounds |
| 367 | return other |
| 368 | |
| 369 | def __eq__(self, other: object) -> bool: |
| 370 | if not isinstance(other, Stack): |