mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Removed assert that compares nativeFrameSlots to nativeFrameOffset since nativeFrameOffset is undefined in case sp is at sp+depth, so the assert sometimes randomly bites. Also fixed typo in cmp(). trace-test.js compiles now.
This commit is contained in:
parent
868026d778
commit
6d3a852b99
@ -546,10 +546,8 @@ TraceRecorder::nativeFrameSlots(JSStackFrame* fp, JSFrameRegs& regs) const
|
||||
slots += 1/*rval*/ + (regs.sp - fp->spbase);
|
||||
if (fp->down)
|
||||
slots += fp->argc + fp->nvars;
|
||||
if (fp == entryFrame) {
|
||||
JS_ASSERT(nativeFrameOffset(®s.sp[0])/sizeof(double) == slots);
|
||||
if (fp == entryFrame)
|
||||
return slots;
|
||||
}
|
||||
fp = fp->down;
|
||||
}
|
||||
JS_NOT_REACHED("nativeFrameSlots");
|
||||
@ -1222,7 +1220,7 @@ TraceRecorder::cmp(LOpcode op, bool negate)
|
||||
cond = asNumber(l) >= asNumber(r);
|
||||
break;
|
||||
default:
|
||||
JS_ASSERT(cond == LIR_feq);
|
||||
JS_ASSERT(op == LIR_feq);
|
||||
cond = asNumber(l) == asNumber(r);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user