Bug 620562 - Fix JSOP_STOP recording when in an imacro (r=dmandelin)

This commit is contained in:
Bill McCloskey 2010-12-21 12:14:02 -08:00
parent 611a1ac7e3
commit 9c54c5a295

View File

@ -15752,14 +15752,14 @@ TraceRecorder::record_JSOP_CALLELEM()
JS_REQUIRES_STACK AbortableRecordingStatus
TraceRecorder::record_JSOP_STOP()
{
JSStackFrame *fp = cx->fp();
/* A return from callDepth 0 terminates the current loop, except for recursion. */
if (callDepth == 0) {
if (callDepth == 0 && !fp->hasImacropc()) {
AUDIT(returnLoopExits);
return endLoop();
}
JSStackFrame *fp = cx->fp();
if (fp->hasImacropc()) {
/*
* End of imacro, so return true to the interpreter immediately. The