Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 6bf047966ceb8f6d0e7c885854ee3b141e6001fa..06203629ae15cf8153d7b92c32c77b637849b0cf 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -86,9 +86,11 @@ Code::Kind CodeStub::GetCodeKind() const { |
} |
-Handle<Code> CodeStub::GetCodeCopyFromTemplate(Isolate* isolate) { |
+Handle<Code> CodeStub::GetCodeCopy(Isolate* isolate, |
+ const Code::FindAndReplacePattern& pattern) { |
Handle<Code> ic = GetCode(isolate); |
ic = isolate->factory()->CopyCode(ic); |
+ ic->FindAndReplace(pattern); |
RecordCodeGeneration(*ic, isolate); |
return ic; |
} |