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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 static HeapObject* const kInternalRootObject; | 447 static HeapObject* const kInternalRootObject; |
448 | 448 |
449 private: | 449 private: |
450 HeapEntry* AddEntry(HeapObject* object); | 450 HeapEntry* AddEntry(HeapObject* object); |
451 HeapEntry* AddEntry(HeapObject* object, | 451 HeapEntry* AddEntry(HeapObject* object, |
452 HeapEntry::Type type, | 452 HeapEntry::Type type, |
453 const char* name); | 453 const char* name); |
454 const char* GetSystemEntryName(HeapObject* object); | 454 const char* GetSystemEntryName(HeapObject* object); |
455 | 455 |
456 void ExtractReferences(HeapObject* obj); | 456 void ExtractReferences(HeapObject* obj); |
457 void ExtractJSGlobalProxyReferences(JSGlobalProxy* proxy); | 457 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); |
458 void ExtractJSObjectReferences(int entry, JSObject* js_obj); | 458 void ExtractJSObjectReferences(int entry, JSObject* js_obj); |
459 void ExtractStringReferences(int entry, String* obj); | 459 void ExtractStringReferences(int entry, String* obj); |
460 void ExtractContextReferences(int entry, Context* context); | 460 void ExtractContextReferences(int entry, Context* context); |
461 void ExtractMapReferences(int entry, Map* map); | 461 void ExtractMapReferences(int entry, Map* map); |
462 void ExtractSharedFunctionInfoReferences(int entry, | 462 void ExtractSharedFunctionInfoReferences(int entry, |
463 SharedFunctionInfo* shared); | 463 SharedFunctionInfo* shared); |
464 void ExtractScriptReferences(int entry, Script* script); | 464 void ExtractScriptReferences(int entry, Script* script); |
465 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors); | 465 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors); |
466 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); | 466 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); |
467 void ExtractCodeReferences(int entry, Code* code); | 467 void ExtractCodeReferences(int entry, Code* code); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 static inline HeapObject* GetNthGcSubrootObject(int delta); | 525 static inline HeapObject* GetNthGcSubrootObject(int delta); |
526 static inline int GetGcSubrootOrder(HeapObject* subroot); | 526 static inline int GetGcSubrootOrder(HeapObject* subroot); |
527 | 527 |
528 Heap* heap_; | 528 Heap* heap_; |
529 HeapSnapshot* snapshot_; | 529 HeapSnapshot* snapshot_; |
530 HeapSnapshotsCollection* collection_; | 530 HeapSnapshotsCollection* collection_; |
531 SnapshottingProgressReportingInterface* progress_; | 531 SnapshottingProgressReportingInterface* progress_; |
532 SnapshotFillerInterface* filler_; | 532 SnapshotFillerInterface* filler_; |
533 HeapObjectsSet objects_tags_; | 533 HeapObjectsSet objects_tags_; |
534 HeapObjectsSet strong_gc_subroot_names_; | 534 HeapObjectsSet strong_gc_subroot_names_; |
| 535 HeapObjectsSet user_roots_; |
535 v8::HeapProfiler::ObjectNameResolver* global_object_name_resolver_; | 536 v8::HeapProfiler::ObjectNameResolver* global_object_name_resolver_; |
536 | 537 |
537 static HeapObject* const kGcRootsObject; | 538 static HeapObject* const kGcRootsObject; |
538 static HeapObject* const kFirstGcSubrootObject; | 539 static HeapObject* const kFirstGcSubrootObject; |
539 static HeapObject* const kLastGcSubrootObject; | 540 static HeapObject* const kLastGcSubrootObject; |
540 | 541 |
541 friend class IndexedReferencesExtractor; | 542 friend class IndexedReferencesExtractor; |
542 friend class GcSubrootsEnumerator; | 543 friend class GcSubrootsEnumerator; |
543 friend class RootsReferencesExtractor; | 544 friend class RootsReferencesExtractor; |
544 | 545 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 friend class HeapSnapshotJSONSerializerIterator; | 684 friend class HeapSnapshotJSONSerializerIterator; |
684 | 685 |
685 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 686 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
686 }; | 687 }; |
687 | 688 |
688 | 689 |
689 } } // namespace v8::internal | 690 } } // namespace v8::internal |
690 | 691 |
691 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 692 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
692 | 693 |
OLD | NEW |