[pypy-svn] r64189 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Thu Apr 16 22:48:32 CEST 2009
Author: fijal
Date: Thu Apr 16 22:48:31 2009
New Revision: 64189
Modified:
pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
Log:
extra-verbose logging
Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/assembler.py Thu Apr 16 22:48:31 2009
@@ -95,7 +95,7 @@
log_fd = -1
mc = None
mc2 = None
- debug_markers = False
+ debug_markers = True
def __init__(self, cpu, translate_support_code=False):
self.cpu = cpu
Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/runner.py Thu Apr 16 22:48:31 2009
@@ -295,7 +295,7 @@
# llop.debug_print(lltype.Void, 'exec:', name, values_repr)
self.assembler.log_call(valueboxes)
self.keepalives_index = len(self.keepalives)
- guard_index = self.execute_call(loop, func, values_as_int)
+ guard_index = self.execute_call(loop, func, values_as_int, len(valueboxes))
self._guard_index = guard_index # for tests
keepalive_until_here(valueboxes)
self.keepalives_index = oldindex
@@ -310,7 +310,7 @@
self.set_value_of_box(box, i, self.assembler.fail_boxes)
return op
- def execute_call(self, loop, func, values_as_int):
+ def execute_call(self, loop, func, values_as_int, lgt):
# help flow objspace
prev_interpreter = None
if not self.translate_support_code:
@@ -319,7 +319,9 @@
res = 0
try:
self.caught_exception = None
+ print "Entering: %d" % rffi.cast(lltype.Signed, func)
res = func(values_as_int)
+ print "Leaving at: %d" % self.assembler.fail_boxes[lgt]
self.reraise_caught_exception()
finally:
if not self.translate_support_code:
More information about the Pypy-commit
mailing list