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

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Sat Nov 21 00:54:56 UTC 2009


Author: pmichaud
Date: Sat Nov 21 00:54:49 2009
New Revision: 42612
URL: https://trac.parrot.org/parrot/changeset/42612

Log:
[past]:  Fix bug in PAST::Var attributes with non-self register. (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 20 22:02:37 2009	(r42611)
+++ trunk/compilers/pct/src/PAST/Compiler.pir	Sat Nov 21 00:54:49 2009	(r42612)
@@ -2350,11 +2350,9 @@
     .tailcall self.'vivify'(node, ops, fetchop, storeop)
 
   attribute_bind:
-    $P1 = get_hll_global ['POST'], 'Op'
-    $P1 = $P1.'new'(call_on, name, bindpost, 'pirop'=>'setattribute', 'result'=>bindpost)
-    $P0 = get_hll_global ['POST'], 'Ops'
-    $P0 = $P0.'new'($P1, 'result'=>$P1)
-    .return ($P0)
+    ops.'push_pirop'('setattribute', call_on, name, bindpost)
+    ops.'result'(bindpost)
+    .return (ops)
 .end
 
 


More information about the parrot-commits mailing list