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

fijal at codespeak.net fijal at codespeak.net
Mon Apr 7 23:54:48 CEST 2008


Author: fijal
Date: Mon Apr  7 23:54:48 2008
New Revision: 53552

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/objmodel.py
Log:
attach tokens to constants as well


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/objmodel.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/objmodel.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/objmodel.py	Mon Apr  7 23:54:48 2008
@@ -151,6 +151,7 @@
 
 
 class Const(GenConst):
+    token = "x"
 
     def __init__(self, value):
         self.value = value
@@ -189,6 +190,7 @@
 
 class IntConst(Const):
     SIZE = 1
+    token = "i"
     
     def newvar(self, builder):
         return builder.returnintvar(self.operand(builder))
@@ -204,6 +206,7 @@
     # XXX hack for annotator
     buf = lltype.nullptr(FLOATBUF.TO)
     is_pbc = False
+    token = "f"
     
     def __init__(self, floatval):
         if we_are_translated():
@@ -253,6 +256,7 @@
 
 class BoolConst(Const):
     SIZE = 1
+    token = "b"
 
     def operand(self, builder):
         return imm8(self.value)
@@ -272,6 +276,7 @@
 
 class AddrConst(IntConst):
     SIZE = 1
+    token = "a"
 
     def __init__(self, addr):
         self.addr = addr



More information about the Pypy-commit mailing list