Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index e10b0fdc6139f5a5117c290228013e5f62f37b39..ecf0e9a8d68eca7fb8e611118f2aefc7f58eeeed 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -442,7 +442,7 @@ void IC::RegisterWeakMapDependency(Handle<Code> stub) { |
MapHandleList maps; |
stub->FindAllMaps(&maps); |
if (maps.length() == 1 && stub->IsWeakObjectInIC(*maps.at(0))) { |
- maps.at(0)->AddDependentIC(stub); |
+ Map::AddDependentIC(maps.at(0), stub); |
stub->mark_as_weak_stub(); |
if (FLAG_enable_ool_constant_pool) { |
stub->constant_pool()->set_weak_object_state( |