Lines 3-11
Link Here
|
3 |
#define RUBY_GC_H 1 |
3 |
#define RUBY_GC_H 1 |
4 |
|
4 |
|
5 |
#if defined(__x86_64__) && defined(__GNUC__) && !defined(__native_client__) |
5 |
#if defined(__x86_64__) && defined(__GNUC__) && !defined(__native_client__) |
6 |
#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movq\t%%rsp, %0" : "=r" (*(p))) |
6 |
#define SET_MACHINE_STACK_END(p) __asm__ __volatile__ ("movq\t%%rsp, %0" : "=r" (*(p))) |
7 |
#elif defined(__i386) && defined(__GNUC__) && !defined(__native_client__) |
7 |
#elif defined(__i386) && defined(__GNUC__) && !defined(__native_client__) |
8 |
#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p))) |
8 |
#define SET_MACHINE_STACK_END(p) __asm__ __volatile__ ("movl\t%%esp, %0" : "=r" (*(p))) |
9 |
#else |
9 |
#else |
10 |
NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p)); |
10 |
NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p)); |
11 |
#define SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p) |
11 |
#define SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p) |