| Index: src/spaces-inl.h
|
| diff --git a/src/spaces-inl.h b/src/spaces-inl.h
|
| index aaca9e45caa49617ac9d35adf7e6f5f8df17bb81..ad09ae2e041b15b10a02a4f751b5316429c9587a 100644
|
| --- a/src/spaces-inl.h
|
| +++ b/src/spaces-inl.h
|
| @@ -481,7 +481,7 @@ void LargeObjectChunk::Free(Executability executable) {
|
| }
|
|
|
| // -----------------------------------------------------------------------------
|
| -// NewSpace
|
| +// LargeObjectSpace
|
|
|
| MaybeObject* NewSpace::AllocateRawInternal(int size_in_bytes,
|
| AllocationInfo* alloc_info) {
|
| @@ -501,18 +501,6 @@ MaybeObject* NewSpace::AllocateRawInternal(int size_in_bytes,
|
| }
|
|
|
|
|
| -template <typename StringType>
|
| -void NewSpace::ShrinkStringAtAllocationBoundary(String* string, int length) {
|
| - ASSERT(length <= string->length());
|
| - ASSERT(string->IsSeqString());
|
| - ASSERT(string->address() + StringType::SizeFor(string->length()) ==
|
| - allocation_info_.top);
|
| - allocation_info_.top =
|
| - string->address() + StringType::SizeFor(length);
|
| - string->set_length(length);
|
| -}
|
| -
|
| -
|
| bool FreeListNode::IsFreeListNode(HeapObject* object) {
|
| return object->map() == Heap::raw_unchecked_byte_array_map()
|
| || object->map() == Heap::raw_unchecked_one_pointer_filler_map()
|
|
|