[pypy-svn] r48016 - in pypy/dist/pypy/lang/smalltalk: . test

tverwaes at codespeak.net tverwaes at codespeak.net
Fri Oct 26 01:24:25 CEST 2007


Author: tverwaes
Date: Fri Oct 26 01:24:25 2007
New Revision: 48016

Modified:
   pypy/dist/pypy/lang/smalltalk/interpreter.py
   pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py
Log:
link byte->prim for getclass


Modified: pypy/dist/pypy/lang/smalltalk/interpreter.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/interpreter.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/interpreter.py	Fri Oct 26 01:24:25 2007
@@ -370,7 +370,8 @@
         raise MissingBytecode
 
     def bytecodePrimClass(self, interp):
-        raise MissingBytecode
+        self.callPrimitiveAndPush(
+            primitives.CLASS, "class", 0, interp)
 
     def bytecodePrimBlockCopy(self, interp):
         self.callPrimitiveAndPush(

Modified: pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/test/test_miniimage.py	Fri Oct 26 01:24:25 2007
@@ -265,4 +265,4 @@
             #print interp.w_active_context.stack
         except interpreter.ReturnFromTopLevel, e:
             return e.object.value
-        
\ No newline at end of file
+        



More information about the Pypy-commit mailing list