]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - jit/ExecutableAllocator.h
JavaScriptCore-7600.1.4.9.tar.gz
[apple/javascriptcore.git] / jit / ExecutableAllocator.h
index eba096848482587c4595912e52269786f65669fe..55f9e77464a00913bf29270cfc1bb6e954740cc2 100644 (file)
@@ -40,7 +40,7 @@
 #include <libkern/OSCacheControl.h>
 #endif
 
-#if OS(IOS) || OS(QNX)
+#if OS(IOS)
 #include <sys/mman.h>
 #endif
 
@@ -78,21 +78,6 @@ void releaseExecutableMemory(VM&);
 
 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)
@@ -166,18 +151,6 @@ private:
 
 };
 
-
-#else
-
-#if PLATFORM(IOS)
-
-class ExecutableAllocator {
-public: 
-    static size_t committedByteCount();
-};
-
-#endif // !PLATFORM(IOS)
-
 #endif // ENABLE(JIT) && ENABLE(ASSEMBLER)
 
 } // namespace JSC