Revision: 5696
Author: [email protected]
Date: Mon Oct 25 02:53:39 2010
Log: A little piece of code for aligning heap snapshots vs. object
inspection.
Use original names for function infos.
Review URL: http://codereview.chromium.org/4040008
http://code.google.com/p/v8/source/detail?r=5696
Modified:
/branches/bleeding_edge/src/profile-generator.cc
=======================================
--- /branches/bleeding_edge/src/profile-generator.cc Mon Oct 18 02:15:38
2010
+++ /branches/bleeding_edge/src/profile-generator.cc Mon Oct 25 02:53:39
2010
@@ -1319,11 +1319,9 @@
retainers_count);
} else if (object->IsSharedFunctionInfo()) {
SharedFunctionInfo* shared = SharedFunctionInfo::cast(object);
- String* name = String::cast(shared->name())->length() > 0 ?
- String::cast(shared->name()) : shared->inferred_name();
return AddEntry(object,
HeapEntry::kCode,
- collection_->GetFunctionName(name),
+ collection_->GetName(String::cast(shared->name())),
children_count,
retainers_count);
} else if (object->IsScript()) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev