Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index fc5af36a9f80633aa78c1ca1bd5bcff894d9324c..a07d656d75f923dd94c891a0d5d1fe53244ca789 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1457,6 +1457,7 @@ Handle<Code> Factory::NewCode(const CodeDesc& desc, |
// fact that no allocation will happen from this point on. |
DisallowHeapAllocation no_gc; |
code->set_gc_metadata(Smi::FromInt(0)); |
+ code->set_ic_age(isolate()->heap()->global_ic_age()); |
code->set_instruction_size(desc.instr_size); |
code->set_relocation_info(*reloc_info); |
code->set_flags(flags); |