зеркало из https://github.com/mozilla/pjs.git
Don't optimize globals access in eval and debugger frames. bug 328765, r=brendan
This commit is contained in:
Родитель
ac794bee8c
Коммит
107ea363fe
|
@ -1780,7 +1780,9 @@ LookupArgOrVar(JSContext *cx, JSTreeContext *tc, JSParseNode *pn)
|
|||
fp = cx->fp;
|
||||
obj = fp->varobj;
|
||||
clasp = OBJ_GET_CLASS(cx, obj);
|
||||
if (clasp != &js_FunctionClass && clasp != &js_CallClass) {
|
||||
if (!(fp->flags & JSFRAME_SPECIAL) &&
|
||||
clasp != &js_FunctionClass &&
|
||||
clasp != &js_CallClass) {
|
||||
/*
|
||||
* Optimize global variable accesses if there are at least 100 uses
|
||||
* in unambiguous contexts, or failing that, if least half of all the
|
||||
|
|
Загрузка…
Ссылка в новой задаче