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

Unified Diff: src/heap-inl.h

Issue 25655004: Print out how many AllocationMementos were found during mark-sweep. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')
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 13ac4a786a21bb48a6e09be6031a834e5013c807..50ba7f45938946958d238d77ff57f65f064e23aa 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -528,8 +528,9 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
if (FLAG_trace_track_allocation_sites &&
AllocationSite::CanTrack(object->map()->instance_type()) &&
mvstanton 2013/10/02 10:56:45 See my other comment about CanTrack().
Hannes Payer (out of office) 2013/10/02 11:02:19 Done.
object->IsJSObject()) {
- if (AllocationMemento::FindForJSObject(JSObject::cast(object)) != NULL) {
- object->GetIsolate()->heap()->allocation_mementos_found_on_scavenge_++;
+ if (AllocationMemento::FindForJSObject(JSObject::cast(object), true) !=
+ NULL) {
+ object->GetIsolate()->heap()->allocation_mementos_found_++;
}
}
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698