| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 public: | 440 public: |
| 441 V8HeapExplorer(HeapSnapshot* snapshot, | 441 V8HeapExplorer(HeapSnapshot* snapshot, |
| 442 SnapshottingProgressReportingInterface* progress, | 442 SnapshottingProgressReportingInterface* progress, |
| 443 v8::HeapProfiler::ObjectNameResolver* resolver); | 443 v8::HeapProfiler::ObjectNameResolver* resolver); |
| 444 virtual ~V8HeapExplorer(); | 444 virtual ~V8HeapExplorer(); |
| 445 virtual HeapEntry* AllocateEntry(HeapThing ptr); | 445 virtual HeapEntry* AllocateEntry(HeapThing ptr); |
| 446 void AddRootEntries(SnapshotFillerInterface* filler); | 446 void AddRootEntries(SnapshotFillerInterface* filler); |
| 447 int EstimateObjectsCount(HeapIterator* iterator); | 447 int EstimateObjectsCount(HeapIterator* iterator); |
| 448 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); | 448 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); |
| 449 void TagGlobalObjects(); | 449 void TagGlobalObjects(); |
| 450 void TagCodeObject(Code* code); |
| 451 void TagCodeObject(Code* code, const char* external_name); |
| 450 | 452 |
| 451 static String* GetConstructorName(JSObject* object); | 453 static String* GetConstructorName(JSObject* object); |
| 452 | 454 |
| 453 static HeapObject* const kInternalRootObject; | 455 static HeapObject* const kInternalRootObject; |
| 454 | 456 |
| 455 private: | 457 private: |
| 456 HeapEntry* AddEntry(HeapObject* object); | 458 HeapEntry* AddEntry(HeapObject* object); |
| 457 HeapEntry* AddEntry(HeapObject* object, | 459 HeapEntry* AddEntry(HeapObject* object, |
| 458 HeapEntry::Type type, | 460 HeapEntry::Type type, |
| 459 const char* name); | 461 const char* name); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 friend class HeapSnapshotJSONSerializerIterator; | 698 friend class HeapSnapshotJSONSerializerIterator; |
| 697 | 699 |
| 698 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 700 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 699 }; | 701 }; |
| 700 | 702 |
| 701 | 703 |
| 702 } } // namespace v8::internal | 704 } } // namespace v8::internal |
| 703 | 705 |
| 704 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 706 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
| 705 | 707 |
| OLD | NEW |