Ignore:
Timestamp:
Feb 17, 2015, 11:04:10 PM (10 years ago)
Author:
[email protected]
Message:

Clean up OSRExit's considerAddingAsFrequentExitSite()
https://bugs.webkit.org/show_bug.cgi?id=141690

Patch by Benjamin Poulain <[email protected]> on 2015-02-17
Reviewed by Anders Carlsson.

Looks like some code was removed from CodeBlock::tallyFrequentExitSites()
and the OSRExit were left untouched.

This patch cleans up the two loops and remove the boolean return
on considerAddingAsFrequentExitSite().

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::tallyFrequentExitSites):

  • dfg/DFGOSRExit.h:

(JSC::DFG::OSRExit::considerAddingAsFrequentExitSite):

  • dfg/DFGOSRExitBase.cpp:

(JSC::DFG::OSRExitBase::considerAddingAsFrequentExitSiteSlow):

  • dfg/DFGOSRExitBase.h:

(JSC::DFG::OSRExitBase::considerAddingAsFrequentExitSite):

  • ftl/FTLOSRExit.h:

(JSC::FTL::OSRExit::considerAddingAsFrequentExitSite):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r179503 r180257  
    37313731        for (unsigned i = 0; i < jitCode->osrExit.size(); ++i) {
    37323732            DFG::OSRExit& exit = jitCode->osrExit[i];
    3733            
    3734             if (!exit.considerAddingAsFrequentExitSite(profiledBlock))
    3735                 continue;
     3733            exit.considerAddingAsFrequentExitSite(profiledBlock);
    37363734        }
    37373735        break;
     
    37463744        for (unsigned i = 0; i < jitCode->osrExit.size(); ++i) {
    37473745            FTL::OSRExit& exit = jitCode->osrExit[i];
    3748            
    3749             if (!exit.considerAddingAsFrequentExitSite(profiledBlock))
    3750                 continue;
     3746            exit.considerAddingAsFrequentExitSite(profiledBlock);
    37513747        }
    37523748        break;
Note: See TracChangeset for help on using the changeset viewer.