[pypy-svn] r53295 - pypy/branch/jit-hotpath/pypy/jit/codegen/ia32

fijal at codespeak.net fijal at codespeak.net
Thu Apr 3 22:22:45 CEST 2008


Author: fijal
Date: Thu Apr  3 22:22:44 2008
New Revision: 53295

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
Log:
some annotator hacks.


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py	Thu Apr  3 22:22:44 2008
@@ -41,6 +41,8 @@
 
 class Var(GenVar):
     token = 'x'
+    # XXX hack for annotator
+    stackpos = 0
 
     def __init__(self, stackpos):
         # 'stackpos' is an index relative to the pushed arguments
@@ -61,6 +63,9 @@
     def nonimmoperand(self, builder, tmpregister):
         return self.operand(builder)
 
+    def operand(self, builder):
+        raise NotImplementedError
+
     def __repr__(self):
         return self.token + 'var@%d' % (self.stackpos,)
 
@@ -188,6 +193,8 @@
 
 class FloatConst(Const):
     SIZE = 2
+    # XXX hack for annotator
+    rawbuf = lltype.nullptr(rffi.DOUBLEP.TO)
     
     def __init__(self, floatval):
         # XXX we should take more care who is creating this and



More information about the Pypy-commit mailing list