зеркало из https://github.com/github/ruby.git
Make COROUTINE_REGISTERS compile-time only not to be a global symbol
This commit is contained in:
Родитель
7069f64c41
Коммит
a160b2f567
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __attribute__((noreturn)) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS = 6;
|
||||
enum {COROUTINE_REGISTERS = 6};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __attribute__((noreturn)) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS = 9;
|
||||
enum {COROUTINE_REGISTERS = 9};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __attribute__((noreturn)) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS = 0xb0 / 8;
|
||||
enum {COROUTINE_REGISTERS = 0xb0 / 8};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -9,9 +9,11 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __attribute__((noreturn)) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS =
|
||||
enum {
|
||||
COROUTINE_REGISTERS =
|
||||
19 /* 18 general purpose registers (r14-r31) and 1 return address */
|
||||
+ 4; /* space for fiber_entry() to store the link register */
|
||||
+ 4 /* space for fiber_entry() to store the link register */
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ extern "C" {
|
|||
#define COROUTINE __declspec(noreturn) void __fastcall
|
||||
|
||||
/* This doesn't include thread information block */
|
||||
const size_t COROUTINE_REGISTERS = 4;
|
||||
enum {COROUTINE_REGISTERS = 4};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __declspec(noreturn) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS = 8;
|
||||
enum {COROUTINE_REGISTERS = 8};
|
||||
const size_t COROUTINE_XMM_REGISTERS = 1+10*2;
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
|
||||
#define COROUTINE __attribute__((noreturn, fastcall)) void
|
||||
|
||||
const size_t COROUTINE_REGISTERS = 4;
|
||||
enum {COROUTINE_REGISTERS = 4};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче