From a6087dae801142aa89a2ae0be284bb7ae8c8f57d Mon Sep 17 00:00:00 2001 From: "alph@chromium.org" Date: Wed, 17 Jul 2013 10:16:40 +0000 Subject: [PATCH] Report initial_map field of JSFunction in heap snapshot. R=verwaest@chromium.org, yurys@chromium.org Review URL: https://codereview.chromium.org/19256020 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15711 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap-snapshot-generator.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc index 6d2d891..19d11c1 100644 --- a/src/heap-snapshot-generator.cc +++ b/src/heap-snapshot-generator.cc @@ -997,6 +997,9 @@ void V8HeapExplorer::ExtractJSObjectReferences( SetPropertyReference( obj, entry, heap_->prototype_string(), js_fun->prototype()); + SetInternalReference( + obj, entry, "initial_map", proto_or_map, + JSFunction::kPrototypeOrInitialMapOffset); } } SharedFunctionInfo* shared_info = js_fun->shared(); -- 2.7.4