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

Unified Diff: runtime/vm/megamorphic_cache_table.cc

Issue 2616763003: Fix duplication of the megamorphic miss function when running a JIT app snapshot. (Closed)
Patch Set: Created 3 years, 11 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
« runtime/vm/dart.cc ('K') | « runtime/vm/dart.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/megamorphic_cache_table.cc
diff --git a/runtime/vm/megamorphic_cache_table.cc b/runtime/vm/megamorphic_cache_table.cc
index 77d32ae138683c2ec8e6b50314e87c3ce12ec5a4..33df09af56af61d5ac5874b9e8e62a0fe1d30a5a 100644
--- a/runtime/vm/megamorphic_cache_table.cc
+++ b/runtime/vm/megamorphic_cache_table.cc
@@ -76,6 +76,8 @@ void MegamorphicCacheTable::InitMissHandler(Isolate* isolate) {
// For inclusion in Snapshot::kAppJIT.
function.set_unoptimized_code(code);
+ ASSERT(isolate->object_store()->megamorphic_miss_function() ==
+ Function::null());
isolate->object_store()->SetMegamorphicMissHandler(code, function);
}
« runtime/vm/dart.cc ('K') | « runtime/vm/dart.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698