diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
| commit | 41386e9cb918eed93b3f13648cbef387e371e451 (patch) | |
| tree | a97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h | |
| parent | e15dd966d523731101f70ccf768bba12435a0208 (diff) | |
| download | WebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz | |
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h')
| -rw-r--r-- | Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h b/Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h index abacf3159..4c6bdecf4 100644 --- a/Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h +++ b/Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012, 2015 Apple Inc. All rights reserved. + * Copyright (C) 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,13 +26,15 @@ #ifndef StructureStubClearingWatchpoint_h #define StructureStubClearingWatchpoint_h -#include "ObjectPropertyCondition.h" #include "Watchpoint.h" +#include <wtf/Platform.h> #if ENABLE(JIT) #include <wtf/FastMalloc.h> #include <wtf/Noncopyable.h> +#include <wtf/OwnPtr.h> +#include <wtf/PassOwnPtr.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> @@ -47,29 +49,31 @@ class StructureStubClearingWatchpoint : public Watchpoint { WTF_MAKE_FAST_ALLOCATED; public: StructureStubClearingWatchpoint( - const ObjectPropertyCondition& key, + WatchpointsOnStructureStubInfo& holder) + : m_holder(holder) + { + } + + StructureStubClearingWatchpoint( WatchpointsOnStructureStubInfo& holder, - std::unique_ptr<StructureStubClearingWatchpoint> next) - : m_key(key) - , m_holder(holder) - , m_next(WTF::move(next)) + PassOwnPtr<StructureStubClearingWatchpoint> next) + : m_holder(holder) + , m_next(next) { } virtual ~StructureStubClearingWatchpoint(); static StructureStubClearingWatchpoint* push( - const ObjectPropertyCondition& key, WatchpointsOnStructureStubInfo& holder, - std::unique_ptr<StructureStubClearingWatchpoint>& head); + OwnPtr<StructureStubClearingWatchpoint>& head); protected: - virtual void fireInternal(const FireDetail&) override; + virtual void fireInternal() override; private: - ObjectPropertyCondition m_key; WatchpointsOnStructureStubInfo& m_holder; - std::unique_ptr<StructureStubClearingWatchpoint> m_next; + OwnPtr<StructureStubClearingWatchpoint> m_next; }; class WatchpointsOnStructureStubInfo : public RefCounted<WatchpointsOnStructureStubInfo> { @@ -82,11 +86,11 @@ public: ~WatchpointsOnStructureStubInfo(); - StructureStubClearingWatchpoint* addWatchpoint(const ObjectPropertyCondition& key); + StructureStubClearingWatchpoint* addWatchpoint(); static StructureStubClearingWatchpoint* ensureReferenceAndAddWatchpoint( RefPtr<WatchpointsOnStructureStubInfo>& holderRef, - CodeBlock*, StructureStubInfo*, const ObjectPropertyCondition& key); + CodeBlock*, StructureStubInfo*); CodeBlock* codeBlock() const { return m_codeBlock; } StructureStubInfo* stubInfo() const { return m_stubInfo; } @@ -94,7 +98,7 @@ public: private: CodeBlock* m_codeBlock; StructureStubInfo* m_stubInfo; - std::unique_ptr<StructureStubClearingWatchpoint> m_head; + OwnPtr<StructureStubClearingWatchpoint> m_head; }; } // namespace JSC |
