ruby-changes:53729
From: samuel <ko1@a...>
Date: Sat, 24 Nov 2018 11:31:15 +0900 (JST)
Subject: [ruby-changes:53729] samuel:r65945 (trunk): Fix argument order.
samuel 2018-11-24 11:31:11 +0900 (Sat, 24 Nov 2018) New Revision: 65945 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65945 Log: Fix argument order. Modified files: trunk/coroutine/win64/Context.s Index: coroutine/win64/Context.s =================================================================== --- coroutine/win64/Context.s (revision 65944) +++ coroutine/win64/Context.s (revision 65945) @@ -23,23 +23,6 @@ coroutine_transfer: https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.s#L23 pushq %r14 pushq %r15 - movaps -24(%rsp), %xmm6 - movaps -40(%rsp), %xmm7 - movaps -56(%rsp), %xmm8 - movaps -72(%rsp), %xmm9 - movaps -88(%rsp), %xmm10 - movaps -104(%rsp), %xmm11 - movaps -120(%rsp), %xmm12 - movaps -136(%rsp), %xmm13 - movaps -152(%rsp), %xmm14 - movaps -168(%rsp), %xmm15 - - # Save caller stack pointer: - mov %rsp, (%rcx) - - # Restore callee stack pointer: - mov (%rdx), %rsp - movaps %xmm15, -168(%rsp) movaps %xmm14, -152(%rsp) movaps %xmm13, -136(%rsp) @@ -51,6 +34,23 @@ coroutine_transfer: https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.s#L34 movaps %xmm7, -40(%rsp) movaps %xmm6, -24(%rsp) + # Save caller stack pointer: + mov %rsp, (%rcx) + + # Restore callee stack pointer: + mov (%rdx), %rsp + + movaps -24(%rsp), %xmm6 + movaps -40(%rsp), %xmm7 + movaps -56(%rsp), %xmm8 + movaps -72(%rsp), %xmm9 + movaps -88(%rsp), %xmm10 + movaps -104(%rsp), %xmm11 + movaps -120(%rsp), %xmm12 + movaps -136(%rsp), %xmm13 + movaps -152(%rsp), %xmm14 + movaps -168(%rsp), %xmm15 + # Restore callee stack: popq %r15 popq %r14 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/