[pypy-svn] r30479 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Mon Jul 24 20:57:08 CEST 2006
Author: antocuni
Date: Mon Jul 24 20:57:04 2006
New Revision: 30479
Modified:
pypy/dist/pypy/translator/cli/database.py
Log:
Split instantiation of constants into many steps, too.
Modified: pypy/dist/pypy/translator/cli/database.py
==============================================================================
--- pypy/dist/pypy/translator/cli/database.py (original)
+++ pypy/dist/pypy/translator/cli/database.py Mon Jul 24 20:57:04 2006
@@ -195,8 +195,9 @@
# this point we have collected all constant we
# need. Instantiate&initialize them.
self.step = 0
- self.__new_step(ilasm)
- for const in self.consts.itervalues():
+ for i, const in enumerate(self.consts.itervalues()):
+ if i % MAX_CONST_PER_STEP == 0:
+ self.__new_step(ilasm)
type_ = const.get_type()
const.instantiate(ilasm)
ilasm.store_static_constant(type_, CONST_NAMESPACE, CONST_CLASS, const.name)
More information about the Pypy-commit
mailing list