Commit 6e72e895 authored by mjs@apple.com's avatar mjs@apple.com

2008-10-17 Maciej Stachowiak <mjs@apple.com>

        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):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5cdc5e04
2008-10-17 Maciej Stachowiak <mjs@apple.com>
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):
2008-10-17 Marco Barisione <marco.barisione@collabora.co.uk>
Reviewed by Sam Weinig. Landed by Jan Alonzo.
......
......@@ -1168,7 +1168,7 @@ RegisterID* CodeGenerator::emitReturn(RegisterID* src)
if (m_codeBlock->needsFullScopeChain) {
emitOpcode(op_tear_off_activation);
instructions().append(m_activationRegisterIndex);
} else if (m_codeBlock->usesArguments)
} else if (m_codeBlock->usesArguments && m_codeBlock->numParameters > 1)
emitOpcode(op_tear_off_arguments);
return emitUnaryNoDstOp(op_ret, src);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment