Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 52e7f4cf3dfa8fc7581c63dca111b718fd86b96d..77733b8cef0801b8eaa8074a53995129c0dd9067 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -333,8 +333,9 @@ Handle<Code> StubCache::ComputeCompareNil(Handle<Map> receiver_map, |
if (!cached_ic.is_null()) return cached_ic; |
} |
- Handle<Code> ic = stub.GetCodeCopyFromTemplate(isolate_); |
- ic->ReplaceNthObject(1, isolate_->heap()->meta_map(), *receiver_map); |
+ Code::FindAndReplacePattern pattern; |
+ pattern.Add(isolate_->factory()->meta_map(), receiver_map); |
+ Handle<Code> ic = stub.GetCodeCopy(isolate_, pattern); |
if (!receiver_map->is_shared()) { |
Map::UpdateCodeCache(receiver_map, name, ic); |