[pypy-svn] r65126 - in pypy/branch/pyjitpl5/pypy/jit/backend/cli: . test
antocuni at codespeak.net
antocuni at codespeak.net
Thu May 7 11:42:36 CEST 2009
Author: antocuni
Date: Thu May 7 11:42:36 2009
New Revision: 65126
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_send.py
Log:
test_oosend_different_initial_class passed out of the box. Moreover, add few translation fixes, but the tests still fail for other reasons
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/runner.py Thu May 7 11:42:36 2009
@@ -201,6 +201,9 @@
class MethDescr(AbstractMethDescr):
callmeth = None
+ selfclass = ootype.nullruntimeclass
+ methname = ''
+ has_result = False
def __init__(self, SELFTYPE, methname):
from pypy.jit.backend.llgraph.runner import boxresult, make_getargs
@@ -224,13 +227,16 @@
def get_meth_info(self):
clitype = self.get_self_clitype()
- return clitype.GetMethod(str(self.methname))
+ return clitype.GetMethod(self.methname+'')
class FieldDescr(AbstractDescr):
getfield = None
- _keys = KeyManager()
+ setfield = None
+ selfclass = ootype.nullruntimeclass
+ fieldname = ''
+ key = -1
def __init__(self, TYPE, fieldname):
from pypy.jit.backend.llgraph.runner import boxresult
@@ -263,7 +269,7 @@
def get_field_info(self):
clitype = self.get_self_clitype()
- return clitype.GetField(str(self.fieldname))
+ return clitype.GetField(self.fieldname+'')
CPU = CliCPU
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_send.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_send.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_send.py Thu May 7 11:42:36 2009
@@ -7,11 +7,14 @@
# for the individual tests see
# ====> ../../../metainterp/test/test_send.py
+ def skip_loop(self):
+ py.test.skip('jump across loops not implemented yet')
+
def skip(self):
py.test.skip('in-progress')
- test_three_receivers = skip
- test_oosend_different_initial_class = skip
+ test_three_receivers = skip_loop
+
test_indirect_call_unknown_object_1 = skip
test_three_cases = skip
test_three_classes = skip
More information about the Pypy-commit
mailing list