Bug 1117468 - Fix Android gcc warnings in js/src/irregxp and js/src/jit. r=jandem

This commit is contained in:
Chris Peterson 2015-01-03 21:57:49 -08:00
Родитель 2d50c153d6
Коммит f435e22a55
3 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -82,7 +82,7 @@ static const int kSurrogateRangeCount = ArrayLength(kSurrogateRanges);
static const int kLineTerminatorRanges[] = { 0x000A, 0x000B, 0x000D, 0x000E,
0x2028, 0x202A, 0x10000 };
static const int kLineTerminatorRangeCount = ArrayLength(kLineTerminatorRanges);
static const unsigned kMaxOneByteCharCode = 0xff;
static const int kMaxOneByteCharCode = 0xff;
static const int kMaxUtf16CodeUnit = 0xffff;
static char16_t
@ -3180,7 +3180,7 @@ SplitSearchSpace(RangeBoundaryVector &ranges,
// range with a single not-taken branch, speeding up this important
// character range (even non-ASCII charset-based text has spaces and
// punctuation).
if (*border - 1 > (int) kMaxOneByteCharCode && // ASCII case.
if (*border - 1 > kMaxOneByteCharCode && // ASCII case.
end_index - start_index > (*new_start_index - start_index) * 2 &&
last - first > kSize * 2 &&
binary_chop_index > *new_start_index &&

Просмотреть файл

@ -518,7 +518,7 @@ RegExpParser<CharT>::ScanForCaptures()
Advance();
break;
case '[': {
int c;
widechar c;
while ((c = current()) != kEndMarker) {
Advance();
if (c == '\\') {

Просмотреть файл

@ -2127,10 +2127,11 @@ CodeGeneratorARM::visitAsmJSStoreGlobalVar(LAsmJSStoreGlobalVar *ins)
MIRType type = mir->value()->type();
MOZ_ASSERT(IsNumberType(type));
unsigned addr = mir->globalDataOffset() - AsmJSGlobalRegBias;
if (mir->value()->type() == MIRType_Int32) {
if (type == MIRType_Int32) {
masm.ma_dtr(IsStore, GlobalReg, Imm32(addr), ToRegister(ins->value()));
} else if (mir->value()->type() == MIRType_Float32) {
} else if (type == MIRType_Float32) {
VFPRegister vd(ToFloatRegister(ins->value()));
masm.ma_vstr(vd.singleOverlay(), Operand(GlobalReg, addr));
} else {