Changeset 162278 in webkit


Ignore:
Timestamp:
Jan 18, 2014 3:10:29 PM (10 years ago)
Author:
akling@apple.com
Message:

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:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r162277 r162278  
     12014-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
    1142014-01-18  Andreas Kling  <akling@apple.com>
    215
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r162277 r162278  
    26992699}
    27002700
    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 
    27262701void CodeBlock::install()
    27272702{
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.h

    r162277 r162278  
    722722    void shrinkToFit(ShrinkMode);
    723723
    724     void copyPostParseDataFrom(CodeBlock* alternative);
    725     void copyPostParseDataFromAlternative();
    726 
    727724    // Functions for controlling when JITting kicks in, in a mixed mode
    728725    // execution world.
Note: See TracChangeset for help on using the changeset viewer.