[pypy-svn] r67892 - pypy/trunk/pypy/jit/backend/x86
arigo at codespeak.net
arigo at codespeak.net
Fri Sep 25 16:33:38 CEST 2009
Author: arigo
Date: Fri Sep 25 16:33:37 2009
New Revision: 67892
Modified:
pypy/trunk/pypy/jit/backend/x86/viewcode.py
Log:
A hack to not have arrows after 'ret' instructions.
Modified: pypy/trunk/pypy/jit/backend/x86/viewcode.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/viewcode.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/viewcode.py Fri Sep 25 16:33:37 2009
@@ -148,6 +148,7 @@
def findjumps(self):
text = self.disassemble()
lines = text.splitlines()
+ line = ''
for i, line in enumerate(lines):
if '\tj' not in line: # poor heuristic to recognize lines that
continue # could be jump instructions
@@ -157,7 +158,7 @@
addr = addrs[-1]
final = '\tjmp' in line
yield i, addr, final
- if self.fallthrough:
+ if self.fallthrough and '\tret' not in line:
yield len(lines), self.addr + len(self.data), True
More information about the Pypy-commit
mailing list