Baby step toward a cross-platform virtual memory abstraction: created
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Dec 2010 02:13:59 +0000 (02:13 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Dec 2010 02:13:59 +0000 (02:13 +0000)
commit71d37988463470582385b7cbb6fa4ee610881674
treed4a551e3a0e95337b765df0024bf477eee586d31
parent593fe51cbf4bc26634d8174f35fae0f0847977f6
Baby step toward a cross-platform virtual memory abstraction: created
an all-static OSAllocator class and changed MarkStack to use it.

Reviewed by Sam Weinig.

* JavaScriptCore.exp: These functions are inlined now.

* JavaScriptCore.vcproj/WTF/WTF.vcproj: Added OSAllocatorWin.cpp.

* JavaScriptCore.xcodeproj/project.pbxproj: Added OSAllocatorPosix.cpp.

* runtime/MarkStack.h:
(JSC::MarkStack::allocateStack):
(JSC::MarkStack::releaseStack): Use OSAllocator instead of rolling our
own platform-specific code.

* runtime/MarkStackNone.cpp: Removed. Nothing used this.

* runtime/MarkStackPosix.cpp:
* runtime/MarkStackSymbian.cpp:
* runtime/MarkStackWin.cpp: Removed custom platform-specific code, since
we use the OSAllocator abstraction now.

* wtf/OSAllocator.h: Added.
* wtf/OSAllocatorPosix.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release):
* wtf/OSAllocatorSymbian.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release):
* wtf/OSAllocatorWin.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release): The new OSAllocator abstraction.

* wtf/wtf.pri: Added OSAllocatorSymbian.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/JavaScriptCore.exp
JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
JavaScriptCore/runtime/MarkStack.h
JavaScriptCore/runtime/MarkStackNone.cpp [deleted file]
JavaScriptCore/runtime/MarkStackPosix.cpp
JavaScriptCore/runtime/MarkStackSymbian.cpp
JavaScriptCore/runtime/MarkStackWin.cpp
JavaScriptCore/wtf/OSAllocator.h [new file with mode: 0644]
JavaScriptCore/wtf/OSAllocatorPosix.cpp [new file with mode: 0644]
JavaScriptCore/wtf/OSAllocatorSymbian.cpp [new file with mode: 0644]
JavaScriptCore/wtf/OSAllocatorWin.cpp [new file with mode: 0644]
JavaScriptCore/wtf/wtf.pri