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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 String* reference_name, | 966 String* reference_name, |
967 Object* child, | 967 Object* child, |
968 int field_offset = -1); | 968 int field_offset = -1); |
969 void SetPropertyShortcutReference(HeapObject* parent_obj, | 969 void SetPropertyShortcutReference(HeapObject* parent_obj, |
970 HeapEntry* parent, | 970 HeapEntry* parent, |
971 String* reference_name, | 971 String* reference_name, |
972 Object* child); | 972 Object* child); |
973 void SetRootShortcutReference(Object* child); | 973 void SetRootShortcutReference(Object* child); |
974 void SetRootGcRootsReference(); | 974 void SetRootGcRootsReference(); |
975 void SetGcRootsReference(Object* child); | 975 void SetGcRootsReference(Object* child); |
| 976 void TagObject(Object* obj, const char* tag); |
976 | 977 |
977 HeapEntry* GetEntry(Object* obj); | 978 HeapEntry* GetEntry(Object* obj); |
978 | 979 |
| 980 Heap* heap_; |
979 HeapSnapshot* snapshot_; | 981 HeapSnapshot* snapshot_; |
980 HeapSnapshotsCollection* collection_; | 982 HeapSnapshotsCollection* collection_; |
981 SnapshottingProgressReportingInterface* progress_; | 983 SnapshottingProgressReportingInterface* progress_; |
982 SnapshotFillerInterface* filler_; | 984 SnapshotFillerInterface* filler_; |
983 HeapObjectsSet objects_tags_; | 985 HeapObjectsSet objects_tags_; |
984 | 986 |
985 static HeapObject* const kGcRootsObject; | 987 static HeapObject* const kGcRootsObject; |
986 | 988 |
987 friend class IndexedReferencesExtractor; | 989 friend class IndexedReferencesExtractor; |
988 friend class RootsReferencesExtractor; | 990 friend class RootsReferencesExtractor; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 }; | 1122 }; |
1121 | 1123 |
1122 | 1124 |
1123 String* GetConstructorNameForHeapProfile(JSObject* object); | 1125 String* GetConstructorNameForHeapProfile(JSObject* object); |
1124 | 1126 |
1125 } } // namespace v8::internal | 1127 } } // namespace v8::internal |
1126 | 1128 |
1127 #endif // ENABLE_LOGGING_AND_PROFILING | 1129 #endif // ENABLE_LOGGING_AND_PROFILING |
1128 | 1130 |
1129 #endif // V8_PROFILE_GENERATOR_H_ | 1131 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |