Fix build warnings on ARM. [Bug 606949] [r=cdleary]

This commit is contained in:
Jacob Bramley 2010-10-26 15:29:04 +01:00
parent 34336dddb8
commit da5d6e26e4
2 changed files with 6 additions and 6 deletions

View File

@ -253,9 +253,9 @@ namespace JSC {
};
enum {
padForAlign8 = 0x00,
padForAlign16 = 0x0000,
padForAlign32 = 0xe12fff7f // 'bkpt 0xffff'
padForAlign8 = (int)0x00,
padForAlign16 = (int)0x0000,
padForAlign32 = (int)0xe12fff7f // 'bkpt 0xffff'
};
typedef enum {
@ -307,7 +307,7 @@ namespace JSC {
}
int m_offset : 31;
int m_used : 1;
bool m_used : 1;
};
// Instruction formating
@ -1284,7 +1284,7 @@ namespace JSC {
// Deal with special encodings.
if ((type == LSL) && (imm == 0)) {
// "LSL #0" doesn't shift at all (and is the default).
sprintf(out, rm);
sprintf(out, "%s", rm);
return;
}

View File

@ -221,7 +221,7 @@ public:
void flushWithoutBarrier(bool isForced = false)
{
// Flush if constant pool is more than 60% full to avoid overuse of this function.
if (isForced || 5 * m_numConsts > 3 * maxPoolSize / sizeof(uint32_t))
if (isForced || (5 * m_numConsts * sizeof(uint32_t)) > (3 * maxPoolSize))
flushConstantPool(false);
}