summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/RegExpCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/RegExpCache.h')
-rw-r--r--Source/JavaScriptCore/runtime/RegExpCache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/runtime/RegExpCache.h b/Source/JavaScriptCore/runtime/RegExpCache.h
index c6a4a0aa2..4f854d1ba 100644
--- a/Source/JavaScriptCore/runtime/RegExpCache.h
+++ b/Source/JavaScriptCore/runtime/RegExpCache.h
@@ -29,6 +29,7 @@
#include "RegExpKey.h"
#include "Strong.h"
#include "Weak.h"
+#include "WeakInlines.h"
#include <wtf/FixedArray.h>
#include <wtf/HashMap.h>
@@ -42,7 +43,7 @@ friend class RegExp;
typedef HashMap<RegExpKey, Weak<RegExp> > RegExpCacheMap;
public:
- RegExpCache(JSGlobalData* globalData);
+ RegExpCache(VM* vm);
void invalidateCode();
private:
@@ -58,7 +59,7 @@ private:
RegExpCacheMap m_weakCache; // Holds all regular expressions currently live.
int m_nextEntryInStrongCache;
WTF::FixedArray<Strong<RegExp>, maxStrongCacheableEntries> m_strongCache; // Holds a select few regular expressions that have compiled and executed
- JSGlobalData* m_globalData;
+ VM* m_vm;
};
} // namespace JSC