Bug 474757 Several build failures on Solaris build for js/src r=danderson

This commit is contained in:
Ginn Chen 2009-01-23 15:57:54 +08:00
parent 2f6351583f
commit 9473943bf6

View File

@ -165,9 +165,9 @@ namespace nanojit
// Sun Studio requires explicitly declaring signed int bit-field // Sun Studio requires explicitly declaring signed int bit-field
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC) #if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#define _sign_ signed #define _sign_int signed int
#else #else
#define _sign_ #define _sign_int int32_t
#endif #endif
// Low-level Instruction 4B // Low-level Instruction 4B
@ -187,7 +187,7 @@ namespace nanojit
struct sti_type struct sti_type
{ {
LOpcode code:8; LOpcode code:8;
_sign_ int32_t disp:8; _sign_int disp:8;
uint32_t oprnd_1:8; // 256 ins window and since they only point backwards this is sufficient. uint32_t oprnd_1:8; // 256 ins window and since they only point backwards this is sufficient.
uint32_t oprnd_2:8; uint32_t oprnd_2:8;
}; };
@ -205,7 +205,7 @@ namespace nanojit
struct t_type struct t_type
{ {
LOpcode code:8; LOpcode code:8;
_sign_ int32_t imm24:24; _sign_int imm24:24;
}; };
// imm16 form // imm16 form
@ -213,7 +213,7 @@ namespace nanojit
{ {
LOpcode code:8; LOpcode code:8;
uint32_t resv:8; // cobberred during assembly uint32_t resv:8; // cobberred during assembly
_sign_ int32_t imm16:16; _sign_int imm16:16;
}; };
// overlay used during code generation ( note that last byte is reserved for allocation ) // overlay used during code generation ( note that last byte is reserved for allocation )