Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r65044:345c2ca63bc3
Date: 2013-06-27 22:39 +0200
http://bitbucket.org/pypy/pypy/changeset/345c2ca63bc3/
Log: the JIT now sees less of parsing, because it does not look into
rbigint. This does not seem like a loss though.
diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py
b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -80,39 +80,11 @@
i23 = strgetitem(p10, i19)
p25 = newstr(1)
strsetitem(p25, 0, i23)
- p28 = call(ConstClass(strip_spaces), p25, descr=<Callr . r EF=4>)
+ p93 = call(ConstClass(fromstr), p25, 16, ConstPtr(ptr70),
descr=<Callr . rir EF=3>)
guard_no_exception(descr=...)
- i29 = strlen(p28)
- i30 = int_is_true(i29)
- guard_true(i30, descr=...)
- i32 = int_sub(i29, 1)
- i33 = strgetitem(p28, i32)
- i35 = int_eq(i33, 108)
- guard_false(i35, descr=...)
- i37 = int_eq(i33, 76)
- guard_false(i37, descr=...)
- i39 = strgetitem(p28, 0)
- i41 = int_eq(i39, 45)
- guard_false(i41, descr=...)
- i43 = int_eq(i39, 43)
- guard_false(i43, descr=...)
- i43 = call(ConstClass(ll_startswith__rpy_stringPtr_rpy_stringPtr),
p28, ConstPtr(ptr42), descr=<Calli 1 rr EF=0>)
- guard_false(i43, descr=...)
- i46 = call(ConstClass(ll_startswith__rpy_stringPtr_rpy_stringPtr),
p28, ConstPtr(ptr45), descr=<Calli 1 rr EF=0>)
- guard_false(i46, descr=...)
- p51 = new_with_vtable(...)
- setfield_gc(p51, _, descr=...) # 7 setfields, but the order is
dict-order-dependent
- setfield_gc(p51, _, descr=...)
- setfield_gc(p51, _, descr=...)
- setfield_gc(p51, _, descr=...)
- setfield_gc(p51, _, descr=...)
- setfield_gc(p51, _, descr=...)
- setfield_gc(p51, _, descr=...)
- p55 = call(ConstClass(parse_digit_string), p51, descr=<Callr . r
EF=4>)
+ i94 = call(ConstClass(rbigint.toint), p93, descr=<Calli . r EF=3>)
guard_no_exception(descr=...)
- i57 = call(ConstClass(rbigint.toint), p55, descr=<Calli . r EF=3>)
- guard_no_exception(descr=...)
- i58 = int_add_ovf(i6, i57)
+ i95 = int_add_ovf(i6, i94)
guard_no_overflow(descr=...)
--TICK--
jump(..., descr=...)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit