Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 44261365800636ce2ef3dd96f134bdb548af0821..123034e7d549837a741459b4a00fa14b5b0e216f 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -13795,8 +13795,9 @@ RawMegamorphicCache* MegamorphicCache::New() { |
const intptr_t capacity = kInitialCapacity; |
const Array& buckets = Array::Handle( |
Array::New(kEntryLength * capacity, Heap::kOld)); |
+ ASSERT(Isolate::Current()->megamorphic_cache_table()->miss_handler() != NULL); |
const Function& handler = Function::Handle( |
- MegamorphicCacheTable::miss_handler(Isolate::Current())); |
+ Isolate::Current()->megamorphic_cache_table()->miss_handler()); |
for (intptr_t i = 0; i < capacity; ++i) { |
SetEntry(buckets, i, smi_illegal_cid(), handler); |
} |
@@ -13817,7 +13818,7 @@ void MegamorphicCache::EnsureCapacity() const { |
Array::Handle(Array::New(kEntryLength * new_capacity)); |
Function& target = Function::Handle( |
- MegamorphicCacheTable::miss_handler(Isolate::Current())); |
+ Isolate::Current()->megamorphic_cache_table()->miss_handler()); |
for (intptr_t i = 0; i < new_capacity; ++i) { |
SetEntry(new_buckets, i, smi_illegal_cid(), target); |
} |