X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/1df5f87f1309a8daa30dabdee855f48ae40d14ab..6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174:/heap/WeakReferenceHarvester.h diff --git a/heap/WeakReferenceHarvester.h b/heap/WeakReferenceHarvester.h new file mode 100644 index 0000000..90b4dee --- /dev/null +++ b/heap/WeakReferenceHarvester.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2011 Apple Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef WeakReferenceHarvester_h +#define WeakReferenceHarvester_h + +#include "ListableHandler.h" + +namespace JSC { + +class MarkStack; +class MarkStackSharedData; +class SlotVisitor; + +class WeakReferenceHarvester : public ListableHandler { +public: + virtual void visitWeakReferences(SlotVisitor&) = 0; + +protected: + WeakReferenceHarvester() + { + } + + virtual ~WeakReferenceHarvester() { } +}; + +} // namespace JSC + +#endif // WeakReferenceHarvester_h