Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: Source/bindings/v8/V8PerIsolateData.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/bindings/v8/V8ValueCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerIsolateData.cpp
diff --git a/Source/bindings/v8/V8PerIsolateData.cpp b/Source/bindings/v8/V8PerIsolateData.cpp
index 66e36ab87f168b6e0ea32f69e8cc991ad20256cc..8479e179aefe0d122ac021eefd716eb394cd603f 100644
--- a/Source/bindings/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/v8/V8PerIsolateData.cpp
@@ -29,18 +29,6 @@
#include "ScriptGCEvent.h"
#include "ScriptProfiler.h"
#include "V8Binding.h"
-#include <wtf/MemoryInstrumentationHashMap.h>
-#include <wtf/MemoryInstrumentationVector.h>
-
-namespace WTF {
-
-// WrapperTypeInfo are statically allocated, don't count them.
-template<> struct SequenceMemoryInstrumentationTraits<WebCore::WrapperTypeInfo*> {
- template <typename I> static void reportMemoryUsage(I, I, MemoryClassInfo&) { }
-};
-
-}
-
namespace WebCore {
V8PerIsolateData::V8PerIsolateData(v8::Isolate* isolate)
@@ -101,29 +89,6 @@ v8::Handle<v8::FunctionTemplate> V8PerIsolateData::toStringTemplate()
return v8::Local<v8::FunctionTemplate>::New(m_toStringTemplate.get());
}
-void V8PerIsolateData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Binding);
- info.addMember(m_rawTemplatesForMainWorld, "rawTemplatesForMainWorld");
- info.addMember(m_rawTemplatesForNonMainWorld, "rawTemplatesForNonMainWorld");
- info.addMember(m_templatesForMainWorld, "templatesForMainWorld");
- info.addMember(m_templatesForNonMainWorld, "templatesForNonMainWorld");
- info.addMember(m_stringCache, "stringCache");
- info.addMember(m_integerCache, "integerCache");
- info.addMember(m_domDataList, "domDataList");
- info.addMember(m_workerDomDataStore, "workerDomDataStore");
- info.addMember(m_hiddenPropertyName, "hiddenPropertyName");
- info.addMember(m_gcEventData, "gcEventData");
-
- info.addPrivateBuffer(ScriptProfiler::profilerSnapshotsSize(), WebCoreMemoryTypes::InspectorProfilerAgent, "HeapSnapshots", "snapshots");
-
- info.ignoreMember(m_toStringTemplate);
- info.ignoreMember(m_lazyEventListenerToStringTemplate);
- info.ignoreMember(m_v8Null);
- info.ignoreMember(m_liveRoot);
- info.ignoreMember(m_auxiliaryContext);
-}
-
bool V8PerIsolateData::hasPrivateTemplate(WrapperWorldType currentWorldType, void* privatePointer)
{
if (currentWorldType == MainWorld)
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/bindings/v8/V8ValueCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698