summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecode/DFGExitProfile.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/bytecode/DFGExitProfile.cpp
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/bytecode/DFGExitProfile.cpp')
-rw-r--r--Source/JavaScriptCore/bytecode/DFGExitProfile.cpp8
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;