<https://webkit.org/b/128050>
Discard all uncaptured symbols at the end of codegen since only
the captured ones will be used after that point.
~2MB progression on Membuster OSUS.
Reviewed by Geoffrey Garen.
* bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedCodeBlock::setSymbolTable):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::generate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163337
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-02-03 Andreas Kling <akling@apple.com>
+
+ Keep only captured symbols in CodeBlock symbol tables.
+ <https://webkit.org/b/128050>
+
+ Discard all uncaptured symbols at the end of codegen since only
+ the captured ones will be used after that point.
+
+ ~2MB progression on Membuster OSUS.
+
+ Reviewed by Geoffrey Garen.
+
+ * bytecode/UnlinkedCodeBlock.h:
+ (JSC::UnlinkedCodeBlock::setSymbolTable):
+ * bytecompiler/BytecodeGenerator.cpp:
+ (JSC::BytecodeGenerator::generate):
+
2014-02-03 Mark Hahnenberg <mhahnenberg@apple.com>
Fix the LLInt C loop
UnlinkedHandlerInfo& exceptionHandler(int index) { ASSERT(m_rareData); return m_rareData->m_exceptionHandlers[index]; }
SymbolTable* symbolTable() const { return m_symbolTable.get(); }
+ void setSymbolTable(SymbolTable* table) { m_symbolTable.set(*m_vm, this, table); }
VM* vm() const { return m_vm; }
m_codeBlock->shrinkToFit();
+ if (m_codeBlock->symbolTable())
+ m_codeBlock->setSymbolTable(m_codeBlock->symbolTable()->cloneCapturedNames(*m_codeBlock->vm()));
+
if (m_expressionTooDeep)
return ParserError(ParserError::OutOfMemory);
return ParserError(ParserError::ErrorNone);