<br><br><div class="gmail_quote">On Wed, Aug 3, 2011 at 1:06 AM, Antonio Cuni <span dir="ltr">&lt;<a href="mailto:anto.cuni@gmail.com">anto.cuni@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 03/08/11 02:16, alex_gaynor wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: Alex Gaynor&lt;<a href="mailto:alex.gaynor@gmail.com" target="_blank">alex.gaynor@gmail.com</a>&gt;<br>
Branch: unroll-if-alt<br>
Changeset: r46219:524483d98407<br>
Date: 2011-08-02 17:17 -0700<br>
<a href="http://bitbucket.org/pypy/pypy/changeset/524483d98407/" target="_blank">http://bitbucket.org/pypy/<u></u>pypy/changeset/524483d98407/</a><br>
<br>
Log:    a) Renamed @unroll_if to @look_inside_iff at carl&#39;s request b)<br>
        Unroll Argument.unpack if one should. c) Leave a comment about a<br>
        small level mess with keyword argumengs and the decorator<br>
<br>
diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py<br>
--- a/pypy/interpreter/argument.py<br>
+++ b/pypy/interpreter/argument.py<br>
@@ -125,6 +125,7 @@<br>
<br>
      ###  Manipulation  ###<br>
<br>
+    @jit.look_inside_iff(lambda self: not self._dont_jit)<br>
      def unpack(self): # slowish<br>
          &quot;Return a ([w1,w2...], {&#39;kw&#39;:w3...}) pair.&quot;<br>
          kwds_w = {}<br>
@@ -245,6 +246,8 @@<br>
</blockquote>
<br></div>
I think that this should have a test_pypy_c test.<br>
<br>
ciao,<br>
Anto<br>
______________________________<u></u>_________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org" target="_blank">pypy-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/pypy-dev</a><br>
</blockquote></div><br>Probably, or I can revert it.  Currently in pyjitpl a call wipes all heap caches in the frontend, so I wanted to remove that call so that something would be properly constant early enough, unfortunately I forgot creating a dict is a call of it&#39;s own, so it doesn&#39;t do anything useful ATM.<div>
<br></div><div>Alex<br clear="all"><br>-- <br>&quot;I disapprove of what you say, but I will defend to the death your right to say it.&quot; -- Evelyn Beatrice Hall (summarizing Voltaire)<br>&quot;The people&#39;s good is the highest law.&quot; -- Cicero<br>
<br>
</div>