[pypy-svn] r76435 - in pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86: . test
jcreigh at codespeak.net
jcreigh at codespeak.net
Mon Aug 2 18:24:06 CEST 2010
Author: jcreigh
Date: Mon Aug 2 18:24:04 2010
New Revision: 76435
Modified:
pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/test/test_runner.py
Log:
rename make_sure_mc_exists() to setup(), as it does more than that now
Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py Mon Aug 2 18:24:04 2010
@@ -190,7 +190,7 @@
def set_debug(self, v):
self._debug = v
- def make_sure_mc_exists(self):
+ def setup(self):
if self.mc is None:
# the address of the function called by 'new'
gc_ll_descr = self.cpu.gc_ll_descr
@@ -293,7 +293,7 @@
# Arguments should be unique
assert len(set(inputargs)) == len(inputargs)
- self.make_sure_mc_exists()
+ self.setup()
funcname = self._find_debug_merge_point(operations)
@@ -328,7 +328,7 @@
# Arguments should be unique
assert len(set(inputargs)) == len(inputargs)
- self.make_sure_mc_exists()
+ self.setup()
funcname = self._find_debug_merge_point(operations)
arglocs = self.rebuild_faillocs_from_descr(
Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/test/test_runner.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/test/test_runner.py (original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/test/test_runner.py Mon Aug 2 18:24:04 2010
@@ -80,7 +80,7 @@
# relative addressing to work properly.
addr = rffi.cast(lltype.Signed, addr)
- self.cpu.assembler.make_sure_mc_exists()
+ self.cpu.assembler.setup()
self.cpu.assembler.malloc_func_addr = addr
ofs = symbolic.get_field_token(rstr.STR, 'chars', False)[0]
@@ -393,7 +393,7 @@
ops.append(ResOperation(rop.FINISH, [v], None,
descr=BasicFailDescr()))
looptoken = LoopToken()
- self.cpu.assembler.make_sure_mc_exists()
+ self.cpu.assembler.setup()
old_mc_mc = self.cpu.assembler.mc._mc
self.cpu.compile_loop([base_v], ops, looptoken)
assert self.cpu.assembler.mc._mc != old_mc_mc # overflowed
More information about the Pypy-commit
mailing list