Author: Armin Rigo <ar...@tunes.org> Branch: vmprof-newstack Changeset: r81743:d718f341bf5f Date: 2016-01-13 18:40 +0100 http://bitbucket.org/pypy/pypy/changeset/d718f341bf5f/
Log: Use LEA, as discussed on irc 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 @@ -840,8 +840,7 @@ def _call_header_vmprof(self): stack = rffi.cast(lltype.Signed, _get_vmprof().cintf.vmprof_address_of_global_stack()) - self.mc.MOV_rr(eax.value, esp.value) - self.mc.ADD_ri(eax.value, (FRAME_FIXED_SIZE - 4) * WORD) # er makes no sense + self.mc.LEA_rs(eax.value, (FRAME_FIXED_SIZE - 4) * WORD) # next self.mc.MOV(ecx, heap(stack)) self.mc.MOV_mr((eax.value, 0), ecx.value) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit