]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - bytecode/StructureStubClearingWatchpoint.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / bytecode / StructureStubClearingWatchpoint.h
index 827e816ee948a0587501186cb56368e52c29b5ca..528e3ba2bdd089ffbca829e1ee1edb47b7661382 100644 (file)
 #define StructureStubClearingWatchpoint_h
 
 #include "Watchpoint.h"
-#include <wtf/Platform.h>
 
 #if ENABLE(JIT)
 
-#include <wtf/FastAllocBase.h>
+#include <wtf/FastMalloc.h>
 #include <wtf/Noncopyable.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
 
@@ -56,9 +53,9 @@ public:
     
     StructureStubClearingWatchpoint(
         WatchpointsOnStructureStubInfo& holder,
-        PassOwnPtr<StructureStubClearingWatchpoint> next)
+        std::unique_ptr<StructureStubClearingWatchpoint> next)
         : m_holder(holder)
-        , m_next(next)
+        , m_next(WTF::move(next))
     {
     }
     
@@ -66,14 +63,14 @@ public:
     
     static StructureStubClearingWatchpoint* push(
         WatchpointsOnStructureStubInfo& holder,
-        OwnPtr<StructureStubClearingWatchpoint>& head);
+        std::unique_ptr<StructureStubClearingWatchpoint>& head);
 
 protected:
-    void fireInternal();
+    virtual void fireInternal(const FireDetail&) override;
 
 private:
     WatchpointsOnStructureStubInfo& m_holder;
-    OwnPtr<StructureStubClearingWatchpoint> m_next;
+    std::unique_ptr<StructureStubClearingWatchpoint> m_next;
 };
 
 class WatchpointsOnStructureStubInfo : public RefCounted<WatchpointsOnStructureStubInfo> {
@@ -98,7 +95,7 @@ public:
 private:
     CodeBlock* m_codeBlock;
     StructureStubInfo* m_stubInfo;
-    OwnPtr<StructureStubClearingWatchpoint> m_head;
+    std::unique_ptr<StructureStubClearingWatchpoint> m_head;
 };
 
 } // namespace JSC