(debug-only bug) abort recording in js_Interpret after setting fp->regs (r=dvander)

This commit is contained in:
Luke Wagner 2009-09-28 12:38:01 -07:00
Родитель 1bb0a8d771
Коммит e6097dba2e
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -2787,12 +2787,6 @@ js_Interpret(JSContext *cx)
#endif /* !JS_THREADED_INTERP */
#ifdef JS_TRACER
/* We cannot reenter the interpreter while recording. */
if (TRACE_RECORDER(cx))
js_AbortRecording(cx, "attempt to reenter interpreter while recording");
#endif
/* Check for too deep of a native thread stack. */
JS_CHECK_RECURSION(cx, return JS_FALSE);
@ -2989,6 +2983,15 @@ js_Interpret(JSContext *cx)
}
#endif /* JS_HAS_GENERATORS */
#ifdef JS_TRACER
/*
* We cannot reenter the interpreter while recording; wait to abort until
* after cx->fp->regs is set.
*/
if (TRACE_RECORDER(cx))
js_AbortRecording(cx, "attempt to reenter interpreter while recording");
#endif
/*
* It is important that "op" be initialized before calling DO_OP because
* it is possible for "op" to be specially assigned during the normal