Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: src/heap-snapshot-generator.h

Issue 17881005: Heap snapshot: Update user roots definition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | src/heap-snapshot-generator.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ExtractCodeCacheReferences(int entry, CodeCache* code_cache); 465 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache);
466 void ExtractCodeReferences(int entry, Code* code); 466 void ExtractCodeReferences(int entry, Code* code);
467 void ExtractCellReferences(int entry, Cell* cell); 467 void ExtractCellReferences(int entry, Cell* cell);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 static inline HeapObject* GetNthGcSubrootObject(int delta); 522 static inline HeapObject* GetNthGcSubrootObject(int delta);
523 static inline int GetGcSubrootOrder(HeapObject* subroot); 523 static inline int GetGcSubrootOrder(HeapObject* subroot);
524 524
525 Heap* heap_; 525 Heap* heap_;
526 HeapSnapshot* snapshot_; 526 HeapSnapshot* snapshot_;
527 HeapSnapshotsCollection* collection_; 527 HeapSnapshotsCollection* collection_;
528 SnapshottingProgressReportingInterface* progress_; 528 SnapshottingProgressReportingInterface* progress_;
529 SnapshotFillerInterface* filler_; 529 SnapshotFillerInterface* filler_;
530 HeapObjectsSet objects_tags_; 530 HeapObjectsSet objects_tags_;
531 HeapObjectsSet strong_gc_subroot_names_; 531 HeapObjectsSet strong_gc_subroot_names_;
532 HeapObjectsSet user_roots_;
532 v8::HeapProfiler::ObjectNameResolver* global_object_name_resolver_; 533 v8::HeapProfiler::ObjectNameResolver* global_object_name_resolver_;
533 534
534 static HeapObject* const kGcRootsObject; 535 static HeapObject* const kGcRootsObject;
535 static HeapObject* const kFirstGcSubrootObject; 536 static HeapObject* const kFirstGcSubrootObject;
536 static HeapObject* const kLastGcSubrootObject; 537 static HeapObject* const kLastGcSubrootObject;
537 538
538 friend class IndexedReferencesExtractor; 539 friend class IndexedReferencesExtractor;
539 friend class GcSubrootsEnumerator; 540 friend class GcSubrootsEnumerator;
540 friend class RootsReferencesExtractor; 541 friend class RootsReferencesExtractor;
541 542
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 friend class HeapSnapshotJSONSerializerIterator; 681 friend class HeapSnapshotJSONSerializerIterator;
681 682
682 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 683 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
683 }; 684 };
684 685
685 686
686 } } // namespace v8::internal 687 } } // namespace v8::internal
687 688
688 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ 689 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_
689 690
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | src/heap-snapshot-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698