[svn:parrot] r41748 - trunk/compilers/pct/src/POST
pmichaud at svn.parrot.org
pmichaud at svn.parrot.org
Wed Oct 7 03:15:00 UTC 2009
Author: pmichaud
Date: Wed Oct 7 03:14:57 2009
New Revision: 41748
URL: https://trac.parrot.org/parrot/changeset/41748
Log:
[pct]: Add a 'yield' type to POST::Op.
Modified:
trunk/compilers/pct/src/POST/Compiler.pir
Modified: trunk/compilers/pct/src/POST/Compiler.pir
==============================================================================
--- trunk/compilers/pct/src/POST/Compiler.pir Wed Oct 7 01:55:31 2009 (r41747)
+++ trunk/compilers/pct/src/POST/Compiler.pir Wed Oct 7 03:14:57 2009 (r41748)
@@ -135,6 +135,7 @@
if pirop == 'call' goto pirop_call
if pirop == 'callmethod' goto pirop_callmethod
if pirop == 'return' goto pirop_return
+ if pirop == 'yield' goto pirop_yield
if pirop == 'tailcall' goto pirop_tailcall
if pirop == 'inline' goto pirop_inline
@@ -158,6 +159,10 @@
fmt = " .return (%,)"
goto pirop_emit
+ pirop_yield:
+ fmt = " .yield (%,)"
+ goto pirop_emit
+
pirop_tailcall:
name = shift arglist
fmt = ' .tailcall %n(%,)'
More information about the parrot-commits
mailing list