Delay Arguments creation in strict mode
Created attachment 208162 [details] Patch
Comment on attachment 208162 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208162&action=review > Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:1749 > - if (m_codeBlock->usesArguments() && m_codeBlock->numParameters() != 1 && !m_codeBlock->isStrictMode()) { > + if (m_codeBlock->usesArguments() && m_codeBlock->numParameters() != 1 && !isStrictMode()) { Doesn't this need to be !shouldTearOffArgumentsEagerly()?
(In reply to comment #2) > (From update of attachment 208162 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=208162&action=review > > > Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:1749 > > - if (m_codeBlock->usesArguments() && m_codeBlock->numParameters() != 1 && !m_codeBlock->isStrictMode()) { > > + if (m_codeBlock->usesArguments() && m_codeBlock->numParameters() != 1 && !isStrictMode()) { > > Doesn't this need to be !shouldTearOffArgumentsEagerly()? Nope, we perform the Arguments object tear off during arguments object creation when we're in strict mode.
Comment on attachment 208162 [details] Patch Attachment 208162 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1350033
Created attachment 208209 [details] Patch
Comment on attachment 208209 [details] Patch r=me
Committed r153763: <http://trac.webkit.org/changeset/153763>
<rdar://problem/14790809>