| Index: runtime/vm/megamorphic_cache_table.cc
|
| diff --git a/runtime/vm/megamorphic_cache_table.cc b/runtime/vm/megamorphic_cache_table.cc
|
| index c87be9696bae2a6ecf2325a28541a7262542d469..b4dc43a32443c5fa5ce0f54712e3da5f312b908c 100644
|
| --- a/runtime/vm/megamorphic_cache_table.cc
|
| +++ b/runtime/vm/megamorphic_cache_table.cc
|
| @@ -57,6 +57,10 @@ void MegamorphicCacheTable::InitMissHandler(Isolate* isolate) {
|
| const Code& code =
|
| Code::Handle(StubCode::Generate("_stub_MegamorphicMiss",
|
| StubCode::GenerateMegamorphicMissStub));
|
| + // When FLAG_lazy_dispatcher=false, this stub can be on the stack during
|
| + // exceptions, but it has a corresponding function so IsStubCode is false and
|
| + // it is considered in the search for an exception handler.
|
| + code.set_exception_handlers(Object::empty_exception_handlers());
|
| const Class& cls =
|
| Class::Handle(Type::Handle(Type::Function()).type_class());
|
| const Function& function =
|
|
|