[pypy-svn] r54404 - pypy/branch/io-improvements/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Sun May 4 15:21:34 CEST 2008
Author: fijal
Date: Sun May 4 15:21:34 2008
New Revision: 54404
Modified:
pypy/branch/io-improvements/pypy/rlib/rgc.py
Log:
Few restrictions that simplify gc transformation
Modified: pypy/branch/io-improvements/pypy/rlib/rgc.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/rgc.py (original)
+++ pypy/branch/io-improvements/pypy/rlib/rgc.py Sun May 4 15:21:34 2008
@@ -249,6 +249,8 @@
assert s_T.is_constant()
assert isinstance(s_init_size, annmodel.SomeInteger)
T = s_T.const
+ assert isinstance(T, lltype.Struct)
+ assert isinstance(getattr(T, T._arrayfld), lltype.Primitive)
return annmodel.SomePtr(lltype.Ptr(T))
def specialize_call(self, hop):
More information about the pypy-svn
mailing list