зеркало из https://github.com/mozilla/gecko-dev.git
Apply direct call optimization only for functions that do not need activation.
This commit is contained in:
Родитель
46a2759467
Коммит
5d1aacca6a
|
@ -179,7 +179,8 @@ class OptTransformer extends NodeTransformer {
|
|||
OptFunctionNode ofn;
|
||||
ofn = (OptFunctionNode)possibleDirectCalls.get(targetName);
|
||||
if (ofn != null
|
||||
&& argCount == ofn.fnode.getParamCount())
|
||||
&& argCount == ofn.fnode.getParamCount()
|
||||
&& !ofn.fnode.requiresActivation())
|
||||
{
|
||||
// Refuse to directCall any function with more
|
||||
// than 32 parameters - prevent code explosion
|
||||
|
|
Загрузка…
Ссылка в новой задаче