Ignore:
Timestamp:
Oct 17, 2008, 3:26:44 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-17 Maciej Stachowiak <[email protected]>

Reviewed by Cameron Zwarich


  • don't bother to do arguments tearoff when it will have no effect

~1% on v8 raytrace


  • VM/CodeGenerator.cpp: (JSC::CodeGenerator::emitReturn):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r37433 r37664  
    11691169        emitOpcode(op_tear_off_activation);
    11701170        instructions().append(m_activationRegisterIndex);
    1171     } else if (m_codeBlock->usesArguments)
     1171    } else if (m_codeBlock->usesArguments && m_codeBlock->numParameters > 1)
    11721172        emitOpcode(op_tear_off_arguments);
    11731173
Note: See TracChangeset for help on using the changeset viewer.