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

Unified Diff: src/mark-compact.cc

Issue 6992059: Add a comment about map collection into MarkCompactCollector::MarkUnmarkedObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index 160dba8d49d85a60ee4ec4d59ff1ccb42bc7e474..5d47ec724fa11ed19f10f935837a155f5c9c865e 100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -1060,6 +1060,11 @@ void MarkCompactCollector::MarkUnmarkedObject(HeapObject* object) {
map->ClearCodeCache(heap());
}
SetMark(map);
+
+ // When map collection is enabled we have to mark through map's transitions
+ // in a special way to make transition links weak.
+ // Only maps with instance types between FIRST_JS_OBJECT_TYPE and
+ // JS_FUNCTION_TYPE can have transitions.
if (FLAG_collect_maps &&
map->instance_type() >= FIRST_JS_OBJECT_TYPE &&
map->instance_type() <= JS_FUNCTION_TYPE) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698