Index: src/mark-compact.h |
diff --git a/src/mark-compact.h b/src/mark-compact.h |
index bd34d56c5dd9fbcc153b4e7c72e11069abab58ec..254f2589c99b771e9e7882e23451685656e3dfe1 100644 |
--- a/src/mark-compact.h |
+++ b/src/mark-compact.h |
@@ -851,6 +851,12 @@ class MarkCompactCollector { |
int ClearNonLiveDependentCodeInGroup(DependentCode* dependent_code, int group, |
int start, int end, int new_start); |
+ // Marking detaches initial maps from SharedFunctionInfo objects |
+ // to make this reference weak. We need to reattach initial maps |
+ // back after collection. This is either done during |
+ // ClearNonLiveTransitions pass or by calling this function. |
+ void ReattachInitialMaps(); |
+ |
// Mark all values associated with reachable keys in weak collections |
// encountered so far. This might push new object or even new weak maps onto |
// the marking stack. |