Commit 8d3388a1 authored by akling@apple.com's avatar 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:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b2ad169b
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.
......
......@@ -2698,31 +2698,6 @@ void CodeBlock::clearEvalCache()
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);
......
......@@ -721,9 +721,6 @@ public:
};
void shrinkToFit(ShrinkMode);
void copyPostParseDataFrom(CodeBlock* alternative);
void copyPostParseDataFromAlternative();
// Functions for controlling when JITting kicks in, in a mixed mode
// execution world.
......
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