зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1117468 - Fix Android gcc warnings in js/src/irregxp and js/src/jit. r=jandem
This commit is contained in:
Родитель
2d50c153d6
Коммит
f435e22a55
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче