From 41386e9cb918eed93b3f13648cbef387e371e451 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 20 May 2015 09:56:07 +0000 Subject: webkitgtk-2.4.9 --- .../bytecode/StructureStubClearingWatchpoint.h | 34 ++++++++++++---------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'Source/JavaScriptCore/bytecode/StructureStubClearingWatchpoint.h') 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 #if ENABLE(JIT) #include #include +#include +#include #include #include @@ -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 next) - : m_key(key) - , m_holder(holder) - , m_next(WTF::move(next)) + PassOwnPtr next) + : m_holder(holder) + , m_next(next) { } virtual ~StructureStubClearingWatchpoint(); static StructureStubClearingWatchpoint* push( - const ObjectPropertyCondition& key, WatchpointsOnStructureStubInfo& holder, - std::unique_ptr& head); + OwnPtr& head); protected: - virtual void fireInternal(const FireDetail&) override; + virtual void fireInternal() override; private: - ObjectPropertyCondition m_key; WatchpointsOnStructureStubInfo& m_holder; - std::unique_ptr m_next; + OwnPtr m_next; }; class WatchpointsOnStructureStubInfo : public RefCounted { @@ -82,11 +86,11 @@ public: ~WatchpointsOnStructureStubInfo(); - StructureStubClearingWatchpoint* addWatchpoint(const ObjectPropertyCondition& key); + StructureStubClearingWatchpoint* addWatchpoint(); static StructureStubClearingWatchpoint* ensureReferenceAndAddWatchpoint( RefPtr& 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 m_head; + OwnPtr m_head; }; } // namespace JSC -- cgit v1.2.1