Track timeout side exits separately in jitstats (472761, r=jwalden).

This commit is contained in:
Andreas Gal 2009-01-09 16:38:57 -08:00
parent 4a9dbdaf12
commit 73fd6451b9
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,7 @@ JITSTAT(recorderStarted)
JITSTAT(recorderAborted)
JITSTAT(traceCompleted)
JITSTAT(sideExitIntoInterpreter)
JITSTAT(timeoutIntoInterpreter)
JITSTAT(typeMapMismatchAtEntry)
JITSTAT(returnToDifferentLoopHeader)
JITSTAT(traceTriggered)

View File

@ -3748,8 +3748,12 @@ js_ExecuteTree(JSContext* cx, Fragment* f, uintN& inlineCallCount,
JS_ASSERT(!fp->callee || fp->thisp == JSVAL_TO_OBJECT(fp->argv[-1]));
}
#endif
AUDIT(sideExitIntoInterpreter);
#ifdef JS_JIT_SPEW
if (innermost->exitType != TIMEOUT_EXIT)
AUDIT(sideExitIntoInterpreter);
else
AUDIT(timeoutIntoInterpreter);
#endif
return innermost;
}