+2014-01-18 Andreas Kling <akling@apple.com>
+
+ Remove two unused CodeBlock functions.
+ <https://webkit.org/b/127235>
+
+ Kill copyPostParseDataFrom() and copyPostParseDataFromAlternative()
+ since they are not used.
+
+ Reviewed by Anders Carlsson.
+
+ * bytecode/CodeBlock.cpp:
+ * bytecode/CodeBlock.h:
+
2014-01-18 Andreas Kling <akling@apple.com>
CodeBlock: Size m_exceptionHandlers to fit from creation.
m_rareData->m_evalCodeCache.clear();
}
-template<typename T, size_t inlineCapacity, typename U, typename V>
-inline void replaceExistingEntries(Vector<T, inlineCapacity, U>& target, Vector<T, inlineCapacity, V>& source)
-{
- ASSERT(target.size() <= source.size());
- for (size_t i = 0; i < target.size(); ++i)
- target[i] = source[i];
-}
-
-void CodeBlock::copyPostParseDataFrom(CodeBlock* alternative)
-{
- if (!alternative)
- return;
-
- replaceExistingEntries(m_constantRegisters, alternative->m_constantRegisters);
- replaceExistingEntries(m_functionDecls, alternative->m_functionDecls);
- replaceExistingEntries(m_functionExprs, alternative->m_functionExprs);
- if (!!m_rareData && !!alternative->m_rareData)
- replaceExistingEntries(m_rareData->m_constantBuffers, alternative->m_rareData->m_constantBuffers);
-}
-
-void CodeBlock::copyPostParseDataFromAlternative()
-{
- copyPostParseDataFrom(m_alternative.get());
-}
-
void CodeBlock::install()
{
ownerExecutable()->installCode(this);
};
void shrinkToFit(ShrinkMode);
- void copyPostParseDataFrom(CodeBlock* alternative);
- void copyPostParseDataFromAlternative();
-
// Functions for controlling when JITting kicks in, in a mixed mode
// execution world.