[pypy-svn] r53397 - pypy/branch/jit-hotpath/pypy/jit/timeshifter
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Apr 5 18:52:26 CEST 2008
Author: cfbolz
Date: Sat Apr 5 18:52:25 2008
New Revision: 53397
Modified:
pypy/branch/jit-hotpath/pypy/jit/timeshifter/vlist.py
Log:
a comment and an assert
Modified: pypy/branch/jit-hotpath/pypy/jit/timeshifter/vlist.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/timeshifter/vlist.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/timeshifter/vlist.py Sat Apr 5 18:52:25 2008
@@ -400,9 +400,12 @@
oop_list_nonzero.couldfold = True
def oop_list_method_resize(jitstate, oopspecdesc, deepfrozen, selfbox, lengthbox):
+ # only used by ootypesystem
content = selfbox.content
if isinstance(content, VirtualList):
item_boxes = content.item_boxes
+ # I think this is always true, better to assert it
+ assert lengthbox.is_constant()
length = rvalue.ll_getvalue(lengthbox, lltype.Signed)
if len(item_boxes) < length:
diff = length - len(item_boxes)
More information about the Pypy-commit
mailing list