diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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 - - |