[pypy-svn] r31553 - in pypy/dist/pypy/jit/codegen: . i386

arigo at codespeak.net arigo at codespeak.net
Wed Aug 23 16:07:19 CEST 2006


Author: arigo
Date: Wed Aug 23 16:07:17 2006
New Revision: 31553

Added:
   pypy/dist/pypy/jit/codegen/model.py   (contents, props changed)
Modified:
   pypy/dist/pypy/jit/codegen/i386/ri386genop.py
Log:
(pedronis, arigo)

Rest of the previous check-in.


Modified: pypy/dist/pypy/jit/codegen/i386/ri386genop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/i386/ri386genop.py	(original)
+++ pypy/dist/pypy/jit/codegen/i386/ri386genop.py	Wed Aug 23 16:07:17 2006
@@ -96,6 +96,10 @@
     def __init__(self):
         self.mcs = []   # machine code blocks where no-one is currently writing
 
+    def get_rgenop_for_testing():
+        return RI386GenOp()
+    get_rgenop_for_testing = staticmethod(get_rgenop_for_testing)
+
     def open_mc(self):
         if self.mcs:
             # XXX think about inserting NOPS for alignment
@@ -189,7 +193,7 @@
         T = lltype.typeOf(llvalue)
         assert T is lltype.Signed
         return IntConst(llvalue)
-    genconst._annspecialcase_ = 'specialize:argtype(0)'   # XXX arglltype(0)?
+    genconst._annspecialcase_ = 'specialize:ll'
     genconst = staticmethod(genconst)
 
     def constTYPE(T):

Added: pypy/dist/pypy/jit/codegen/model.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/jit/codegen/model.py	Wed Aug 23 16:07:17 2006
@@ -0,0 +1,21 @@
+
+
+class GenVarOrConst(object):
+    pass
+
+class GenVar(GenVarOrConst):
+    is_const = False
+
+class GenConst(GenVarOrConst):
+    is_const = True
+
+
+class CodeGenBlock(object):
+    pass
+
+class CodeGenLink(object):
+    pass
+
+
+class AbstractRGenOp(object):
+    pass



More information about the Pypy-commit mailing list