[bmalloc] IsoHeap should have lower tier using shared IsoPage
[WebKit-https.git] / Source / bmalloc / CMakeLists.txt
index 337c8c1..f33bd52 100644 (file)
@@ -5,19 +5,43 @@ set(bmalloc_INCLUDE_DIRECTORIES
 )
 
 set(bmalloc_SOURCES
 )
 
 set(bmalloc_SOURCES
+    bmalloc/AllIsoHeaps.cpp
     bmalloc/Allocator.cpp
     bmalloc/Allocator.cpp
+    bmalloc/AvailableMemory.cpp
     bmalloc/Cache.cpp
     bmalloc/Cache.cpp
+    bmalloc/CryptoRandom.cpp
     bmalloc/Deallocator.cpp
     bmalloc/Deallocator.cpp
+    bmalloc/DebugHeap.cpp
     bmalloc/Environment.cpp
     bmalloc/Environment.cpp
+    bmalloc/FreeList.cpp
+    bmalloc/Gigacage.cpp
     bmalloc/Heap.cpp
     bmalloc/Heap.cpp
+    bmalloc/HeapKind.cpp
+    bmalloc/IsoHeapImpl.cpp
+    bmalloc/IsoPage.cpp
+    bmalloc/IsoSharedHeap.cpp
+    bmalloc/IsoSharedPage.cpp
+    bmalloc/IsoTLS.cpp
+    bmalloc/IsoTLSEntry.cpp
+    bmalloc/IsoTLSLayout.cpp
+    bmalloc/LargeMap.cpp
     bmalloc/Logging.cpp
     bmalloc/Logging.cpp
+    bmalloc/Mutex.cpp
     bmalloc/ObjectType.cpp
     bmalloc/ObjectType.cpp
-    bmalloc/StaticMutex.cpp
+    bmalloc/PerProcess.cpp
+    bmalloc/PerThread.cpp
+    bmalloc/Scavenger.cpp
     bmalloc/VMHeap.cpp
     bmalloc/VMHeap.cpp
-    bmalloc/XLargeMap.cpp
+    bmalloc/bmalloc.cpp
     bmalloc/mbmalloc.cpp
 )
 
     bmalloc/mbmalloc.cpp
 )
 
+if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
+    list(APPEND bmalloc_SOURCES
+        bmalloc/Zone.cpp
+    )
+endif ()
+
 set(bmalloc_LIBRARIES
     ${CMAKE_DL_LIBS}
 )
 set(bmalloc_LIBRARIES
     ${CMAKE_DL_LIBS}
 )
@@ -29,3 +53,9 @@ include_directories(${bmalloc_INCLUDE_DIRECTORIES})
 add_library(bmalloc STATIC ${bmalloc_SOURCES})
 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")
 add_library(bmalloc STATIC ${bmalloc_SOURCES})
 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")
+
+if (DEVELOPER_MODE)
+    add_library(mbmalloc SHARED bmalloc/mbmalloc.cpp)
+    target_link_libraries(mbmalloc bmalloc ${CMAKE_THREAD_LIBS_INIT} ${bmalloc_LIBRARIES})
+    set_target_properties(mbmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_mbmalloc")
+endif ()