(self, out: CWriter)
| 308 | self._print(out) |
| 309 | |
| 310 | def save_variables(self, out: CWriter) -> None: |
| 311 | out.start_line() |
| 312 | var_offset = self.base_offset |
| 313 | for var in self.variables: |
| 314 | if ( |
| 315 | var.in_local and |
| 316 | not var.memory_offset and |
| 317 | not var.is_array() |
| 318 | ): |
| 319 | self._print(out) |
| 320 | var.memory_offset = var_offset |
| 321 | stack_offset = var_offset - self.physical_sp |
| 322 | Stack._do_emit(out, var.item, stack_offset) |
| 323 | self._print(out) |
| 324 | var_offset = var_offset.push(var.item) |
| 325 | |
| 326 | def stack_bound_check(self, out: CWriter) -> None: |
| 327 | if not self.check_stack_bounds: |
no test coverage detected