Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 6cd70efaa1f9d9a99b3837311ccbfc9dd7c35ed2..f1414e74825b7847af2f366ac12236fb2a227b47 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3698,6 +3698,11 @@ void CallFunctionStub::Generate(MacroAssembler* masm) { |
} |
+void CallFunctionStub::FinishCode(Handle<Code> code) { |
+ code->set_has_function_cache(RecordCallTarget()); |
+} |
+ |
+ |
void CallConstructStub::Generate(MacroAssembler* masm) { |
// rax : number of arguments |
// rbx : cache cell for call target |
@@ -3741,6 +3746,11 @@ void CallConstructStub::Generate(MacroAssembler* masm) { |
} |
+void CallConstructStub::FinishCode(Handle<Code> code) { |
+ code->set_has_function_cache(RecordCallTarget()); |
+} |
+ |
+ |
bool CEntryStub::NeedsImmovableCode() { |
return false; |
} |