summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/RegExpCache.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-05-24 08:28:08 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-05-24 08:28:08 +0000
commita4e969f4965059196ca948db781e52f7cfebf19e (patch)
tree6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/JavaScriptCore/runtime/RegExpCache.cpp
parent41386e9cb918eed93b3f13648cbef387e371e451 (diff)
downloadWebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/JavaScriptCore/runtime/RegExpCache.cpp')
-rw-r--r--Source/JavaScriptCore/runtime/RegExpCache.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/runtime/RegExpCache.cpp b/Source/JavaScriptCore/runtime/RegExpCache.cpp
index 126004701..8f4660a78 100644
--- a/Source/JavaScriptCore/runtime/RegExpCache.cpp
+++ b/Source/JavaScriptCore/runtime/RegExpCache.cpp
@@ -29,7 +29,7 @@
#include "config.h"
#include "RegExpCache.h"
-#include "Operations.h"
+#include "JSCInlines.h"
#include "RegExpObject.h"
#include "StrongInlines.h"
@@ -60,7 +60,6 @@ void RegExpCache::finalize(Handle<Unknown> handle, void*)
{
RegExp* regExp = static_cast<RegExp*>(handle.get().asCell());
weakRemove(m_weakCache, regExp->key(), regExp);
- regExp->invalidateCode();
}
void RegExpCache::addToStrongCache(RegExp* regExp)
@@ -74,7 +73,7 @@ void RegExpCache::addToStrongCache(RegExp* regExp)
m_nextEntryInStrongCache = 0;
}
-void RegExpCache::invalidateCode()
+void RegExpCache::deleteAllCode()
{
for (int i = 0; i < maxStrongCacheableEntries; i++)
m_strongCache[i].clear();
@@ -85,7 +84,7 @@ void RegExpCache::invalidateCode()
RegExp* regExp = it->value.get();
if (!regExp) // Skip zombies.
continue;
- regExp->invalidateCode();
+ regExp->deleteCode();
}
}