SpiderMonkey: Cancel GCC compilation noise. no bug r=jandem

This commit is contained in:
Nicolas B. Pierron 2012-12-05 01:38:39 -08:00
parent 581f62bdc5
commit 1e30c860c2
6 changed files with 11 additions and 9 deletions

View File

@ -1855,12 +1855,11 @@ ion::Invalidate(types::TypeCompartment &types, FreeOp *fop,
// until its last invalidated frame is destroyed.
for (size_t i = 0; i < invalid.length(); i++) {
types::CompilerOutput &co = *invalid[i].compilerOutput(types);
ExecutionMode executionMode;
ExecutionMode executionMode = SequentialExecution;
switch (co.kind()) {
case types::CompilerOutput::MethodJIT:
continue;
case types::CompilerOutput::Ion:
executionMode = SequentialExecution;
break;
case types::CompilerOutput::ParallelIon:
executionMode = ParallelExecution;

View File

@ -575,7 +575,7 @@ CodeGeneratorX86Shared::visitOutOfLineUndoALUOperation(OutOfLineUndoALUOperation
LInstruction *ins = ool->ins();
Register reg = ToRegister(ins->getDef(0));
LAllocation *lhs = ins->getOperand(0);
mozilla::DebugOnly<LAllocation *> lhs = ins->getOperand(0);
LAllocation *rhs = ins->getOperand(1);
JS_ASSERT(reg == ToRegister(lhs));

View File

@ -207,8 +207,10 @@ SCInput::SCInput(JSContext *cx, uint64_t *data, size_t nbytes)
bool
SCInput::read(uint64_t *p)
{
if (point == end)
if (point == end) {
*p = 0; /* initialize to shut GCC up */
return eof();
}
*p = SwapBytes(*point++);
return true;
}
@ -216,7 +218,7 @@ SCInput::read(uint64_t *p)
bool
SCInput::readPair(uint32_t *tagp, uint32_t *datap)
{
uint64_t u = 0; /* initialize to shut GCC up */
uint64_t u;
bool ok = read(&u);
if (ok) {
*tagp = uint32_t(u >> 32);

View File

@ -6149,8 +6149,7 @@ TypeCompartment::sweep(FreeOp *fop)
if (arrayTypeTable) {
for (ArrayTypeTable::Enum e(*arrayTypeTable); !e.empty(); e.popFront()) {
const ArrayTableKey &key = e.front().key;
TypeObject *obj = e.front().value;
JS_ASSERT(obj->proto == key.proto);
JS_ASSERT(e.front().value->proto == key.proto);
JS_ASSERT(!key.type.isSingleObject());
bool remove = false;

View File

@ -928,8 +928,10 @@ JSObject::hasProperty(JSContext *cx, js::HandleObject obj,
js::RootedObject pobj(cx);
js::RootedShape prop(cx);
JSAutoResolveFlags rf(cx, flags);
if (!lookupGeneric(cx, obj, id, &pobj, &prop))
if (!lookupGeneric(cx, obj, id, &pobj, &prop)) {
*foundp = false; /* initialize to shut GCC up */
return false;
}
*foundp = !!prop;
return true;
}

View File

@ -315,7 +315,7 @@ WorkerThread::threadLoop()
ionBuilder = state.ionWorklist.popCopy();
ion::ExecutionMode executionMode = ionBuilder->info().executionMode();
DebugOnly<ion::ExecutionMode> executionMode = ionBuilder->info().executionMode();
JS_ASSERT(GetIonScript(ionBuilder->script().unsafeGet(), executionMode) == ION_COMPILING_SCRIPT);
state.unlock();