Changeset 50911 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.h
- Timestamp:
- Nov 12, 2009, 3:39:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.h
r50204 r50911 27 27 #include <new> 28 28 29 #if COMPILER(GCC)30 #define WTF_FAST_MALLOC_EXPORT __attribute__((visibility("default")))31 #else32 #define WTF_FAST_MALLOC_EXPORT33 #endif34 35 29 namespace WTF { 36 30 37 31 // These functions call CRASH() if an allocation fails. 38 void* fastMalloc(size_t) WTF_FAST_MALLOC_EXPORT;32 void* fastMalloc(size_t); 39 33 void* fastZeroedMalloc(size_t); 40 void* fastCalloc(size_t numElements, size_t elementSize) WTF_FAST_MALLOC_EXPORT;41 void* fastRealloc(void*, size_t) WTF_FAST_MALLOC_EXPORT;34 void* fastCalloc(size_t numElements, size_t elementSize); 35 void* fastRealloc(void*, size_t); 42 36 43 37 struct TryMallocReturnValue { … … 78 72 TryMallocReturnValue tryFastRealloc(void* p, size_t n); 79 73 80 void fastFree(void*) WTF_FAST_MALLOC_EXPORT;74 void fastFree(void*); 81 75 82 76 #ifndef NDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.