[pypy-svn] pypy default: (in-progress) start to integrate the new jitlogparser with test_pypy_c
antocuni
commits-noreply at bitbucket.org
Fri Feb 18 13:54:54 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r42161:ec880fe41dc4
Date: 2011-02-18 13:53 +0100
http://bitbucket.org/pypy/pypy/changeset/ec880fe41dc4/
Log: (in-progress) start to integrate the new jitlogparser with
test_pypy_c
diff --git a/pypy/module/pypyjit/test_pypy_c/model.py b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -1,7 +1,8 @@
import py
import re
from lib_pypy import disassembler
-from pypy.jit.tool import oparser
+from pypy.tool.jitlogparser.parser import parse, slice_debug_merge_points
+from pypy.tool.jitlogparser.storage import LoopStorage
class Log(object):
def __init__(self, func, rawtraces):
@@ -47,7 +48,10 @@
class Trace(object):
def __init__(self, rawtrace, chunks):
# "low level trace", i.e. an instance of history.TreeLoop
- self.lltrace = oparser.parse(rawtrace, no_namespace=True)
+ self.lltrace = parse(rawtrace)
+ storage = LoopStorage()
+ function = slice_debug_merge_points(self.lltrace.operations, storage)
+ import pdb;pdb.set_trace()
self.split_into_opcodes()
def split_into_opcodes(self):
More information about the Pypy-commit
mailing list