Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r62940:88fd66eefa33 Date: 2013-04-03 08:39 +0200 http://bitbucket.org/pypy/pypy/changeset/88fd66eefa33/
Log: there can be a - too diff --git a/pypy/tool/jitlogparser/parser.py b/pypy/tool/jitlogparser/parser.py --- a/pypy/tool/jitlogparser/parser.py +++ b/pypy/tool/jitlogparser/parser.py @@ -364,7 +364,7 @@ def import_log(logname, ParserCls=SimpleParser): log = parse_log_file(logname) - hex_re = '0x([\da-f]+)' + hex_re = '0x(-?[\da-f]+)' addrs = {} for entry in extract_category(log, 'jit-backend-addr'): m = re.search('bootstrap ' + hex_re, entry) @@ -416,7 +416,7 @@ labels = [0] if trace.comment and 'Guard' in trace.comment: descrs = ['bridge %d' % int( - re.search('Guard 0x([\da-f]+)', trace.comment).group(1), 16)] + re.search('Guard 0x(-?[\da-f]+)', trace.comment).group(1), 16)] else: descrs = ['entry ' + re.search('Loop (\d+)', trace.comment).group(1)] for i, op in enumerate(trace.operations): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit