Ignore:
Timestamp:
Sep 18, 2013, 10:27:08 AM (12 years ago)
Author:
[email protected]
Message:

Rename OperationInProgress to HeapOperation and move it out of Heap.h into its own header
https://bugs.webkit.org/show_bug.cgi?id=121534

Reviewed by Geoffrey Garen.

OperationInProgress is a silly name.

Many parts of the Heap would like to know what HeapOperation is currently underway, but
since they are included in Heap.h they can't directly reference HeapOperation if it also
lives in Heap.h. The simplest thing to do is to give HeapOperation its own header. While
a bit overkill, it simplifies including it wherever its needed.

(JSC::CodeBlock::updateAllPredictionsAndCountLiveness):
(JSC::CodeBlock::updateAllValueProfilePredictions):
(JSC::CodeBlock::updateAllPredictions):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::updateAllValueProfilePredictions):
(JSC::CodeBlock::updateAllPredictions):

  • bytecode/LazyOperandValueProfile.cpp:

(JSC::CompressedLazyOperandValueProfileHolder::computeUpdatedPredictions):

  • bytecode/LazyOperandValueProfile.h:
  • bytecode/ValueProfile.h:

(JSC::ValueProfileBase::computeUpdatedPrediction):

  • heap/Heap.h:
  • heap/HeapOperation.h: Added.
File:
1 edited

Legend:

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

    r155711 r156050  
    913913#if ENABLE(VALUE_PROFILER)
    914914    bool shouldOptimizeNow();
    915     void updateAllValueProfilePredictions(OperationInProgress = NoOperation);
     915    void updateAllValueProfilePredictions(HeapOperation = NoOperation);
    916916    void updateAllArrayPredictions();
    917     void updateAllPredictions(OperationInProgress = NoOperation);
     917    void updateAllPredictions(HeapOperation = NoOperation);
    918918#else
    919919    bool updateAllPredictionsAndCheckIfShouldOptimizeNow() { return false; }
    920     void updateAllValueProfilePredictions(OperationInProgress = NoOperation) { }
     920    void updateAllValueProfilePredictions(HeapOperation = NoOperation) { }
    921921    void updateAllArrayPredictions() { }
    922     void updateAllPredictions(OperationInProgress = NoOperation) { }
     922    void updateAllPredictions(HeapOperation = NoOperation) { }
    923923#endif
    924924
     
    984984       
    985985#if ENABLE(VALUE_PROFILER)
    986     void updateAllPredictionsAndCountLiveness(OperationInProgress, unsigned& numberOfLiveNonArgumentValueProfiles, unsigned& numberOfSamplesInProfiles);
     986    void updateAllPredictionsAndCountLiveness(HeapOperation, unsigned& numberOfLiveNonArgumentValueProfiles, unsigned& numberOfSamplesInProfiles);
    987987#endif
    988988
Note: See TracChangeset for help on using the changeset viewer.