[svn:parrot] r42317 - trunk/compilers/pct/src/PAST

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Sat Nov 7 05:45:03 UTC 2009


Author: pmichaud
Date: Sat Nov  7 05:45:01 2009
New Revision: 42317
URL: https://trac.parrot.org/parrot/changeset/42317

Log:
[pct]:  binding an attribute node should return the bound value (japhb++)

Modified:
   trunk/compilers/pct/src/PAST/Compiler.pir

Modified: trunk/compilers/pct/src/PAST/Compiler.pir
==============================================================================
--- trunk/compilers/pct/src/PAST/Compiler.pir	Fri Nov  6 20:11:37 2009	(r42316)
+++ trunk/compilers/pct/src/PAST/Compiler.pir	Sat Nov  7 05:45:01 2009	(r42317)
@@ -2347,11 +2347,10 @@
     .tailcall self.'vivify'(node, ops, fetchop, storeop)
 
   attribute_bind:
-    $P0 = get_hll_global ['POST'], 'Ops'
-    $P0 = $P0.'new'()
     $P1 = get_hll_global ['POST'], 'Op'
     $P1 = $P1.'new'(call_on, name, bindpost, 'pirop'=>'setattribute', 'result'=>bindpost)
-    $P0.'push'($P1)
+    $P0 = get_hll_global ['POST'], 'Ops'
+    $P0 = $P0.'new'($P1, 'result'=>$P1)
     .return ($P0)
 .end
 


More information about the parrot-commits mailing list