X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..refs/heads/master:/bytecode/StructureStubClearingWatchpoint.cpp diff --git a/bytecode/StructureStubClearingWatchpoint.cpp b/bytecode/StructureStubClearingWatchpoint.cpp index 5cfb3d1..f08460d 100644 --- a/bytecode/StructureStubClearingWatchpoint.cpp +++ b/bytecode/StructureStubClearingWatchpoint.cpp @@ -29,6 +29,7 @@ #if ENABLE(JIT) #include "CodeBlock.h" +#include "JSCInlines.h" #include "StructureStubInfo.h" namespace JSC { @@ -37,13 +38,13 @@ StructureStubClearingWatchpoint::~StructureStubClearingWatchpoint() { } StructureStubClearingWatchpoint* StructureStubClearingWatchpoint::push( WatchpointsOnStructureStubInfo& holder, - OwnPtr& head) + std::unique_ptr& head) { - head = adoptPtr(new StructureStubClearingWatchpoint(holder, head.release())); + head = std::make_unique(holder, WTF::move(head)); return head.get(); } -void StructureStubClearingWatchpoint::fireInternal() +void StructureStubClearingWatchpoint::fireInternal(const FireDetail&) { // This will implicitly cause my own demise: stub reset removes all watchpoints. // That works, because deleting a watchpoint removes it from the set's list, and