[pypy-commit] pypy default: Fix the comments (only).
arigo
noreply at buildbot.pypy.org
Mon Jul 29 16:16:10 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r65788:de8a5af76f3a
Date: 2013-07-29 16:15 +0200
http://bitbucket.org/pypy/pypy/changeset/de8a5af76f3a/
Log: Fix the comments (only).
diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -156,17 +156,20 @@
mc = codebuf.MachineCodeBlockWrapper()
# copy registers to the frame, with the exception of the
# 'cond_call_register_arguments' and eax, because these have already
- # been saved by the caller
+ # been saved by the caller. Note that this is not symmetrical:
+ # these 5 registers are saved by the caller but restored here at
+ # the end of this function.
self._push_all_regs_to_frame(mc, cond_call_register_arguments + [eax],
supports_floats, callee_only)
if IS_X86_64:
- mc.SUB(esp, imm(WORD))
+ mc.SUB(esp, imm(WORD)) # alignment
self.set_extra_stack_depth(mc, 2 * WORD)
+ # the arguments are already in the correct registers
else:
- # we want space for 3 arguments + call + alignment
- # the caller is responsible for putting arguments in the right spot
+ # we want space for 4 arguments + call + alignment
mc.SUB(esp, imm(WORD * 7))
self.set_extra_stack_depth(mc, 8 * WORD)
+ # store the arguments at the correct place in the stack
for i in range(4):
mc.MOV_sr(i * WORD, cond_call_register_arguments[i].value)
mc.CALL(eax)
More information about the pypy-commit
mailing list