Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 755f39136d3f9efc085557fc53d401a9ed4bba67..f959e924988a8f0a72ab1e9961b668dbea345328 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -349,7 +349,7 @@ Handle<Code> PropertyICCompiler::ComputeCompareNil(Handle<Map> receiver_map, |
CompareNilICStub* stub) { |
Isolate* isolate = receiver_map->GetIsolate(); |
Handle<String> name(isolate->heap()->empty_string()); |
- if (!receiver_map->is_shared()) { |
+ if (!receiver_map->is_dictionary_map()) { |
Handle<Code> cached_ic = |
Find(name, receiver_map, Code::COMPARE_NIL_IC, stub->GetExtraICState()); |
if (!cached_ic.is_null()) return cached_ic; |
@@ -359,7 +359,7 @@ Handle<Code> PropertyICCompiler::ComputeCompareNil(Handle<Map> receiver_map, |
pattern.Add(isolate->factory()->meta_map(), receiver_map); |
Handle<Code> ic = stub->GetCodeCopy(pattern); |
- if (!receiver_map->is_shared()) { |
+ if (!receiver_map->is_dictionary_map()) { |
Map::UpdateCodeCache(receiver_map, name, ic); |
} |