Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof2
Changeset: r76922:1d47005edfcc
Date: 2015-04-24 15:38 +0200
http://bitbucket.org/pypy/pypy/changeset/1d47005edfcc/
Log: fix the test
diff --git a/rpython/jit/backend/x86/test/test_regloc.py
b/rpython/jit/backend/x86/test/test_regloc.py
--- a/rpython/jit/backend/x86/test/test_regloc.py
+++ b/rpython/jit/backend/x86/test/test_regloc.py
@@ -105,13 +105,17 @@
assert ''.join([buf[i] for i in range(length)]) == expected
lltype.free(buf, flavor='raw')
+class Fake32CodeBlockWrapper(codebuf.MachineCodeBlockWrapper):
+ def check_stack_size_at_ret(self):
+ pass
+
def test_follow_jump_instructions_32():
buf = lltype.malloc(rffi.CCHARP.TO, 80, flavor='raw')
raw = rffi.cast(lltype.Signed, buf)
- mc = codebuf.MachineCodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
+ mc = Fake32CodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
mc.RET()
mc.copy_to_raw_memory(raw)
- mc = codebuf.MachineCodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
+ mc = Fake32CodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
assert follow_jump(raw) == raw
mc.JMP(imm(raw))
mc.copy_to_raw_memory(raw + 20)
@@ -120,7 +124,7 @@
assert buf[22] == '\xFF'
assert buf[23] == '\xFF'
assert buf[24] == '\xFF'
- mc = codebuf.MachineCodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
+ mc = Fake32CodeBlockWrapper(); mc.WORD = 4; mc.relocations = []
assert follow_jump(raw + 20) == raw
mc.JMP(imm(raw))
mc.copy_to_raw_memory(raw + 40)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit