| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 V8HeapExplorer(HeapSnapshot* snapshot, | 378 V8HeapExplorer(HeapSnapshot* snapshot, |
| 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 TagCodeObject(Code* code, const char* external_name); | 388 void TagBuiltinCodeObject(Code* code, const char* name); |
| 389 | 389 |
| 390 static String* GetConstructorName(JSObject* object); | 390 static String* GetConstructorName(JSObject* object); |
| 391 | 391 |
| 392 static HeapObject* const kInternalRootObject; | 392 static HeapObject* const kInternalRootObject; |
| 393 | 393 |
| 394 private: | 394 private: |
| 395 HeapEntry* AddEntry(HeapObject* object); | 395 HeapEntry* AddEntry(HeapObject* object); |
| 396 HeapEntry* AddEntry(HeapObject* object, | 396 HeapEntry* AddEntry(HeapObject* object, |
| 397 HeapEntry::Type type, | 397 HeapEntry::Type type, |
| 398 const char* name); | 398 const char* name); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 friend class HeapSnapshotJSONSerializerEnumerator; | 635 friend class HeapSnapshotJSONSerializerEnumerator; |
| 636 friend class HeapSnapshotJSONSerializerIterator; | 636 friend class HeapSnapshotJSONSerializerIterator; |
| 637 | 637 |
| 638 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 638 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 639 }; | 639 }; |
| 640 | 640 |
| 641 | 641 |
| 642 } } // namespace v8::internal | 642 } } // namespace v8::internal |
| 643 | 643 |
| 644 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 644 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
| OLD | NEW |