[pypy-svn] r73011 - pypy/branch/cpython-extension/pypy/translator
xoraxax at codespeak.net
xoraxax at codespeak.net
Sun Mar 28 03:26:29 CEST 2010
Author: xoraxax
Date: Sun Mar 28 03:26:27 2010
New Revision: 73011
Modified:
pypy/branch/cpython-extension/pypy/translator/driver.py
Log:
Annotate secondary entrypoints first because they should be analyzable faster.
Modified: pypy/branch/cpython-extension/pypy/translator/driver.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/translator/driver.py (original)
+++ pypy/branch/cpython-extension/pypy/translator/driver.py Sun Mar 28 03:26:27 2010
@@ -313,17 +313,17 @@
annmodel.DEBUG = self.config.translation.debug
annotator = translator.buildannotator(policy=policy)
- if self.entry_point:
- s = annotator.build_types(self.entry_point, self.inputtypes)
-
- else:
- s = None
if self.secondary_entrypoints is not None:
for func, inputtypes in self.secondary_entrypoints:
if inputtypes == Ellipsis:
continue
rettype = annotator.build_types(func, inputtypes)
+ if self.entry_point:
+ s = annotator.build_types(self.entry_point, self.inputtypes)
+ else:
+ s = None
+
self.sanity_check_annotation()
if self.entry_point and self.standalone and s.knowntype != int:
raise Exception("stand-alone program entry point must return an "
More information about the Pypy-commit
mailing list