]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/MemoryStatistics.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / runtime / MemoryStatistics.cpp
index 86101f559f1e8fba5321802980c24615928be63b..a2eaf349c571b98b618e64867606310732cb532a 100644 (file)
@@ -27,8 +27,8 @@
 #include "MemoryStatistics.h"
 
 #include "ExecutableAllocator.h"
-#include "JSGlobalData.h"
-#include "RegisterFile.h"
+#include "VM.h"
+#include "JSStack.h"
 
 namespace JSC {
 
@@ -36,8 +36,8 @@ GlobalMemoryStatistics globalMemoryStatistics()
 {
     GlobalMemoryStatistics stats;
 
-    stats.stackBytes = RegisterFile::committedByteCount();
-#if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
+    stats.stackBytes = JSStack::committedByteCount();
+#if ENABLE(EXECUTABLE_ALLOCATOR_FIXED) || (PLATFORM(EFL) && ENABLE(JIT))
     stats.JITBytes = ExecutableAllocator::committedByteCount();
 #else
     stats.JITBytes = 0;