diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h')
-rw-r--r-- | Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h b/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h index 95ef941cd..9c3b06842 100644 --- a/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h +++ b/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h @@ -23,15 +23,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef LazyOperandValueProfile_h -#define LazyOperandValueProfile_h +#pragma once -#include "ConcurrentJITLock.h" +#include "ConcurrentJSLock.h" #include "ValueProfile.h" #include "VirtualRegister.h" #include <wtf/HashMap.h> #include <wtf/Noncopyable.h> -#include <wtf/OwnPtr.h> #include <wtf/SegmentedVector.h> namespace JSC { @@ -154,14 +152,14 @@ public: CompressedLazyOperandValueProfileHolder(); ~CompressedLazyOperandValueProfileHolder(); - void computeUpdatedPredictions(const ConcurrentJITLocker&); + void computeUpdatedPredictions(const ConcurrentJSLocker&); LazyOperandValueProfile* add( - const ConcurrentJITLocker&, const LazyOperandValueProfileKey& key); + const ConcurrentJSLocker&, const LazyOperandValueProfileKey& key); private: friend class LazyOperandValueProfileParser; - OwnPtr<LazyOperandValueProfile::List> m_data; + std::unique_ptr<LazyOperandValueProfile::List> m_data; }; class LazyOperandValueProfileParser { @@ -171,19 +169,15 @@ public: ~LazyOperandValueProfileParser(); void initialize( - const ConcurrentJITLocker&, CompressedLazyOperandValueProfileHolder& holder); + const ConcurrentJSLocker&, CompressedLazyOperandValueProfileHolder& holder); LazyOperandValueProfile* getIfPresent( const LazyOperandValueProfileKey& key) const; SpeculatedType prediction( - const ConcurrentJITLocker&, const LazyOperandValueProfileKey& key) const; + const ConcurrentJSLocker&, const LazyOperandValueProfileKey& key) const; private: HashMap<LazyOperandValueProfileKey, LazyOperandValueProfile*> m_map; }; } // namespace JSC - -#endif // LazyOperandValueProfile_h - - |