Fix compiler warning. No bug, r=jwalden via IRC.

This commit is contained in:
Nicholas Nethercote 2010-10-06 16:16:11 -07:00
Родитель d0384d584f
Коммит 9eceb8db2c
1 изменённых файлов: 7 добавлений и 9 удалений

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

@ -10376,16 +10376,14 @@ TraceRecorder::record_EnterFrame()
JS_REQUIRES_STACK AbortableRecordingStatus
TraceRecorder::record_LeaveFrame()
{
JSStackFrame *fp = cx->fp();
debug_only_stmt(JSStackFrame *fp = cx->fp();)
debug_only_stmt(
debug_only_printf(LC_TMTracer,
"LeaveFrame (back to %s), callDepth=%d\n",
fp->isFunctionFrame()
? js_AtomToPrintableString(cx, fp->fun()->atom)
: "global code",
callDepth);
);
debug_only_printf(LC_TMTracer,
"LeaveFrame (back to %s), callDepth=%d\n",
fp->isFunctionFrame()
? js_AtomToPrintableString(cx, fp->fun()->atom)
: "global code",
callDepth);
JS_ASSERT(js_CodeSpec[js_GetOpcode(cx, fp->script(),
cx->regs->pc)].length == JSOP_CALL_LENGTH);