Changeset 53677 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Jan 21, 2010, 10:05:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r53584 r53677 180 180 return result; 181 181 } 182 183 char* fastStrDup(const char* src) 184 { 185 int len = strlen(src) + 1; 186 char* dup = static_cast<char*>(fastMalloc(len)); 187 188 if (dup) 189 memcpy(dup, src, len); 190 191 return dup; 192 } 182 193 183 194 TryMallocReturnValue tryFastZeroedMalloc(size_t n)
Note:
See TracChangeset
for help on using the changeset viewer.