[Content Extensions] Remove memory page reporting
[WebKit-https.git] / Source / WebCore / contentextensions / DFABytecodeInterpreter.h
index 1405fab..32a4d87 100644 (file)
@@ -41,21 +41,11 @@ namespace ContentExtensions {
 
 class WEBCORE_EXPORT DFABytecodeInterpreter {
 public:
-    DFABytecodeInterpreter(const DFABytecode* bytecode, unsigned bytecodeLength, Vector<bool>& pagesUsed)
+    DFABytecodeInterpreter(const DFABytecode* bytecode, unsigned bytecodeLength)
         : m_bytecode(bytecode)
         , m_bytecodeLength(bytecodeLength)
-        , m_pagesUsed(pagesUsed)
     {
     }
-    ~DFABytecodeInterpreter()
-    {
-#if CONTENT_EXTENSIONS_MEMORY_REPORTING
-        size_t total = 0;
-        for (bool& b : m_pagesUsed)
-            total += b;
-        dataLogF("Pages used: %zu / %zu\n", total, m_pagesUsed.size());
-#endif
-    }
     
     typedef HashSet<uint64_t, DefaultHash<uint64_t>::Hash, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> Actions;
     
@@ -67,7 +57,6 @@ private:
     void interpretTestFlagsAndAppendAction(unsigned& programCounter, uint16_t flags, Actions&, bool ifDomain);
     const DFABytecode* m_bytecode;
     const unsigned m_bytecodeLength;
-    Vector<bool>& m_pagesUsed;
 };
 
 } // namespace ContentExtensions