[pypy-svn] r66400 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 18 23:23:30 CEST 2009
Author: benjamin
Date: Sat Jul 18 23:23:29 2009
New Revision: 66400
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
Log:
specialize comprehension helper
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py Sat Jul 18 23:23:29 2009
@@ -3,6 +3,7 @@
from pypy.interpreter.pyparser.pygram import syms, tokens
from pypy.interpreter.pyparser.error import SyntaxError
from pypy.interpreter.pyparser import parsestring
+from pypy.rlib.objectmodel import specialize
def ast_from_node(space, n, compile_info):
@@ -1167,6 +1168,7 @@
return count
iter_node = first_child.children[2]
+ @specialize.arg(5)
def comprehension_helper(self, comp_node, for_type, if_type, iter_type,
handle_source_expression):
elt = self.handle_expr(comp_node.children[0])
More information about the Pypy-commit
mailing list