]> git.lizzy.rs Git - rust.git/blobdiff - src/rt/arch/i386/record_sp.S
rt: Inline get_sp_limit/set_sp_limit/get_sp for x86.
[rust.git] / src / rt / arch / i386 / record_sp.S
index 20cafa3dffbf56ed50e5c2e34e4373537703eeef..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,60 +0,0 @@
-.text
-
-#if defined(__APPLE__) || defined(_WIN32)
-#define RECORD_SP_LIMIT    _record_sp_limit
-#define GET_SP_LIMIT       _get_sp_limit
-#define GET_SP             _get_sp
-#else
-#define RECORD_SP_LIMIT    record_sp_limit
-#define GET_SP_LIMIT       get_sp_limit
-#define GET_SP             get_sp
-#endif
-
-.globl RECORD_SP_LIMIT
-.globl GET_SP_LIMIT
-.globl GET_SP
-
-#if defined(__linux__) || defined(__FreeBSD__)
-RECORD_SP_LIMIT:
-       movl 4(%esp), %eax
-       movl %eax, %gs:48
-       ret
-#endif
-
-#if defined(__APPLE__)
-RECORD_SP_LIMIT:
-       movl $0x48+90*4, %eax
-       movl 4(%esp), %ecx
-       movl %ecx, %gs:(%eax)
-       ret
-#endif
-
-#if defined(_WIN32)
-RECORD_SP_LIMIT:
-       movl 4(%esp), %eax
-       movl %eax, %fs:0x14
-       ret
-#endif
-
-#if defined(__linux__) || defined(__FreeBSD__)
-GET_SP_LIMIT:
-       movl %gs:48, %eax
-       ret
-#endif
-
-#if defined(__APPLE__)
-GET_SP_LIMIT:
-       movl $0x48+90*4, %ecx
-       movl %gs:(%ecx), %eax
-       ret
-#endif
-
-#if defined(_WIN32)
-GET_SP_LIMIT:
-       movl %fs:0x14, %eax
-       ret
-#endif
-
-GET_SP:
-       movl %esp, %eax
-       ret