[pypy-svn] r50295 - pypy/branch/asmgcroot/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Thu Jan 3 19:18:14 CET 2008
Author: arigo
Date: Thu Jan 3 19:18:13 2008
New Revision: 50295
Modified:
pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py
Log:
Clean-ups.
Modified: pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py
==============================================================================
--- pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py (original)
+++ pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py Thu Jan 3 19:18:13 2008
@@ -373,7 +373,7 @@
if label not in self.labels:
break
k += 1
- self.labels[label] = call.lineno+1
+ self.labels[label] = None
self.lines.insert(call.lineno+1, '%s:\n' % (label,))
self.lines.insert(call.lineno+1, '\t.globl\t%s\n' % (label,))
call.global_label = label
@@ -592,19 +592,6 @@
return [InsnCall(self.currentlineno),
InsnSetLocal('%eax')] # the result is there
- def visit_pypygetframeaddress(self, line):
- xxx
- # this is a pseudo-instruction that is emitted to find the first
- # frame address on the stack. We cannot just use
- # __builtin_frame_address(0) - apparently, gcc thinks it can
- # return %ebp even if -fomit-frame-pointer is specified, which
- # doesn't work.
- match = r_unaryinsn.match(line)
- reg = match.group(1)
- newline = '\tleal\t%d(%%esp), %s\t/* pypygetframeaddress */\n' % (
- self.framesize-4, reg)
- self.lines[self.currentlinenum] = newline
-
class UnrecognizedOperation(Exception):
pass
More information about the pypy-svn
mailing list