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

Unified Diff: src/heap-inl.h

Issue 25273002: Print out how many AllocationMementos were found on a scavenge of new space (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index a0762a330658a864d75ffb4d2fd540439a0cc7d6..13ac4a786a21bb48a6e09be6031a834e5013c807 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -525,6 +525,14 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
return;
}
+ if (FLAG_trace_track_allocation_sites &&
+ AllocationSite::CanTrack(object->map()->instance_type()) &&
+ object->IsJSObject()) {
+ if (AllocationMemento::FindForJSObject(JSObject::cast(object)) != NULL) {
+ object->GetIsolate()->heap()->allocation_mementos_found_on_scavenge_++;
+ }
+ }
+
// AllocationMementos are unrooted and shouldn't survive a scavenge
ASSERT(object->map() != object->GetHeap()->allocation_memento_map());
// Call the slow part of scavenge object.
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698