#include <libkern/OSCacheControl.h>
#endif
-#if OS(IOS) || OS(QNX)
+#if OS(IOS)
#include <sys/mman.h>
#endif
static const unsigned jitAllocationGranule = 32;
-inline size_t roundUpAllocationSize(size_t request, size_t granularity)
-{
- RELEASE_ASSERT((std::numeric_limits<size_t>::max() - granularity) > request);
-
- // Round up to next page boundary
- size_t size = request + (granularity - 1);
- size = size & ~(granularity - 1);
- ASSERT(size >= request);
- return size;
-}
-
-}
-
-namespace JSC {
-
typedef WTF::MetaAllocatorHandle ExecutableMemoryHandle;
#if ENABLE(ASSEMBLER)
};
-
-#else
-
-#if PLATFORM(IOS)
-
-class ExecutableAllocator {
-public:
- static size_t committedByteCount();
-};
-
-#endif // !PLATFORM(IOS)
-
#endif // ENABLE(JIT) && ENABLE(ASSEMBLER)
} // namespace JSC