Don't build trees inside tree calls if no suitable tree can be found (for now.)

This commit is contained in:
Andreas Gal 2008-08-19 23:00:19 -07:00
parent 4ee5ead209
commit 25bf562fe6

View File

@ -1823,8 +1823,7 @@ js_ContinueRecording(JSContext* cx, TraceRecorder* r, jsbytecode* oldpc, uintN&
GuardRecord* lr = js_ExecuteTree(cx, &f, inlineCallCount);
debug_only(printf("actual fragment: %p, lr=%p\n", f, lr));
if (!lr) {
js_AbortRecording(cx, oldpc, "Couldn't call inner tree, trying to record one.");
//return js_RecordTree(cx, tm, fragmento->newLoop(f->ip));
js_AbortRecording(cx, oldpc, "Couldn't call inner tree.");
return false;
}
switch (lr->exit->exitType) {