Make tests pass.
Chris Pressey
4 years ago
419 | 419 | self.analyze_for(instr, context) |
420 | 420 | elif isinstance(instr, WithInterruptsOff): |
421 | 421 | self.analyze_block(instr.block, context) |
422 | if context.encountered_gotos(): | |
423 | raise IllegalJumpError(instr, instr) | |
422 | 424 | elif isinstance(instr, Save): |
423 | 425 | self.analyze_save(instr, context) |
424 | 426 | else: |
775 | 777 | |
776 | 778 | baton = context.extract(location) |
777 | 779 | self.analyze_block(instr.block, context) |
778 | # TODO assert no goto was encountered | |
780 | if context.encountered_gotos(): | |
781 | raise IllegalJumpError(instr, instr) | |
779 | 782 | context.re_introduce(baton) |
780 | 783 | |
781 | 784 | if location == REG_A: |