Apply direct call optimization only for functions that do not need activation.

This commit is contained in:
igor%mir2.org 2004-05-10 15:28:32 +00:00
Родитель 46a2759467
Коммит 5d1aacca6a
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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