#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>
StructureStubClearingWatchpoint(
WatchpointsOnStructureStubInfo& holder,
- PassOwnPtr<StructureStubClearingWatchpoint> next)
+ std::unique_ptr<StructureStubClearingWatchpoint> next)
: m_holder(holder)
- , m_next(next)
+ , m_next(WTF::move(next))
{
}
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> {
private:
CodeBlock* m_codeBlock;
StructureStubInfo* m_stubInfo;
- OwnPtr<StructureStubClearingWatchpoint> m_head;
+ std::unique_ptr<StructureStubClearingWatchpoint> m_head;
};
} // namespace JSC