Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 968 | 968 |
| 969 private: | 969 private: |
| 970 HeapEntry* AddEntry( | 970 HeapEntry* AddEntry( |
| 971 HeapObject* object, int children_count, int retainers_count); | 971 HeapObject* object, int children_count, int retainers_count); |
| 972 HeapEntry* AddEntry(HeapObject* object, | 972 HeapEntry* AddEntry(HeapObject* object, |
| 973 HeapEntry::Type type, | 973 HeapEntry::Type type, |
| 974 const char* name, | 974 const char* name, |
| 975 int children_count, | 975 int children_count, |
| 976 int retainers_count); | 976 int retainers_count); |
| 977 const char* GetSystemEntryName(HeapObject* object); | 977 const char* GetSystemEntryName(HeapObject* object); |
| 978 | |
| 979 void ExtractJSGlobalProxy(JSGlobalProxy* proxy); | |
| 980 void ExtractJSObject(HeapEntry* entry, JSObject* js_obj); | |
| 981 void ExtractString(HeapEntry* entry, String* obj); | |
| 982 void ExtractContext(HeapEntry* entry, Context* context); | |
| 983 void ExtractMap(HeapEntry* entry, Map* map); | |
| 984 void ExtractSharedFunctionInfo(HeapEntry* entry, SharedFunctionInfo* shared); | |
| 985 void ExtractScript(HeapEntry* entry, Script* script); | |
| 986 void ExtractCodeCache(HeapEntry* entry, CodeCache* code_cache); | |
| 987 void ExtractCode(HeapEntry* entry, Code* code); | |
| 988 | |
|
mnaganov (inactive)
2012/04/24 12:25:45
nit: Why blank line?
alexeif
2012/04/24 12:33:28
Done.
| |
| 978 void ExtractReferences(HeapObject* obj); | 989 void ExtractReferences(HeapObject* obj); |
| 979 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry); | 990 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry); |
| 980 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry); | 991 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry); |
| 981 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry); | 992 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry); |
| 982 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry); | 993 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry); |
| 983 bool IsEssentialObject(Object* object); | 994 bool IsEssentialObject(Object* object); |
| 984 void SetClosureReference(HeapObject* parent_obj, | 995 void SetClosureReference(HeapObject* parent_obj, |
| 985 HeapEntry* parent, | 996 HeapEntry* parent, |
| 986 String* reference_name, | 997 String* reference_name, |
| 987 Object* child); | 998 Object* child); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1196 | 1207 |
| 1197 friend class HeapSnapshotJSONSerializerEnumerator; | 1208 friend class HeapSnapshotJSONSerializerEnumerator; |
| 1198 friend class HeapSnapshotJSONSerializerIterator; | 1209 friend class HeapSnapshotJSONSerializerIterator; |
| 1199 | 1210 |
| 1200 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1211 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 1201 }; | 1212 }; |
| 1202 | 1213 |
| 1203 } } // namespace v8::internal | 1214 } } // namespace v8::internal |
| 1204 | 1215 |
| 1205 #endif // V8_PROFILE_GENERATOR_H_ | 1216 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |