ruby-changes:53650
From: samuel <ko1@a...>
Date: Tue, 20 Nov 2018 21:42:43 +0900 (JST)
Subject: [ruby-changes:53650] samuel:r65857 (trunk): Formatting changes.
samuel 2018-11-20 19:17:00 +0900 (Tue, 20 Nov 2018) New Revision: 65857 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65857 Log: Formatting changes. Modified files: trunk/coroutine/amd64/Context.s trunk/coroutine/arm32/Context.s trunk/coroutine/arm64/Context.s trunk/coroutine/win32/Context.asm trunk/coroutine/win32/Context.h trunk/coroutine/win64/Context.asm trunk/coroutine/win64/Context.h Index: coroutine/arm32/Context.s =================================================================== --- coroutine/arm32/Context.s (revision 65856) +++ coroutine/arm32/Context.s (revision 65857) @@ -11,4 +11,4 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.s#L11 coroutine_transfer: stmia r1!, {r4-r11,sp,lr} ldmia r0!, {r4-r11,sp,pc} - bx lr \ No newline at end of file + bx lr Index: coroutine/win64/Context.asm =================================================================== --- coroutine/win64/Context.asm (revision 65856) +++ coroutine/win64/Context.asm (revision 65857) @@ -16,10 +16,10 @@ coroutine_transfer proc https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.asm#L16 push r13 push r14 push r15 - + ; Save caller stack pointer mov [rcx], rsp - + ; Restore callee stack pointer mov rsp, [rdx] Index: coroutine/win64/Context.h =================================================================== --- coroutine/win64/Context.h (revision 65856) +++ coroutine/win64/Context.h (revision 65857) @@ -58,4 +58,4 @@ inline void coroutine_destroy(coroutine_ https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L58 #if __cplusplus } -#endif \ No newline at end of file +#endif Index: coroutine/arm64/Context.s =================================================================== --- coroutine/arm64/Context.s (revision 65856) +++ coroutine/arm64/Context.s (revision 65857) @@ -7,8 +7,10 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.s#L7 .text .align 2 + .global coroutine_transfer coroutine_transfer: + # Make space on the stack for caller registers sub sp, sp, 0xb0 Index: coroutine/amd64/Context.s =================================================================== --- coroutine/amd64/Context.s (revision 65856) +++ coroutine/amd64/Context.s (revision 65857) @@ -21,13 +21,13 @@ _coroutine_transfer: https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.s#L21 pushq %r13 pushq %r14 pushq %r15 - + # Save caller stack pointer movq %rsp, (%rdi) - + # Restore callee stack pointer movq (%rsi), %rsp - + # Restore callee stack popq %r15 popq %r14 @@ -35,9 +35,9 @@ _coroutine_transfer: https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.s#L35 popq %r12 popq %rbx popq %rbp - + # Put the first argument into the return value movq %rdi, %rax - + # We pop the return address and jump to it ret Index: coroutine/win32/Context.asm =================================================================== --- coroutine/win32/Context.asm (revision 65856) +++ coroutine/win32/Context.asm (revision 65857) @@ -19,10 +19,10 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.asm#L19 push ebx push edi push esi - + ; Save caller stack pointer mov dword ptr [ecx], esp - + ; Restore callee stack pointer mov esp, dword ptr [edx] Index: coroutine/win32/Context.h =================================================================== --- coroutine/win32/Context.h (revision 65856) +++ coroutine/win32/Context.h (revision 65857) @@ -58,4 +58,4 @@ inline void coroutine_destroy(coroutine_ https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L58 #if __cplusplus } -#endif \ No newline at end of file +#endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/