]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/RegExpCache.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / runtime / RegExpCache.cpp
index 1ab3f5f515ce09281b2267819cc977c77bdc0118..dbe647f9627fbc4dcee8c3329d35167a5728db29 100644 (file)
@@ -29,7 +29,7 @@
 #include "config.h"
 #include "RegExpCache.h"
 
 #include "config.h"
 #include "RegExpCache.h"
 
-#include "Operations.h"
+#include "JSCInlines.h"
 #include "RegExpObject.h"
 #include "StrongInlines.h"
 
 #include "RegExpObject.h"
 #include "StrongInlines.h"
 
@@ -46,7 +46,7 @@ RegExp* RegExpCache::lookupOrCreate(const String& patternString, RegExpFlags fla
     m_vm->addRegExpToTrace(regExp);
 #endif
 
     m_vm->addRegExpToTrace(regExp);
 #endif
 
-    weakAdd(m_weakCache, key, PassWeak<RegExp>(regExp, this));
+    weakAdd(m_weakCache, key, Weak<RegExp>(regExp, this));
     return regExp;
 }
 
     return regExp;
 }