Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 4f59a1a5a25a0f3a777000c462eca519c03c4015..d4cbef7d6a701f0afdae4b8df08830c019faa835 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -635,7 +635,7 @@ void Code::VerifyEmbeddedObjectsDependency() { |
int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
for (RelocIterator it(this, mode_mask); !it.done(); it.next()) { |
Object* obj = it.rinfo()->target_object(); |
- if (IsWeakEmbeddedObject(kind(), obj)) { |
+ if (IsWeakObject(obj)) { |
if (obj->IsMap()) { |
Map* map = Map::cast(obj); |
CHECK(map->dependent_code()->Contains( |