[pypy-commit] pypy arm-backend-2: Extract names from loop comments that contain parenthesis before the first colon

bivab noreply at buildbot.pypy.org
Fri Feb 3 12:33:52 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r52070:b2a50d3300dc
Date: 2012-02-03 12:16 +0100
http://bitbucket.org/pypy/pypy/changeset/b2a50d3300dc/

Log:	Extract names from loop comments that contain parenthesis before the
	first colon

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
@@ -386,6 +386,8 @@
         if comm.startswith('# bridge'):
             m = re.search('guard \d+', comm)
             name = m.group(0)
+        elif "(" in name:
+            name = comm[2:comm.find('(')-1]
         else:
             name = comm[2:comm.find(':')-1]
         if name in dumps:


More information about the pypy-commit mailing list