Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index bd7163a2f1da676ad36bed0d8b24bd53e79e1887..5ec5c95074e526c8c9d8b53f3d6dca3f56f12008 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -384,7 +384,7 @@ Handle<Code> StubCache::ComputeStoreField(Handle<String> name, |
Handle<Code> StubCache::ComputeKeyedLoadOrStoreElement( |
- Handle<JSObject> receiver, |
+ Handle<Map> receiver_map, |
KeyedIC::StubKind stub_kind, |
StrictModeFlag strict_mode) { |
KeyedAccessGrowMode grow_mode = |
@@ -412,7 +412,6 @@ Handle<Code> StubCache::ComputeKeyedLoadOrStoreElement( |
UNREACHABLE(); |
break; |
} |
- Handle<Map> receiver_map(receiver->map()); |
Handle<Object> probe(receiver_map->FindInCodeCache(*name, flags)); |
if (probe->IsCode()) return Handle<Code>::cast(probe); |
@@ -447,7 +446,7 @@ Handle<Code> StubCache::ComputeKeyedLoadOrStoreElement( |
} else { |
PROFILE(isolate_, CodeCreateEvent(Logger::KEYED_STORE_IC_TAG, *code, 0)); |
} |
- JSObject::UpdateMapCodeCache(receiver, name, code); |
+ Map::UpdateCodeCache(receiver_map, name, code); |
return code; |
} |