Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(94)

Unified Diff: src/heap-snapshot-generator.h

Issue 7715044: Fix huge heap snapshot when a heavily shared context has many variables (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: sprintf -> snprintf Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/heap-snapshot-generator.h
diff --git a/src/heap-snapshot-generator.h b/src/heap-snapshot-generator.h
index fe157158bba1b85b2ba37f9b9592daa4e8826b42..c952381ec1e8f066e16d6bcc14120dac33e780bf 100644
--- a/src/heap-snapshot-generator.h
+++ b/src/heap-snapshot-generator.h
@@ -98,7 +98,8 @@ class HeapEntry BASE_EMBEDDED {
kRegExp = v8::HeapGraphNode::kRegExp,
kHeapNumber = v8::HeapGraphNode::kHeapNumber,
kNative = v8::HeapGraphNode::kNative,
- kSynthetic = v8::HeapGraphNode::kSynthetic
+ kSynthetic = v8::HeapGraphNode::kSynthetic,
+ kContext = v8::HeapGraphNode::kContext
};
static const int kNoEntry;
@@ -479,10 +480,11 @@ class V8HeapExplorer : public HeapEntriesAllocator {
void ExtractElementReferences(JSObject* js_obj, int entry);
void ExtractInternalReferences(JSObject* js_obj, int entry);
bool IsEssentialObject(Object* object);
- void SetClosureReference(HeapObject* parent_obj,
+ void SetContextReference(HeapObject* parent_obj,
int parent,
String* reference_name,
- Object* child);
+ Object* child,
+ int field_offset);
void SetNativeBindReference(HeapObject* parent_obj,
int parent,
const char* reference_name,

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b