[pypy-svn] pypy default: Make this work for pypyjit.py

fijal commits-noreply at bitbucket.org
Wed Jan 26 12:27:04 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r41341:cac059eb100b
Date: 2011-01-26 13:26 +0200
http://bitbucket.org/pypy/pypy/changeset/cac059eb100b/

Log:	Make this work for pypyjit.py

diff --git a/pypy/jit/metainterp/history.py b/pypy/jit/metainterp/history.py
--- a/pypy/jit/metainterp/history.py
+++ b/pypy/jit/metainterp/history.py
@@ -29,7 +29,8 @@
         if TYPE in (lltype.Float, lltype.SingleFloat):
             raise NotImplementedError("type %s not supported" % TYPE)
         # XXX fix this for oo...
-        if rffi.sizeof(TYPE) > rffi.sizeof(lltype.Signed):
+        if (TYPE != llmemory.Address and
+            rffi.sizeof(TYPE) > rffi.sizeof(lltype.Signed)):
             raise NotImplementedError("type %s is too large" % TYPE)
         return "int"
     elif isinstance(TYPE, lltype.Ptr):


More information about the Pypy-commit mailing list