[pypy-commit] pypy default: Add comment

arigo noreply at buildbot.pypy.org
Tue Jul 8 17:38:49 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r72392:b74596c6094a
Date: 2014-07-08 16:46 +0200
http://bitbucket.org/pypy/pypy/changeset/b74596c6094a/

Log:	Add comment

diff --git a/rpython/rtyper/rdict.py b/rpython/rtyper/rdict.py
--- a/rpython/rtyper/rdict.py
+++ b/rpython/rtyper/rdict.py
@@ -81,6 +81,8 @@
         hop.exception_is_here()
         v_index = hop.gendirectcall(self._ll_dictnext, v_iter)
         if variant == 'items' and hop.r_result.lowleveltype != lltype.Void:
+            # this allocates the tuple for the result, directly in the function
+            # where it will be used (likely).  This will let it be removed.
             c1 = hop.inputconst(lltype.Void, hop.r_result.lowleveltype.TO)
             cflags = hop.inputconst(lltype.Void, {'flavor': 'gc'})
             v_result = hop.genop('malloc', [c1, cflags],


More information about the pypy-commit mailing list