[pypy-svn] r53300 - pypy/branch/jit-hotpath/pypy/jit/codegen/ia32
fijal at codespeak.net
fijal at codespeak.net
Thu Apr 3 23:32:30 CEST 2008
Author: fijal
Date: Thu Apr 3 23:32:28 2008
New Revision: 53300
Modified:
pypy/branch/jit-hotpath/pypy/jit/codegen/ia32/rgenop.py
Log:
Fix for a crash, another test passes
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 23:32:28 2008
@@ -215,7 +215,10 @@
class BoolConst(Const):
SIZE = 1
-
+
+ def operand(self, builder):
+ return imm8(self.value)
+
def newvar(self, builder):
return builder.returnboolvar(self.operand(builder))
@@ -233,6 +236,9 @@
def operand(self, builder):
return imm(llmemory.cast_adr_to_int(self.addr))
+ def newvar(self, builder):
+ return builder.returnintvar(self.operand(builder))
+
def nonimmoperand(self, builder, tmpregister):
builder.mc.MOV(tmpregister, self.operand(builder))
return tmpregister
More information about the pypy-svn
mailing list