author | Jon Coppeard <jcoppeard@mozilla.com> |
Tue, 20 Nov 2012 10:03:09 +0000 (2012-11-20) | |
changeset 113760 | 2739c46c22398e75dcd18cf0889b994fbeb435e8 |
parent 113759 | 26544b27ef13ac7172b0fecccf8a90c1c2db8b19 |
child 113761 | 38f5af022bf71f5c0965f4d890a1402c5901ed7b |
push id | 18372 |
push user | jcoppeard@mozilla.com |
push date | Tue, 20 Nov 2012 10:06:48 +0000 (2012-11-20) |
treeherder | mozilla-inbound@2739c46c2239 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | billm |
bugs | 813007 |
milestone | 20.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
js/src/assembler/jit/ExecutableAllocatorSymbian.cpp | file | annotate | diff | comparison | revisions |
deleted file mode 100644 --- a/js/src/assembler/jit/ExecutableAllocatorSymbian.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - */ - -#include "config.h" - -#include "ExecutableAllocator.h" - -#if ENABLE_ASSEMBLER && WTF_OS_SYMBIAN - -#include <e32hal.h> -#include <e32std.h> - -// Set the page size to 256 Kb to compensate for moving memory model limitation -const size_t MOVING_MEM_PAGE_SIZE = 256 * 1024; - -namespace JSC { - -size_t ExecutableAllocator::determinePageSize() -{ -#if WTF_CPU_ARMV5_OR_LOWER - // The moving memory model (as used in ARMv5 and earlier platforms) - // on Symbian OS limits the number of chunks for each process to 16. - // To mitigate this limitation increase the pagesize to - // allocate less of larger chunks. - return MOVING_MEM_PAGE_SIZE; -#else - TInt page_size; - UserHal::PageSizeInBytes(page_size); - return page_size; -#endif -} - -ExecutablePool::Allocation ExecutableAllocator::systemAlloc(size_t n) -{ - RChunk* codeChunk = new RChunk(); - - TInt errorCode = codeChunk->CreateLocalCode(n, n); - - char* allocation = reinterpret_cast<char*>(codeChunk->Base()); - ExecutablePool::Allocation alloc = { allocation, n, codeChunk }; - return alloc; -} - -void ExecutableAllocator::systemRelease(const ExecutablePool::Allocation& alloc) -{ - alloc.chunk->Close(); - delete alloc.chunk; -} - -#if ENABLE_ASSEMBLER_WX_EXCLUSIVE -#error "ASSEMBLER_WX_EXCLUSIVE not yet suported on this platform." -#endif - -} - -#endif // HAVE(ASSEMBLER)