]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/JSDestructibleObject.h
JavaScriptCore-7600.1.4.11.8.tar.gz
[apple/javascriptcore.git] / runtime / JSDestructibleObject.h
index 27dc06da5c4b9b29a6c2450222d11e2c60a0aa9b..f10fbabc7c4695faa0b9a019d573fe2d7c84d87c 100644 (file)
@@ -31,13 +31,10 @@ private:
 
 inline const ClassInfo* JSCell::classInfo() const
 {
-    if (MarkedBlock::blockFor(this)->destructorType() == MarkedBlock::Normal)
+    MarkedBlock* block = MarkedBlock::blockFor(this);
+    if (block->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
+    return structure(*block->vm())->classInfo();
 }
 
 } // namespace JSC