Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Unified Diff: runtime/vm/megamorphic_cache_table.cc

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..154d0e05be34e413dcdbce5ea55d401866af0890 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_dispatchers=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 =

Powered by Google App Engine
This is Rietveld 408576698