Author: Maciej Fijalkowski <fij...@gmail.com> Branch: jitframe-on-heap Changeset: r60542:f0fddff075fb Date: 2013-01-27 22:27 +0200 http://bitbucket.org/pypy/pypy/changeset/f0fddff075fb/
Log: an attempt to have a call assembler somewhere in zrpy_gc tests diff --git a/rpython/jit/backend/x86/test/test_zrpy_gc.py b/rpython/jit/backend/x86/test/test_zrpy_gc.py --- a/rpython/jit/backend/x86/test/test_zrpy_gc.py +++ b/rpython/jit/backend/x86/test/test_zrpy_gc.py @@ -790,11 +790,25 @@ def test_compile_framework_minimal_size_in_nursery(self): self.run('compile_framework_minimal_size_in_nursery') - #def define_compile_framework_call_assembler(self): - # xxx + def define_compile_framework_call_assembler(self): + S = lltype.GcForwardReference() + S.become(lltype.GcStruct('S', ('s', lltype.Ptr(S)))) + driver = JitDriver(greens = [], reds = ['x', 'x0', 'x2']) - #def test_compile_framework_call_assembler(self): - # self.run('compile_framework_call_assembler') + def f(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s0): + driver.jit_merge_point(x=x, x0=x0, x2=x2) + i = 0 + prev_s = lltype.nullptr(S) + while i < 100: + s = lltype.malloc(S) + s.s = prev_s + prev_s = s + return n - 1, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s0 + + return None, f, None + + def test_compile_framework_call_assembler(self): + self.run('compile_framework_call_assembler') class TestShadowStack(CompileFrameworkTests): gcrootfinder = "shadowstack" _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit