OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_H_ | 5 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_H_ |
6 #define V8_HEAP_SNAPSHOT_GENERATOR_H_ | 6 #define V8_HEAP_SNAPSHOT_GENERATOR_H_ |
7 | 7 |
8 #include "src/profile-generator-inl.h" | 8 #include "src/profile-generator-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); | 374 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); |
375 void ExtractCodeReferences(int entry, Code* code); | 375 void ExtractCodeReferences(int entry, Code* code); |
376 void ExtractBoxReferences(int entry, Box* box); | 376 void ExtractBoxReferences(int entry, Box* box); |
377 void ExtractCellReferences(int entry, Cell* cell); | 377 void ExtractCellReferences(int entry, Cell* cell); |
378 void ExtractPropertyCellReferences(int entry, PropertyCell* cell); | 378 void ExtractPropertyCellReferences(int entry, PropertyCell* cell); |
379 void ExtractAllocationSiteReferences(int entry, AllocationSite* site); | 379 void ExtractAllocationSiteReferences(int entry, AllocationSite* site); |
380 void ExtractJSArrayBufferReferences(int entry, JSArrayBuffer* buffer); | 380 void ExtractJSArrayBufferReferences(int entry, JSArrayBuffer* buffer); |
381 void ExtractFixedArrayReferences(int entry, FixedArray* array); | 381 void ExtractFixedArrayReferences(int entry, FixedArray* array); |
382 void ExtractClosureReferences(JSObject* js_obj, int entry); | 382 void ExtractClosureReferences(JSObject* js_obj, int entry); |
383 void ExtractPropertyReferences(JSObject* js_obj, int entry); | 383 void ExtractPropertyReferences(JSObject* js_obj, int entry); |
384 bool ExtractAccessorPairProperty(JSObject* js_obj, int entry, | 384 void ExtractAccessorPairProperty(JSObject* js_obj, int entry, Name* key, |
385 Object* key, Object* callback_obj); | 385 Object* callback_obj, int field_offset = -1); |
386 void ExtractElementReferences(JSObject* js_obj, int entry); | 386 void ExtractElementReferences(JSObject* js_obj, int entry); |
387 void ExtractInternalReferences(JSObject* js_obj, int entry); | 387 void ExtractInternalReferences(JSObject* js_obj, int entry); |
388 | 388 |
389 bool IsEssentialObject(Object* object); | 389 bool IsEssentialObject(Object* object); |
390 void SetContextReference(HeapObject* parent_obj, | 390 void SetContextReference(HeapObject* parent_obj, |
391 int parent, | 391 int parent, |
392 String* reference_name, | 392 String* reference_name, |
393 Object* child, | 393 Object* child, |
394 int field_offset); | 394 int field_offset); |
395 void SetNativeBindReference(HeapObject* parent_obj, | 395 void SetNativeBindReference(HeapObject* parent_obj, |
(...skipping 27 matching lines...) Expand all Loading... |
423 int parent, | 423 int parent, |
424 int index, | 424 int index, |
425 Object* child_obj, | 425 Object* child_obj, |
426 int field_offset); | 426 int field_offset); |
427 void SetPropertyReference(HeapObject* parent_obj, | 427 void SetPropertyReference(HeapObject* parent_obj, |
428 int parent, | 428 int parent, |
429 Name* reference_name, | 429 Name* reference_name, |
430 Object* child, | 430 Object* child, |
431 const char* name_format_string = NULL, | 431 const char* name_format_string = NULL, |
432 int field_offset = -1); | 432 int field_offset = -1); |
| 433 void SetDataOrAccessorPropertyReference(PropertyKind kind, |
| 434 JSObject* parent_obj, int parent, |
| 435 Name* reference_name, Object* child, |
| 436 const char* name_format_string = NULL, |
| 437 int field_offset = -1); |
| 438 |
433 void SetUserGlobalReference(Object* user_global); | 439 void SetUserGlobalReference(Object* user_global); |
434 void SetRootGcRootsReference(); | 440 void SetRootGcRootsReference(); |
435 void SetGcRootsReference(VisitorSynchronization::SyncTag tag); | 441 void SetGcRootsReference(VisitorSynchronization::SyncTag tag); |
436 void SetGcSubrootReference( | 442 void SetGcSubrootReference( |
437 VisitorSynchronization::SyncTag tag, bool is_weak, Object* child); | 443 VisitorSynchronization::SyncTag tag, bool is_weak, Object* child); |
438 const char* GetStrongGcSubrootName(Object* object); | 444 const char* GetStrongGcSubrootName(Object* object); |
439 void TagObject(Object* obj, const char* tag); | 445 void TagObject(Object* obj, const char* tag); |
440 void MarkAsWeakContainer(Object* object); | 446 void MarkAsWeakContainer(Object* object); |
441 | 447 |
442 HeapEntry* GetEntry(Object* obj); | 448 HeapEntry* GetEntry(Object* obj); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 friend class HeapSnapshotJSONSerializerEnumerator; | 605 friend class HeapSnapshotJSONSerializerEnumerator; |
600 friend class HeapSnapshotJSONSerializerIterator; | 606 friend class HeapSnapshotJSONSerializerIterator; |
601 | 607 |
602 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 608 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
603 }; | 609 }; |
604 | 610 |
605 | 611 |
606 } } // namespace v8::internal | 612 } } // namespace v8::internal |
607 | 613 |
608 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 614 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |