Index: src/ic/ic-compiler.cc |
diff --git a/src/ic/ic-compiler.cc b/src/ic/ic-compiler.cc |
index 69d707b03554ff3ecf66e41cec8f812ef8109881..3a1731268fc2ad1ae807cb7e8a899d6c49c4abb8 100644 |
--- a/src/ic/ic-compiler.cc |
+++ b/src/ic/ic-compiler.cc |
@@ -244,7 +244,8 @@ Handle<Code> PropertyICCompiler::ComputeCompareNil(Handle<Map> receiver_map, |
} |
Code::FindAndReplacePattern pattern; |
- pattern.Add(isolate->factory()->meta_map(), receiver_map); |
+ Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); |
+ pattern.Add(isolate->factory()->meta_map(), cell); |
Handle<Code> ic = stub->GetCodeCopy(pattern); |
if (!receiver_map->is_dictionary_map()) { |