Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 1141cb56b31e16bd11f9bb46284849d47c58a918..78ff554fdb6d187b14ca4c3b5829b5ad2242f3d6 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -739,6 +739,10 @@ class CallFunctionStub: public CodeStub { |
void Generate(MacroAssembler* masm); |
+ virtual void FinishCode(Handle<Code> code) { |
+ code->set_has_function_cache(RecordCallTarget()); |
+ } |
+ |
static int ExtractArgcFromMinorKey(int minor_key) { |
return ArgcBits::decode(minor_key); |
} |
@@ -775,6 +779,10 @@ class CallConstructStub: public CodeStub { |
void Generate(MacroAssembler* masm); |
+ virtual void FinishCode(Handle<Code> code) { |
+ code->set_has_function_cache(RecordCallTarget()); |
+ } |
+ |
private: |
CallFunctionFlags flags_; |