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
+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.
2008-10-17 Marco Barisione <marco.barisione@collabora.co.uk>
Reviewed by Sam Weinig. Landed by Jan Alonzo.
if (m_codeBlock->needsFullScopeChain) {
emitOpcode(op_tear_off_activation);
instructions().append(m_activationRegisterIndex);
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);
emitOpcode(op_tear_off_arguments);
return emitUnaryNoDstOp(op_ret, src);