Changeset 162278 in webkit
- Timestamp:
- Jan 18, 2014 3:10:29 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r162277 r162278 1 2014-01-18 Andreas Kling <akling@apple.com> 2 3 Remove two unused CodeBlock functions. 4 <https://webkit.org/b/127235> 5 6 Kill copyPostParseDataFrom() and copyPostParseDataFromAlternative() 7 since they are not used. 8 9 Reviewed by Anders Carlsson. 10 11 * bytecode/CodeBlock.cpp: 12 * bytecode/CodeBlock.h: 13 1 14 2014-01-18 Andreas Kling <akling@apple.com> 2 15 -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r162277 r162278 2699 2699 } 2700 2700 2701 template<typename T, size_t inlineCapacity, typename U, typename V>2702 inline void replaceExistingEntries(Vector<T, inlineCapacity, U>& target, Vector<T, inlineCapacity, V>& source)2703 {2704 ASSERT(target.size() <= source.size());2705 for (size_t i = 0; i < target.size(); ++i)2706 target[i] = source[i];2707 }2708 2709 void CodeBlock::copyPostParseDataFrom(CodeBlock* alternative)2710 {2711 if (!alternative)2712 return;2713 2714 replaceExistingEntries(m_constantRegisters, alternative->m_constantRegisters);2715 replaceExistingEntries(m_functionDecls, alternative->m_functionDecls);2716 replaceExistingEntries(m_functionExprs, alternative->m_functionExprs);2717 if (!!m_rareData && !!alternative->m_rareData)2718 replaceExistingEntries(m_rareData->m_constantBuffers, alternative->m_rareData->m_constantBuffers);2719 }2720 2721 void CodeBlock::copyPostParseDataFromAlternative()2722 {2723 copyPostParseDataFrom(m_alternative.get());2724 }2725 2726 2701 void CodeBlock::install() 2727 2702 { -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r162277 r162278 722 722 void shrinkToFit(ShrinkMode); 723 723 724 void copyPostParseDataFrom(CodeBlock* alternative);725 void copyPostParseDataFromAlternative();726 727 724 // Functions for controlling when JITting kicks in, in a mixed mode 728 725 // execution world.
Note: See TracChangeset
for help on using the changeset viewer.