Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index ff641dddf98d4fd86b88f246f832bcdb289aade5..422b5a56833b3cfc30d340bc1083231ed09362ef 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1272,6 +1272,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; |