bmalloc: allocate small and medium objects using the same bump pointer class
[WebKit-https.git] / Source / bmalloc / bmalloc / ObjectType.h
index 6558da1b0ae2582a6721aab16eeb5766f48c0487..8d5f744239adeb111740a4376d5ee9c2ac5fa57b 100644 (file)
@@ -46,6 +46,11 @@ inline bool isSmall(void* smallOrMedium)
     return test(smallOrMedium, smallOrMediumSmallTypeMask);
 }
 
+inline bool isMedium(void* smallOrMedium)
+{
+    return !isSmall(smallOrMedium);
+}
+
 } // namespace bmalloc
 
 #endif // ObjectType_h