[pypy-svn] r51717 - in pypy/branch/jit-refactoring/pypy/jit/rainbow: . test
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Feb 21 11:42:17 CET 2008
Author: cfbolz
Date: Thu Feb 21 11:42:17 2008
New Revision: 51717
Modified:
pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
Log:
use genconst instead of building global constants
Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py (original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py Thu Feb 21 11:42:17 2008
@@ -20,7 +20,7 @@
type_system = self.rtyper.type_system.name
self.exceptiondesc = exception.ExceptionDesc(
RGenOp, etrafo, type_system, False)
- self.interpreter = JitInterpreter(self.exceptiondesc)
+ self.interpreter = JitInterpreter(self.exceptiondesc, RGenOp)
self.RGenOp = RGenOp
self.current_block = None
self.raise_analyzer = hannotator.exceptiontransformer.raise_analyzer
Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py (original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/test/test_interpreter.py Thu Feb 21 11:42:17 2008
@@ -163,7 +163,7 @@
red_i = 0
for i, (color, ll_val) in enumerate(zip(argcolors, values)):
if color == "green":
- greenargs.append(writer.RGenOp.constPrebuiltGlobal(ll_val))
+ greenargs.append(rgenop.genconst(ll_val))
else:
TYPE = lltype.typeOf(ll_val)
kind = rgenop.kindToken(TYPE)
More information about the Pypy-commit
mailing list