summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/JSDestructibleObject.h
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-01-09 09:47:50 +0100
committerSergio Ahumada <sergio.ahumada@digia.com>2013-01-09 09:48:18 +0100
commit061addcfbbedeeb93079502220c15184d1da130e (patch)
tree8ea9d94e44988bdf77db3f64f5fb6563520b1ae3 /Source/JavaScriptCore/runtime/JSDestructibleObject.h
parent15b42dc09e6e4c2957b86fb36b6dae2ef60a7698 (diff)
parent9b144019dd99d696f1a9eb9cde6afa0f04d7dc05 (diff)
downloadqtwebkit-061addcfbbedeeb93079502220c15184d1da130e.tar.gz
Merge branch 'stable' into release
Change-Id: Ifdbfff78833ca658ad6d10dd829289fc0a430e6d
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSDestructibleObject.h')
-rw-r--r--Source/JavaScriptCore/runtime/JSDestructibleObject.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/Source/JavaScriptCore/runtime/JSDestructibleObject.h b/Source/JavaScriptCore/runtime/JSDestructibleObject.h
index b8479be62..efbe2b4f6 100644
--- a/Source/JavaScriptCore/runtime/JSDestructibleObject.h
+++ b/Source/JavaScriptCore/runtime/JSDestructibleObject.h
@@ -3,41 +3,4 @@
#include "JSObject.h"
-namespace JSC {
-
-struct ClassInfo;
-
-class JSDestructibleObject : public JSNonFinalObject {
-public:
- typedef JSNonFinalObject Base;
-
- static const bool needsDestruction = true;
-
- const ClassInfo* classInfo() const { return m_classInfo; }
-
-protected:
- JSDestructibleObject(JSGlobalData& globalData, Structure* structure, Butterfly* butterfly = 0)
- : JSNonFinalObject(globalData, structure, butterfly)
- , m_classInfo(structure->classInfo())
- {
- ASSERT(m_classInfo);
- }
-
-private:
- const ClassInfo* m_classInfo;
-};
-
-inline const ClassInfo* JSCell::classInfo() const
-{
- if (MarkedBlock::blockFor(this)->destructorType() == MarkedBlock::Normal)
- return static_cast<const JSDestructibleObject*>(this)->classInfo();
-#if ENABLE(GC_VALIDATION)
- return m_structure.unvalidatedGet()->classInfo();
-#else
- return m_structure->classInfo();
-#endif
-}
-
-} // namespace JSC
-
#endif