diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/bytecode/DFGExitProfile.cpp | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/bytecode/DFGExitProfile.cpp')
-rw-r--r-- | Source/JavaScriptCore/bytecode/DFGExitProfile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/bytecode/DFGExitProfile.cpp b/Source/JavaScriptCore/bytecode/DFGExitProfile.cpp index 40a25ced6..5d05bbb2f 100644 --- a/Source/JavaScriptCore/bytecode/DFGExitProfile.cpp +++ b/Source/JavaScriptCore/bytecode/DFGExitProfile.cpp @@ -28,6 +28,8 @@ #if ENABLE(DFG_JIT) +#include <wtf/PassOwnPtr.h> + namespace JSC { namespace DFG { ExitProfile::ExitProfile() { } @@ -35,12 +37,10 @@ ExitProfile::~ExitProfile() { } bool ExitProfile::add(const ConcurrentJITLocker&, const FrequentExitSite& site) { - ASSERT(site.jitType() != ExitFromAnything); - // If we've never seen any frequent exits then create the list and put this site // into it. if (!m_frequentExitSites) { - m_frequentExitSites = std::make_unique<Vector<FrequentExitSite>>(); + m_frequentExitSites = adoptPtr(new Vector<FrequentExitSite>()); m_frequentExitSites->append(site); return true; } @@ -78,7 +78,7 @@ bool ExitProfile::hasExitSite(const ConcurrentJITLocker&, const FrequentExitSite return false; for (unsigned i = m_frequentExitSites->size(); i--;) { - if (site.subsumes(m_frequentExitSites->at(i))) + if (m_frequentExitSites->at(i) == site) return true; } return false; |