Author: Maciej Fijalkowski <[email protected]>
Branch: gc_no_cleanup_nursery
Changeset: r73705:f55e2a42f8aa
Date: 2014-09-25 18:47 +0200
http://bitbucket.org/pypy/pypy/changeset/f55e2a42f8aa/
Log: add an assert
diff --git a/rpython/jit/backend/llsupport/rewrite.py
b/rpython/jit/backend/llsupport/rewrite.py
--- a/rpython/jit/backend/llsupport/rewrite.py
+++ b/rpython/jit/backend/llsupport/rewrite.py
@@ -150,6 +150,8 @@
if self.gc_ll_descr.malloc_zero_filled:
return
if kind == FLAG_ARRAY:
+ if descr.is_array_of_structs() or descr.is_array_of_pointers():
+ assert opnum == rop.NEW_ARRAY_CLEAR
if opnum == rop.NEW_ARRAY_CLEAR:
self.handle_clear_array_contents(descr, result, v_length)
return
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit