This commit is contained in:
David Anderson 2009-06-25 15:41:18 -07:00
Родитель cf76f7bcd1
Коммит 14fed67663
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -366,8 +366,9 @@ js_InitJITLogController ( void )
} }
#endif #endif
#if defined DEBUG
static const char* static const char*
js_ExitName(ExitType type) getExitName(ExitType type)
{ {
static const char* exitNames[] = static const char* exitNames[] =
{ {
@ -380,6 +381,7 @@ js_ExitName(ExitType type)
return exitNames[type]; return exitNames[type];
} }
#endif
/* The entire VM shares one oracle. Collisions and concurrent updates are tolerated and worst /* The entire VM shares one oracle. Collisions and concurrent updates are tolerated and worst
case cause performance regressions. */ case cause performance regressions. */
@ -2965,7 +2967,7 @@ TraceRecorder::guard(bool expected, LIns* cond, VMSideExit* exit)
debug_only_printf(LC_TMRecorder, debug_only_printf(LC_TMRecorder,
" About to try emitting guard code for " " About to try emitting guard code for "
"SideExit=%p exitType=%s\n", "SideExit=%p exitType=%s\n",
(void*)exit, js_ExitName(exit->exitType)); (void*)exit, getExitName(exit->exitType));
LIns* guardRec = createGuardRecord(exit); LIns* guardRec = createGuardRecord(exit);
@ -4780,7 +4782,7 @@ js_RecordLoopEdge(JSContext* cx, TraceRecorder* r, uintN& inlineCallCount)
js_AbortRecording(cx, "Inner tree is trying to grow, abort outer recording"); js_AbortRecording(cx, "Inner tree is trying to grow, abort outer recording");
return js_AttemptToExtendTree(cx, lr, NULL, outer); return js_AttemptToExtendTree(cx, lr, NULL, outer);
default: default:
debug_only_printf(LC_TMTracer, "exit_type=%s\n", js_ExitName(lr->exitType)); debug_only_printf(LC_TMTracer, "exit_type=%s\n", getExitName(lr->exitType));
js_AbortRecording(cx, "Inner tree not suitable for calling"); js_AbortRecording(cx, "Inner tree not suitable for calling");
return false; return false;
} }
@ -5334,7 +5336,7 @@ LeaveTree(InterpState& state, VMSideExit* lr)
FramePCOffset(fp), FramePCOffset(fp),
js_CodeName[fp->imacpc ? *fp->imacpc : *fp->regs->pc], js_CodeName[fp->imacpc ? *fp->imacpc : *fp->regs->pc],
(void*)lr, (void*)lr,
js_ExitName(lr->exitType), getExitName(lr->exitType),
fp->regs->sp - StackBase(fp), fp->regs->sp - StackBase(fp),
calldepth, calldepth,
cycles); cycles);