Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index 06ae6cfc100f69f4d0d4c01b745a8de2409ce16f..f4a3baf5861e8e69058e2327bd2f9bcd5e3b0aed 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -352,6 +352,10 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) { |
if (!Dart::IsRunningPrecompiledCode()) { |
MegamorphicCacheTable::InitMissHandler(I); |
} |
+ const Function& miss_function = |
+ Function::Handle(I->object_store()->megamorphic_miss_function()); |
+ I->set_ic_miss_function(miss_function); |
+ |
if (snapshot_buffer == NULL) { |
if (!I->object_store()->PreallocateObjects()) { |
return I->object_store()->sticky_error(); |