Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
bmalloc: Chunk, Page, and Line don't need to be class templates
https://bugs.webkit.org/show_bug.cgi?id=154480 Reviewed by Gavin Barraclough. We needed class templates to distinguish between small and medium, but medium is gone now. * bmalloc.xcodeproj/project.pbxproj: * bmalloc/Chunk.h: Removed. * bmalloc/Heap.cpp: (bmalloc::Heap::initializeLineMetadata): (bmalloc::Heap::allocateSmallBumpRanges): * bmalloc/Heap.h: * bmalloc/Line.h: Removed. * bmalloc/Page.h: Removed. * bmalloc/Sizes.h: * bmalloc/SmallChunk.h: Replaced with Source/bmalloc/bmalloc/Chunk.h. (bmalloc::SmallChunk::begin): (bmalloc::SmallChunk::end): (bmalloc::SmallChunk::lines): (bmalloc::SmallChunk::pages): (bmalloc::SmallChunk::get): (bmalloc::SmallLine::get): (bmalloc::SmallLine::begin): (bmalloc::SmallLine::end): (bmalloc::SmallPage::get): (bmalloc::SmallPage::begin): (bmalloc::SmallPage::end): (bmalloc::Chunk::begin): Deleted. (bmalloc::Chunk::end): Deleted. (bmalloc::Chunk::lines): Deleted. (bmalloc::Chunk::pages): Deleted. * bmalloc/SmallLine.h: Replaced with Source/bmalloc/bmalloc/Line.h. (bmalloc::SmallLine::ref): (bmalloc::SmallLine::deref): (bmalloc::Line<Traits>::begin): Deleted. (bmalloc::Line<Traits>::end): Deleted. (bmalloc::Line<Traits>::ref): Deleted. (bmalloc::Line<Traits>::deref): Deleted. * bmalloc/SmallPage.h: Replaced with Source/bmalloc/bmalloc/Page.h. (bmalloc::SmallPage::hasFreeLines): (bmalloc::SmallPage::setHasFreeLines): (bmalloc::SmallPage::ref): (bmalloc::SmallPage::deref): (bmalloc::Page::hasFreeLines): Deleted. (bmalloc::Page::setHasFreeLines): Deleted. (bmalloc::Page<Traits>::ref): Deleted. (bmalloc::Page<Traits>::deref): Deleted. * bmalloc/SmallTraits.h: Removed. Canonical link: https://commits.webkit.org/172589@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
ecae77d
commit 1e5abb6
Showing
12 changed files
with
225 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.