[pypy-svn] r26080 - pypy/dist/pypy/rpython

antocuni at codespeak.net antocuni at codespeak.net
Fri Apr 21 12:16:23 CEST 2006


Author: antocuni
Date: Fri Apr 21 12:16:19 2006
New Revision: 26080

Modified:
   pypy/dist/pypy/rpython/llinterp.py
Log:
Fixed llinterp so that it supports all classes derived by
ootype.BuiltinType, not only ootype.List.



Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Fri Apr 21 12:16:19 2006
@@ -135,7 +135,7 @@
     return lltype.typeOf(addr) == llmemory.Address
     
 def checkinst(inst):
-    return isinstance(lltype.typeOf(inst), (ootype.Instance, ootype.List))
+    return isinstance(lltype.typeOf(inst), (ootype.Instance, ootype.BuiltinType))
 
 class LLFrame(object):
     def __init__(self, graph, args, llinterpreter, f_back=None):
@@ -889,7 +889,7 @@
     #Operation of ootype
 
     def op_new(self, INST):
-        assert isinstance(INST, (ootype.Instance, ootype.List))
+        assert isinstance(INST, (ootype.Instance, ootype.BuiltinType))
         return ootype.new(INST)
 
     def op_runtimenew(self, class_):



More information about the Pypy-commit mailing list