summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/js/ScriptGCEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/js/ScriptGCEvent.cpp')
-rw-r--r--Source/WebCore/bindings/js/ScriptGCEvent.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/bindings/js/ScriptGCEvent.cpp b/Source/WebCore/bindings/js/ScriptGCEvent.cpp
index b7fc7b3..dd027b4 100644
--- a/Source/WebCore/bindings/js/ScriptGCEvent.cpp
+++ b/Source/WebCore/bindings/js/ScriptGCEvent.cpp
@@ -42,12 +42,14 @@ namespace WebCore {
using namespace JSC;
-void ScriptGCEvent::getHeapSize(size_t& usedHeapSize, size_t& totalHeapSize)
+void ScriptGCEvent::getHeapSize(size_t& usedHeapSize, size_t& totalHeapSize, size_t& heapSizeLimit)
{
JSGlobalData* globalData = JSDOMWindow::commonJSGlobalData();
- totalHeapSize = globalData->heap.size();
- usedHeapSize = totalHeapSize;
+ totalHeapSize = globalData->heap.capacity();
+ usedHeapSize = globalData->heap.size();
+ heapSizeLimit = 0;
}
+
} // namespace WebCore
#endif // !ENABLE(INSPECTOR)