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

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

Issue 163593002: Count ArrayBuffer's backing_store memory in heap snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added a static_cast Created 6 years, 10 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') | no next file with comments »
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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
399 HeapEntry* AddEntry(Address address,
400 HeapEntry::Type type,
401 const char* name,
402 int size);
403
399 const char* GetSystemEntryName(HeapObject* object); 404 const char* GetSystemEntryName(HeapObject* object);
400 405
401 void ExtractReferences(HeapObject* obj); 406 void ExtractReferences(HeapObject* obj);
402 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); 407 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy);
403 void ExtractJSObjectReferences(int entry, JSObject* js_obj); 408 void ExtractJSObjectReferences(int entry, JSObject* js_obj);
404 void ExtractStringReferences(int entry, String* obj); 409 void ExtractStringReferences(int entry, String* obj);
405 void ExtractContextReferences(int entry, Context* context); 410 void ExtractContextReferences(int entry, Context* context);
406 void ExtractMapReferences(int entry, Map* map); 411 void ExtractMapReferences(int entry, Map* map);
407 void ExtractSharedFunctionInfoReferences(int entry, 412 void ExtractSharedFunctionInfoReferences(int entry,
408 SharedFunctionInfo* shared); 413 SharedFunctionInfo* shared);
409 void ExtractScriptReferences(int entry, Script* script); 414 void ExtractScriptReferences(int entry, Script* script);
410 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors); 415 void ExtractAccessorPairReferences(int entry, AccessorPair* accessors);
411 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache); 416 void ExtractCodeCacheReferences(int entry, CodeCache* code_cache);
412 void ExtractCodeReferences(int entry, Code* code); 417 void ExtractCodeReferences(int entry, Code* code);
413 void ExtractBoxReferences(int entry, Box* box); 418 void ExtractBoxReferences(int entry, Box* box);
414 void ExtractCellReferences(int entry, Cell* cell); 419 void ExtractCellReferences(int entry, Cell* cell);
415 void ExtractPropertyCellReferences(int entry, PropertyCell* cell); 420 void ExtractPropertyCellReferences(int entry, PropertyCell* cell);
416 void ExtractAllocationSiteReferences(int entry, AllocationSite* site); 421 void ExtractAllocationSiteReferences(int entry, AllocationSite* site);
422 void ExtractJSArrayBufferReferences(int entry, JSArrayBuffer* buffer);
417 void ExtractClosureReferences(JSObject* js_obj, int entry); 423 void ExtractClosureReferences(JSObject* js_obj, int entry);
418 void ExtractPropertyReferences(JSObject* js_obj, int entry); 424 void ExtractPropertyReferences(JSObject* js_obj, int entry);
419 bool ExtractAccessorPairProperty(JSObject* js_obj, int entry, 425 bool ExtractAccessorPairProperty(JSObject* js_obj, int entry,
420 Object* key, Object* callback_obj); 426 Object* key, Object* callback_obj);
421 void ExtractElementReferences(JSObject* js_obj, int entry); 427 void ExtractElementReferences(JSObject* js_obj, int entry);
422 void ExtractInternalReferences(JSObject* js_obj, int entry); 428 void ExtractInternalReferences(JSObject* js_obj, int entry);
423 bool IsEssentialObject(Object* object); 429 bool IsEssentialObject(Object* object);
424 void SetContextReference(HeapObject* parent_obj, 430 void SetContextReference(HeapObject* parent_obj,
425 int parent, 431 int parent,
426 String* reference_name, 432 String* reference_name,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 friend class HeapSnapshotJSONSerializerEnumerator; 642 friend class HeapSnapshotJSONSerializerEnumerator;
637 friend class HeapSnapshotJSONSerializerIterator; 643 friend class HeapSnapshotJSONSerializerIterator;
638 644
639 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 645 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
640 }; 646 };
641 647
642 648
643 } } // namespace v8::internal 649 } } // namespace v8::internal
644 650
645 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ 651 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698