Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_x86.S @ 165:572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
- some "I'm bored"-whitespace-cleanup
author | cslag |
---|---|
date | Thu, 05 Jan 2017 10:35:12 +0100 |
parents | 63892f03e493 |
children | d5705f226298 |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_x86.S Thu Jan 05 10:17:37 2017 +0100 +++ b/dyncallback/dyncall_callback_x86.S Thu Jan 05 10:35:12 2017 +0100 @@ -27,29 +27,29 @@ #include "../dyncall/dyncall_macros.h" BEGIN_ASM -DCThunk_size = 16 -DCArgs_size = 20 -DCValue_size = 8 +DCThunk_size = 16 +DCArgs_size = 20 +DCValue_size = 8 -CTX_thunk = 0 -CTX_phandler = 16 -CTX_pargsvt = 20 -CTX_stack_cleanup = 24 -CTX_userdata = 28 +CTX_thunk = 0 +CTX_phandler = 16 +CTX_pargsvt = 20 +CTX_stack_cleanup = 24 +CTX_userdata = 28 -frame_arg0 = 8 -frame_ret = 4 -frame_parent = 0 -frame_CTX = -4 -frame_DCArgs = -24 -frame_DCValue = -32 +frame_arg0 = 8 +frame_ret = 4 +frame_parent = 0 +frame_CTX = -4 +frame_DCArgs = -24 +frame_DCValue = -32 -#define ASCII_L 76 -#define ASCII_l 108 -#define ASCII_d 100 -#define ASCII_f 102 -#define ASCII_i 105 -#define ASCII_v 118 +#define ASCII_L 76 +#define ASCII_l 108 +#define ASCII_d 100 +#define ASCII_f 102 +#define ASCII_i 105 +#define ASCII_v 118 GLOBAL(dcCallbackThunkEntry) BEGIN_PROC(dcCallbackThunkEntry) @@ -79,7 +79,7 @@ CALL_DWORD(EAX,CTX_phandler) /* cleanup stack */ MOVL(EBP,ESP) /* reset esp to frame */ - POP(ECX) /* skip parent frame */ + POP(ECX) /* skip parent frame */ POP(ECX) /* pop return address */ MOVL(DWORD(EBP,frame_CTX),EDX) ADD(DWORD(EDX,CTX_stack_cleanup),ESP) /* cleanup stack */ @@ -94,7 +94,7 @@ CMP(LIT(ASCII_d),AL) JE(LOCAL(return_f64)) #endif - + /* All int cases (+ pointer & string cases) fall in the return_i64 case, here */ LOCAL(return_i64): MOVL(DWORD(EDX,0),EAX)