Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 38c32befdb16f1b02f5097d5fadb14a836074793..9b62e4b6a987970e06976774a28880e08988dd9b 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1246,7 +1246,7 @@ class MarkCompactMarkingVisitor |
Heap* heap = map->GetHeap(); |
MarkCompactCollector* collector = heap->mark_compact_collector(); |
if (!collector->is_code_flushing_enabled()) { |
- VisitJSRegExp(map, object); |
+ JSObjectVisitor::Visit(map, object); |
return; |
} |
JSRegExp* re = reinterpret_cast<JSRegExp*>(object); |
@@ -1254,7 +1254,7 @@ class MarkCompactMarkingVisitor |
UpdateRegExpCodeAgeAndFlush(heap, re, true); |
UpdateRegExpCodeAgeAndFlush(heap, re, false); |
// Visit the fields of the RegExp, including the updated FixedArray. |
- VisitJSRegExp(map, object); |
+ JSObjectVisitor::Visit(map, object); |
} |
}; |