Changeset 107595 in webkit for trunk/Source/JavaScriptCore/wtf/Assertions.h
- Timestamp:
- Feb 13, 2012, 12:57:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/Assertions.h
r107581 r107595 375 375 #endif 376 376 377 #if ENABLE(GC_VALIDATION)378 #define ASSERT_GC_OBJECT_LOOKS_VALID(cell) do { \379 if (!(cell))\380 CRASH();\381 if (cell->unvalidatedStructure()->unvalidatedStructure() != cell->unvalidatedStructure()->unvalidatedStructure()->unvalidatedStructure())\382 CRASH();\383 } while (0)384 385 #define ASSERT_GC_OBJECT_INHERITS(object, classInfo) do {\386 ASSERT_GC_OBJECT_LOOKS_VALID(object); \387 if (!object->inherits(classInfo)) \388 CRASH();\389 } while (0)390 391 #else392 #define ASSERT_GC_OBJECT_LOOKS_VALID(cell) do { (void)cell; } while (0)393 #define ASSERT_GC_OBJECT_INHERITS(object, classInfo) do { (void)object; (void)classInfo; } while (0)394 #endif395 396 #if COMPILER(CLANG)397 #define ASSERT_HAS_TRIVIAL_DESTRUCTOR(klass) COMPILE_ASSERT(__has_trivial_destructor(klass), klass##_has_trivial_destructor_check)398 #else399 #define ASSERT_HAS_TRIVIAL_DESTRUCTOR(klass)400 #endif401 402 377 #endif /* WTF_Assertions_h */
Note:
See TracChangeset
for help on using the changeset viewer.