Bug 43185 - Switch RegisterFile over to use PageAllocation
authorGavin Barraclough <barraclough@apple.com>
Thu, 5 Aug 2010 20:57:33 +0000 (20:57 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Thu, 23 Sep 2010 19:04:20 +0000 (21:04 +0200)
commitaa118f44f2b24dae7acde201f70046fd4dc92fa5
tree016b3871690dfaefb2b1ac4f928f6542f1c7aa5c
parentd06ce7e7544b364566c38a4ab1833cedccd06dc0
Bug 43185 - Switch RegisterFile over to use PageAllocation

Reviewed by Sam Weinig.

Remove platform-specific memory allocation code.

* interpreter/RegisterFile.cpp:
(JSC::RegisterFile::~RegisterFile):
(JSC::RegisterFile::releaseExcessCapacity):
* interpreter/RegisterFile.h:
(JSC::RegisterFile::RegisterFile):
(JSC::RegisterFile::grow):
(JSC::RegisterFile::checkAllocatedOkay):
* wtf/PageAllocation.cpp:
(WTF::PageAllocation::lastError):
* wtf/PageAllocation.h:
(WTF::PageAllocation::allocate):
(WTF::PageAllocation::allocateAt):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::pageSize):
(WTF::PageAllocation::isPageAligned):
(WTF::PageAllocation::isPowerOfTwo):
* wtf/PageReservation.h:
(WTF::PageReservation::commit):
(WTF::PageReservation::decommit):
(WTF::PageReservation::reserve):
(WTF::PageReservation::reserveAt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/interpreter/RegisterFile.cpp
JavaScriptCore/interpreter/RegisterFile.h
JavaScriptCore/wtf/PageAllocation.cpp
JavaScriptCore/wtf/PageAllocation.h
JavaScriptCore/wtf/PageReservation.h