OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 static HeapObject* const kInternalRootObject; | 923 static HeapObject* const kInternalRootObject; |
924 | 924 |
925 private: | 925 private: |
926 HeapEntry* AddEntry( | 926 HeapEntry* AddEntry( |
927 HeapObject* object, int children_count, int retainers_count); | 927 HeapObject* object, int children_count, int retainers_count); |
928 HeapEntry* AddEntry(HeapObject* object, | 928 HeapEntry* AddEntry(HeapObject* object, |
929 HeapEntry::Type type, | 929 HeapEntry::Type type, |
930 const char* name, | 930 const char* name, |
931 int children_count, | 931 int children_count, |
932 int retainers_count); | 932 int retainers_count); |
| 933 const char* GetSystemEntryName(HeapObject* object); |
933 void ExtractReferences(HeapObject* obj); | 934 void ExtractReferences(HeapObject* obj); |
934 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry); | 935 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry); |
935 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry); | 936 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry); |
936 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry); | 937 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry); |
937 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry); | 938 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry); |
938 void SetClosureReference(HeapObject* parent_obj, | 939 void SetClosureReference(HeapObject* parent_obj, |
939 HeapEntry* parent, | 940 HeapEntry* parent, |
940 String* reference_name, | 941 String* reference_name, |
941 Object* child); | 942 Object* child); |
942 void SetElementReference(HeapObject* parent_obj, | 943 void SetElementReference(HeapObject* parent_obj, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 }; | 1116 }; |
1116 | 1117 |
1117 | 1118 |
1118 String* GetConstructorNameForHeapProfile(JSObject* object); | 1119 String* GetConstructorNameForHeapProfile(JSObject* object); |
1119 | 1120 |
1120 } } // namespace v8::internal | 1121 } } // namespace v8::internal |
1121 | 1122 |
1122 #endif // ENABLE_LOGGING_AND_PROFILING | 1123 #endif // ENABLE_LOGGING_AND_PROFILING |
1123 | 1124 |
1124 #endif // V8_PROFILE_GENERATOR_H_ | 1125 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |