OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 SnapshottingProgressReportingInterface* progress, | 379 SnapshottingProgressReportingInterface* progress, |
380 v8::HeapProfiler::ObjectNameResolver* resolver); | 380 v8::HeapProfiler::ObjectNameResolver* resolver); |
381 virtual ~V8HeapExplorer(); | 381 virtual ~V8HeapExplorer(); |
382 virtual HeapEntry* AllocateEntry(HeapThing ptr); | 382 virtual HeapEntry* AllocateEntry(HeapThing ptr); |
383 void AddRootEntries(SnapshotFillerInterface* filler); | 383 void AddRootEntries(SnapshotFillerInterface* filler); |
384 int EstimateObjectsCount(HeapIterator* iterator); | 384 int EstimateObjectsCount(HeapIterator* iterator); |
385 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); | 385 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
386 void TagGlobalObjects(); | 386 void TagGlobalObjects(); |
387 void TagCodeObject(Code* code); | 387 void TagCodeObject(Code* code); |
388 void TagBuiltinCodeObject(Code* code, const char* name); | 388 void TagBuiltinCodeObject(Code* code, const char* name); |
| 389 HeapEntry* AddEntry(Address address, |
| 390 HeapEntry::Type type, |
| 391 const char* name, |
| 392 int size); |
389 | 393 |
390 static String* GetConstructorName(JSObject* object); | 394 static String* GetConstructorName(JSObject* object); |
391 | 395 |
392 static HeapObject* const kInternalRootObject; | 396 static HeapObject* const kInternalRootObject; |
393 | 397 |
394 private: | 398 private: |
395 HeapEntry* AddEntry(HeapObject* object); | 399 HeapEntry* AddEntry(HeapObject* object); |
396 HeapEntry* AddEntry(HeapObject* object, | 400 HeapEntry* AddEntry(HeapObject* object, |
397 HeapEntry::Type type, | 401 HeapEntry::Type type, |
398 const char* name); | 402 const char* name); |
399 HeapEntry* AddEntry(Address address, | |
400 HeapEntry::Type type, | |
401 const char* name, | |
402 int size); | |
403 | 403 |
404 const char* GetSystemEntryName(HeapObject* object); | 404 const char* GetSystemEntryName(HeapObject* object); |
405 | 405 |
406 void ExtractReferences(HeapObject* obj); | 406 void ExtractReferences(HeapObject* obj); |
407 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); | 407 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); |
408 void ExtractJSObjectReferences(int entry, JSObject* js_obj); | 408 void ExtractJSObjectReferences(int entry, JSObject* js_obj); |
409 void ExtractStringReferences(int entry, String* obj); | 409 void ExtractStringReferences(int entry, String* obj); |
410 void ExtractContextReferences(int entry, Context* context); | 410 void ExtractContextReferences(int entry, Context* context); |
411 void ExtractMapReferences(int entry, Map* map); | 411 void ExtractMapReferences(int entry, Map* map); |
412 void ExtractSharedFunctionInfoReferences(int entry, | 412 void ExtractSharedFunctionInfoReferences(int entry, |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 friend class HeapSnapshotJSONSerializerEnumerator; | 642 friend class HeapSnapshotJSONSerializerEnumerator; |
643 friend class HeapSnapshotJSONSerializerIterator; | 643 friend class HeapSnapshotJSONSerializerIterator; |
644 | 644 |
645 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 645 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
646 }; | 646 }; |
647 | 647 |
648 | 648 |
649 } } // namespace v8::internal | 649 } } // namespace v8::internal |
650 | 650 |
651 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 651 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |