Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 7d611c1c1c6b5b97e1cc61b4d952c71f72c5ab3d..bfb4031f3e42831d0c381efa05f542f2117c56e9 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -85,7 +85,8 @@ class VerifyMarkingVisitor: public ObjectVisitor { |
void VisitEmbeddedPointer(RelocInfo* rinfo) { |
ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); |
- if (rinfo->host()->kind() != Code::OPTIMIZED_FUNCTION || |
+ if (!FLAG_weak_embedded_maps_in_optimized_code || |
+ rinfo->host()->kind() != Code::OPTIMIZED_FUNCTION || |
!rinfo->target_object()->IsMap() || |
!Map::cast(rinfo->target_object())->CanTransition()) { |
VisitPointer(rinfo->target_object_address()); |