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

Side by Side Diff: src/profile-generator.cc

Issue 10041028: Always show link to prototype transitions in heap snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 "prototype", map->prototype(), Map::kPrototypeOffset); 2076 "prototype", map->prototype(), Map::kPrototypeOffset);
2077 SetInternalReference(obj, entry, 2077 SetInternalReference(obj, entry,
2078 "constructor", map->constructor(), 2078 "constructor", map->constructor(),
2079 Map::kConstructorOffset); 2079 Map::kConstructorOffset);
2080 if (!map->instance_descriptors()->IsEmpty()) { 2080 if (!map->instance_descriptors()->IsEmpty()) {
2081 TagObject(map->instance_descriptors(), "(map descriptors)"); 2081 TagObject(map->instance_descriptors(), "(map descriptors)");
2082 SetInternalReference(obj, entry, 2082 SetInternalReference(obj, entry,
2083 "descriptors", map->instance_descriptors(), 2083 "descriptors", map->instance_descriptors(),
2084 Map::kInstanceDescriptorsOrBitField3Offset); 2084 Map::kInstanceDescriptorsOrBitField3Offset);
2085 } 2085 }
2086 if (map->prototype_transitions() != heap_->empty_fixed_array()) { 2086 TagObject(map->prototype_transitions(), "(prototype transitions)");
2087 TagObject(map->prototype_transitions(), "(prototype transitions)"); 2087 SetInternalReference(obj, entry,
2088 SetInternalReference(obj, 2088 "prototype_transitions", map->prototype_transitions(),
2089 entry, 2089 Map::kPrototypeTransitionsOffset);
2090 "prototype_transitions",
2091 map->prototype_transitions(),
2092 Map::kPrototypeTransitionsOffset);
2093 }
2094 SetInternalReference(obj, entry, 2090 SetInternalReference(obj, entry,
2095 "code_cache", map->code_cache(), 2091 "code_cache", map->code_cache(),
2096 Map::kCodeCacheOffset); 2092 Map::kCodeCacheOffset);
2097 } else if (obj->IsSharedFunctionInfo()) { 2093 } else if (obj->IsSharedFunctionInfo()) {
2098 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); 2094 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj);
2099 SetInternalReference(obj, entry, 2095 SetInternalReference(obj, entry,
2100 "name", shared->name(), 2096 "name", shared->name(),
2101 SharedFunctionInfo::kNameOffset); 2097 SharedFunctionInfo::kNameOffset);
2102 SetInternalReference(obj, entry, 2098 SetInternalReference(obj, entry,
2103 "code", shared->unchecked_code(), 2099 "code", shared->unchecked_code(),
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
3903 3899
3904 3900
3905 void HeapSnapshotJSONSerializer::SortHashMap( 3901 void HeapSnapshotJSONSerializer::SortHashMap(
3906 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3902 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3907 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3903 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3908 sorted_entries->Add(p); 3904 sorted_entries->Add(p);
3909 sorted_entries->Sort(SortUsingEntryValue); 3905 sorted_entries->Sort(SortUsingEntryValue);
3910 } 3906 }
3911 3907
3912 } } // namespace v8::internal 3908 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698