[pypy-svn] r44139 - pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Jun 11 15:54:00 CEST 2007


Author: cfbolz
Date: Mon Jun 11 15:53:59 2007
New Revision: 44139

Modified:
   pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/interpreter.py
Log:
tiny optimization


Modified: pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/interpreter.py
==============================================================================
--- pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/interpreter.py	(original)
+++ pypy/branch/prolog-bytecode/pypy/lang/prolog/interpreter/interpreter.py	Mon Jun 11 15:53:59 2007
@@ -269,11 +269,8 @@
         from pypy.lang.prolog.builtin import builtins_list
         builtin = builtins_list[number][1]
         result = builtin.call(self.engine, stack, continuation)
-        i = 0
-        while i < builtin.numargs:
-            hint(i, concrete=True)
-            stack.pop()
-            i += 1
+        # popping from the stack is not needed, the stack will be discarded now
+        # anyway
         return result
 
     def CUT(self, stack, continuation):



More information about the Pypy-commit mailing list