summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecode/InlineCallFrameSet.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/bytecode/InlineCallFrameSet.h')
-rw-r--r--Source/JavaScriptCore/bytecode/InlineCallFrameSet.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/JavaScriptCore/bytecode/InlineCallFrameSet.h b/Source/JavaScriptCore/bytecode/InlineCallFrameSet.h
index 0a8b2e79c..6c6184173 100644
--- a/Source/JavaScriptCore/bytecode/InlineCallFrameSet.h
+++ b/Source/JavaScriptCore/bytecode/InlineCallFrameSet.h
@@ -23,17 +23,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InlineCallFrameSet_h
-#define InlineCallFrameSet_h
+#pragma once
#include "CodeOrigin.h"
#include <wtf/Bag.h>
-#include <wtf/Noncopyable.h>
+#include <wtf/RefCounted.h>
namespace JSC {
-class InlineCallFrameSet {
- WTF_MAKE_NONCOPYABLE(InlineCallFrameSet);
+class InlineCallFrameSet : public RefCounted<InlineCallFrameSet> {
public:
InlineCallFrameSet();
~InlineCallFrameSet();
@@ -45,12 +43,9 @@ public:
typedef Bag<InlineCallFrame>::iterator iterator;
iterator begin() { return m_frames.begin(); }
iterator end() { return m_frames.end(); }
-
+
private:
Bag<InlineCallFrame> m_frames;
};
} // namespace JSC
-
-#endif // InlineCallFrameSet_h
-