Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 2d94ec978e098da76d89aedb2b41c48d1d5b2d5d..97ba466bd5a66f6809589e977fc020c9084ba239 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -84,6 +84,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(); |