actually record at HOTLOOP1 (fencepost)

This commit is contained in:
shaver@mozilla.org 2008-07-06 09:56:25 -04:00
parent 7f5f2ae1c8
commit f463dc6891

View File

@ -707,7 +707,7 @@ js_LoopEdge(JSContext* cx)
Fragment* f = tm->fragmento->getLoop(state);
if (!f->code()) {
int hits = ++f->hits();
if (!f->isBlacklisted() && hits > HOTLOOP1) {
if (!f->isBlacklisted() && hits >= HOTLOOP1) {
if (hits == HOTLOOP1 || hits == HOTLOOP2 || hits == HOTLOOP3) {
tm->recorder = new (&gc) TraceRecorder(cx, tm->fragmento, f);
return true; /* start recording */