Remove dead code, add a debug printf.

This commit is contained in:
Andreas Gal 2008-08-11 15:23:37 -07:00
parent 3950d4c4a9
commit c7648bbce5

View File

@ -1290,11 +1290,6 @@ TraceRecorder::closeLoop(Fragmento* fragmento)
#endif
}
static void
addDependentTree(Fragment* master, Fragment* slave)
{
}
/* Record a call to an inner tree. */
void
TraceRecorder::emitTreeCall(Fragment* inner, GuardRecord* lr)
@ -1618,6 +1613,7 @@ js_ContinueRecording(JSContext* cx, TraceRecorder* r, jsbytecode* oldpc, uintN&
js_AbortRecording(cx, oldpc, "Inner tree is trying to grow, abort outer recording");
return js_AttemptToExtendTree(cx, lr, lr->from);
default:
debug_only(printf("exit_type=%d\n", lr->exit->exitType);)
js_AbortRecording(cx, oldpc, "Inner tree not suitable for calling");
return false;
}