Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r67920:ef63f35241ad Date: 2013-11-09 18:57 -0800 http://bitbucket.org/pypy/pypy/changeset/ef63f35241ad/
Log: a test for this diff --git a/pypy/module/pypyjit/test_pypy_c/test_ffi.py b/pypy/module/pypyjit/test_pypy_c/test_ffi.py --- a/pypy/module/pypyjit/test_pypy_c/test_ffi.py +++ b/pypy/module/pypyjit/test_pypy_c/test_ffi.py @@ -328,4 +328,45 @@ log = self.run(main, [300]) loop, = log.loops_by_filename(self.filepath) assert loop.match(""" + i161 = int_lt(i160, i43) + guard_true(i161, descr=...) + i162 = int_add(i160, 1) + setfield_gc(p22, i162, descr=<FieldS pypy.module.__builtin__.functional.W_XRangeIterator.inst_current .>) + guard_not_invalidated(descr=...) + p163 = force_token() + p164 = force_token() + p165 = getarrayitem_gc(p67, 0, descr=<ArrayP .>) + guard_value(p165, ConstPtr(ptr70), descr=...) + p166 = getfield_gc(p165, descr=<FieldP pypy.objspace.std.dictmultiobject.W_DictMultiObject.inst_strategy .+>) + guard_value(p166, ConstPtr(ptr72), descr=...) + p167 = call(ConstClass(_ll_0_alloc_with_del___), descr=<Callr 8 EF=4>) + guard_no_exception(descr=...) + i168 = call(ConstClass(_ll_1_raw_malloc_varsize__Signed), 12, descr=<Calli 8 i EF=4>) + setfield_gc(p167, 0, descr=<FieldU pypy.module._cffi_backend.cdataobj.W_CData.inst__cdata .>) + setfield_gc(p167, ConstPtr(ptr86), descr=<FieldP pypy.module._cffi_backend.cdataobj.W_CData.inst__lifeline_ .+>) + guard_no_exception(descr=...) + i169 = int_add(i168, i97) + i170 = int_sub(i160, i106) + setfield_gc(p167, i168, descr=<FieldU pypy.module._cffi_backend.cdataobj.W_CData.inst__cdata .>) + setfield_gc(p167, ConstPtr(ptr89), descr=<FieldP pypy.module._cffi_backend.cdataobj.W_CData.inst_ctype .+>) + i171 = uint_gt(i170, i108) + guard_false(i171, descr=...) + i172 = int_sub(i160, -2147483648) + i173 = int_and(i172, 4294967295) + i174 = int_add(i173, -2147483648) + setarrayitem_raw(i169, 0, i174, descr=<ArrayS .>) + i175 = int_add(i168, i121) + i176 = int_sub(i160, i130) + i177 = uint_gt(i176, i132) + guard_false(i177, descr=...) + setarrayitem_raw(i175, 0, i174, descr=<ArrayS .>) + i178 = int_add(i168, i140) + i179 = int_sub(i160, i149) + i180 = uint_gt(i179, i151) + guard_false(i180, descr=...) + setarrayitem_raw(i178, 0, i174, descr=<ArrayS .>) + --TICK-- + i183 = arraylen_gc(p67, descr=<ArrayP .>) + i184 = arraylen_gc(p92, descr=<ArrayP .>) + jump(..., descr=...) """) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit