Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index c6405d044420b34c9d94ede14952dc1da90c2ac7..802e7207acbd282fa91a7f3cf793b9bf64d68d4e 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -85,6 +85,14 @@ Code::Kind CodeStub::GetCodeKind() const { |
} |
+Handle<Code> CodeStub::GetCodeCopyFromTemplate(Isolate* isolate) { |
+ Handle<Code> ic = GetCode(isolate); |
+ ic = isolate->factory()->CopyCode(ic); |
+ RecordCodeGeneration(*ic, isolate); |
+ return ic; |
+} |
+ |
+ |
Handle<Code> PlatformCodeStub::GenerateCode() { |
Isolate* isolate = Isolate::Current(); |
Factory* factory = isolate->factory(); |