[pypy-commit] pypy gc_no_cleanup_nursery: A minor improvement and a passing test
arigo
noreply at buildbot.pypy.org
Thu Sep 25 19:25:14 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: gc_no_cleanup_nursery
Changeset: r73707:3e8238857003
Date: 2014-09-25 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/3e8238857003/
Log: A minor improvement and a passing test
diff --git a/rpython/jit/codewriter/assembler.py b/rpython/jit/codewriter/assembler.py
--- a/rpython/jit/codewriter/assembler.py
+++ b/rpython/jit/codewriter/assembler.py
@@ -291,6 +291,7 @@
'int_sub',
'jit_merge_point',
'new_array',
+ 'new_array_clear',
'newstr',
'setarrayitem_gc_i',
'setarrayitem_gc_r',
diff --git a/rpython/jit/codewriter/test/test_list.py b/rpython/jit/codewriter/test/test_list.py
--- a/rpython/jit/codewriter/test/test_list.py
+++ b/rpython/jit/codewriter/test/test_list.py
@@ -11,6 +11,7 @@
# ____________________________________________________________
FIXEDLIST = lltype.Ptr(lltype.GcArray(lltype.Signed))
+FIXEDPTRLIST = lltype.Ptr(lltype.GcArray(FIXEDLIST))
VARLIST = lltype.Ptr(lltype.GcStruct('VARLIST',
('length', lltype.Signed),
('items', FIXEDLIST),
@@ -100,6 +101,8 @@
builtin_test('newlist', [Constant(5, lltype.Signed),
varoftype(lltype.Signed)], FIXEDLIST,
NotSupported)
+ builtin_test('newlist', [], FIXEDPTRLIST,
+ """new_array_clear $0, <ArrayDescr> -> %r0""")
def test_fixed_ll_arraycopy():
builtin_test('list.ll_arraycopy',
More information about the pypy-commit
mailing list