[svn:languages] r77 - punie/trunk/src/builtins

fperrad at svn.parrot.org fperrad at svn.parrot.org
Fri Jul 24 18:46:51 UTC 2009


Author: fperrad
Date: Fri Jul 24 18:46:50 2009
New Revision: 77
URL: https://trac.parrot.org/languages/changeset/77

Log:
[Punie] use the opcode 'iter' instead of a instantiation of 'Iterator'

Modified:
   punie/trunk/src/builtins/builtins.pir

Modified: punie/trunk/src/builtins/builtins.pir
==============================================================================
--- punie/trunk/src/builtins/builtins.pir	Fri Jul 24 18:46:01 2009	(r76)
+++ punie/trunk/src/builtins/builtins.pir	Fri Jul 24 18:46:50 2009	(r77)
@@ -246,12 +246,12 @@
 
 .sub 'print'
     .param pmc list            :slurpy
-    .local pmc iter
+    .local pmc it
 
-    iter = new 'Iterator', list
+    it = iter list
   iter_loop:
-    unless iter goto iter_end
-    $P0 = shift iter
+    unless it goto iter_end
+    $P0 = shift it
     print $P0
     goto iter_loop
   iter_end:


More information about the parrot-commits mailing list