mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove MAX_INLINE_CALL_COUNT policing, plus old MAX_INTERP_LEVEL deadwood (392973, r=crowder).
This commit is contained in:
parent
54d2de61d8
commit
47d32601de
@ -2005,16 +2005,6 @@ InternNonIntElementId(JSContext *cx, JSObject *obj, jsval idval, jsid *idp)
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
#ifndef MAX_INTERP_LEVEL
|
||||
#if defined(XP_OS2)
|
||||
#define MAX_INTERP_LEVEL 250
|
||||
#else
|
||||
#define MAX_INTERP_LEVEL 1000
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MAX_INLINE_CALL_COUNT 1000
|
||||
|
||||
/*
|
||||
* Threaded interpretation via computed goto appears to be well-supported by
|
||||
* GCC 3 and higher. IBM's C compiler when run with the right options (e.g.,
|
||||
@ -3932,14 +3922,6 @@ interrupt:
|
||||
JSInlineFrame *newifp;
|
||||
JSInterpreterHook hook;
|
||||
|
||||
/* Restrict recursion of lightweight functions. */
|
||||
if (inlineCallCount == MAX_INLINE_CALL_COUNT) {
|
||||
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
|
||||
JSMSG_OVER_RECURSED);
|
||||
ok = JS_FALSE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Compute the total number of stack slots needed by fun. */
|
||||
nframeslots = JS_HOWMANY(sizeof(JSInlineFrame),
|
||||
sizeof(jsval));
|
||||
|
Loading…
Reference in New Issue
Block a user