| Index: Source/wtf/text/StringImpl.cpp
|
| diff --git a/Source/wtf/text/StringImpl.cpp b/Source/wtf/text/StringImpl.cpp
|
| index b5c7ed217454c7586afcff36e80e8e3e1b881974..2ba2e91d0889bed53b53734288badf4d57ed10d5 100644
|
| --- a/Source/wtf/text/StringImpl.cpp
|
| +++ b/Source/wtf/text/StringImpl.cpp
|
| @@ -262,12 +262,12 @@ void StringStats::printStats()
|
| void* StringImpl::operator new(size_t size)
|
| {
|
| ASSERT(size == sizeof(StringImpl));
|
| - return partitionAllocGeneric(Partitions::getBufferPartition(), size);
|
| + return partitionAllocGeneric(Partitions::bufferPartition(), size);
|
| }
|
|
|
| void StringImpl::operator delete(void* ptr)
|
| {
|
| - partitionFreeGeneric(Partitions::getBufferPartition(), ptr);
|
| + partitionFreeGeneric(Partitions::bufferPartition(), ptr);
|
| }
|
|
|
| inline StringImpl::~StringImpl()
|
| @@ -296,7 +296,7 @@ PassRefPtr<StringImpl> StringImpl::createUninitialized(unsigned length, LChar*&
|
| // Allocate a single buffer large enough to contain the StringImpl
|
| // struct as well as the data which it contains. This removes one
|
| // heap allocation from this call.
|
| - StringImpl* string = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::getBufferPartition(), allocationSize<LChar>(length)));
|
| + StringImpl* string = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::bufferPartition(), allocationSize<LChar>(length)));
|
|
|
| data = reinterpret_cast<LChar*>(string + 1);
|
| return adoptRef(new (string) StringImpl(length, Force8BitConstructor));
|
| @@ -312,7 +312,7 @@ PassRefPtr<StringImpl> StringImpl::createUninitialized(unsigned length, UChar*&
|
| // Allocate a single buffer large enough to contain the StringImpl
|
| // struct as well as the data which it contains. This removes one
|
| // heap allocation from this call.
|
| - StringImpl* string = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::getBufferPartition(), allocationSize<UChar>(length)));
|
| + StringImpl* string = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::bufferPartition(), allocationSize<UChar>(length)));
|
|
|
| data = reinterpret_cast<UChar*>(string + 1);
|
| return adoptRef(new (string) StringImpl(length));
|
| @@ -329,7 +329,7 @@ PassRefPtr<StringImpl> StringImpl::reallocate(PassRefPtr<StringImpl> originalStr
|
| // Same as createUninitialized() except here we use realloc.
|
| size_t size = is8Bit ? allocationSize<LChar>(length) : allocationSize<UChar>(length);
|
| originalString->~StringImpl();
|
| - StringImpl* string = static_cast<StringImpl*>(partitionReallocGeneric(Partitions::getBufferPartition(), originalString.leakRef(), size));
|
| + StringImpl* string = static_cast<StringImpl*>(partitionReallocGeneric(Partitions::bufferPartition(), originalString.leakRef(), size));
|
| if (is8Bit)
|
| return adoptRef(new (string) StringImpl(length, Force8BitConstructor));
|
| return adoptRef(new (string) StringImpl(length));
|
| @@ -380,7 +380,7 @@ StringImpl* StringImpl::createStatic(const char* string, unsigned length, unsign
|
| size_t size = sizeof(StringImpl) + length * sizeof(LChar);
|
|
|
| WTF_ANNOTATE_SCOPED_MEMORY_LEAK;
|
| - StringImpl* impl = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::getBufferPartition(), size));
|
| + StringImpl* impl = static_cast<StringImpl*>(partitionAllocGeneric(Partitions::bufferPartition(), size));
|
|
|
| LChar* data = reinterpret_cast<LChar*>(impl + 1);
|
| impl = new (impl) StringImpl(length, hash, StaticString);
|
|
|