mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Don't try to record recursion until we support it properly (454277).
This commit is contained in:
parent
dc53f17a81
commit
ee3d4c3946
@ -3697,12 +3697,16 @@ TraceRecorder::clearFrameSlotsFromCache()
|
||||
bool
|
||||
TraceRecorder::record_EnterFrame()
|
||||
{
|
||||
JSStackFrame* fp = cx->fp;
|
||||
|
||||
if (++callDepth >= MAX_CALLDEPTH)
|
||||
ABORT_TRACE("exceeded maximum call depth");
|
||||
if (fp->script == fp->down->script)
|
||||
ABORT_TRACE("recursive call");
|
||||
|
||||
debug_only_v(printf("EnterFrame %s, callDepth=%d\n",
|
||||
js_AtomToPrintableString(cx, cx->fp->fun->atom),
|
||||
callDepth););
|
||||
JSStackFrame* fp = cx->fp;
|
||||
LIns* void_ins = INS_CONST(JSVAL_TO_BOOLEAN(JSVAL_VOID));
|
||||
|
||||
jsval* vp = &fp->argv[fp->argc];
|
||||
|
Loading…
Reference in New Issue
Block a user