Path: blob/master/libs/compiler-rt/lib/builtins/i386/chkstk.S
12349 views
// This file is dual licensed under the MIT and the University of Illinois Open1// Source Licenses. See LICENSE.TXT for details.23#include "../assembly.h"45// _chkstk routine6// This routine is windows specific7// http://msdn.microsoft.com/en-us/library/ms648426.aspx89#ifdef __i386__1011.text12.balign 413DEFINE_COMPILERRT_FUNCTION(__chkstk_ms)14push %ecx15push %eax16cmp $0x1000,%eax17lea 12(%esp),%ecx18jb 1f192:20sub $0x1000,%ecx21test %ecx,(%ecx)22sub $0x1000,%eax23cmp $0x1000,%eax24ja 2b251:26sub %eax,%ecx27test %ecx,(%ecx)28pop %eax29pop %ecx30ret31END_COMPILERRT_FUNCTION(__chkstk_ms)3233#endif // __i386__343536