Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r73060:818f09dbcaed Date: 2014-08-26 17:34 +0200 http://bitbucket.org/pypy/pypy/changeset/818f09dbcaed/
Log: Add an enforceargs, bah diff --git a/rpython/rtyper/rlist.py b/rpython/rtyper/rlist.py --- a/rpython/rtyper/rlist.py +++ b/rpython/rtyper/rlist.py @@ -2,7 +2,7 @@ from rpython.flowspace.model import Constant from rpython.rlib import rgc, jit, types from rpython.rlib.debug import ll_assert -from rpython.rlib.objectmodel import malloc_zero_filled +from rpython.rlib.objectmodel import malloc_zero_filled, enforceargs from rpython.rlib.signature import signature from rpython.rlib.rarithmetic import ovfcheck, widen, r_uint, intmask from rpython.rtyper.annlowlevel import ADTInterface @@ -722,6 +722,7 @@ l.ll_setitem_fast(index, newitem) # no oopspec -- the function is inlined by the JIT +@enforceargs(None, None, int) def ll_delitem_nonneg(func, l, index): ll_assert(index >= 0, "unexpectedly negative list delitem index") length = l.ll_length() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit