Skip to content

Commit

Permalink
Switch PAST::Compiler to use push_cached_eh op
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Jan 25, 2011
1 parent 50fc603 commit 06de726
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compilers/pct/src/PAST/Compiler.pir
Expand Up @@ -931,9 +931,10 @@ Return the POST representation of a C<PAST::Block>.
$S0 = self.'unique'('control_')
ctrllabel = $P0.'new'('result'=>$S0)
$S0 = self.'uniquereg'('P')
bpost.'push_pirop'('new', $S0, "['ExceptionHandler']", '.CONTROL_RETURN')
bpost.'push_pirop'('set_addr', $S0, ctrllabel)
bpost.'push_pirop'('push_eh', $S0)
#bpost.'push_pirop'('new', $S0, "['ExceptionHandler']", '.CONTROL_RETURN')
#bpost.'push_pirop'('set_addr', $S0, ctrllabel)
#bpost.'push_pirop'('push_eh', $S0)
bpost.'push_pirop'('push_cached_eh', '.CONTROL_RETURN', ctrllabel)
bpost.'add_directive'('.include "except_types.pasm"')
children_past:
Expand Down

0 comments on commit 06de726

Please sign in to comment.