Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 1bf6100c7f2d1c415849bd628974d0a879b0d66b..e7bf0692272ed40cf7645cb9d6c403b5d5da1d39 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1277,6 +1277,7 @@ Handle<Code> BaseLoadStoreStubCompiler::GetICCode(Code::Kind kind, |
InlineCacheState state) { |
Code::Flags flags = Code::ComputeFlags(kind, state, extra_state(), type); |
Handle<Code> code = GetCodeWithFlags(flags, name); |
+ IC::RegisterWeakMapDependency(code); |
PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name)); |
JitEvent(name, code); |
return code; |