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

Unified Diff: runtime/vm/dart.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
« no previous file with comments | « no previous file | runtime/vm/megamorphic_cache_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 2f9e6d7b694a6bb8693440f72a489ccac5f875de..01dce70fe036c1fc65f080963af224707d4ede6a 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -583,7 +583,7 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer,
#if !defined(DART_PRECOMPILED_RUNTIME)
// When running precompiled, the megamorphic miss function/code comes from the
// snapshot.
siva 2017/01/05 23:10:47 The comment here also probably needs an update (pr
rmacnak 2017/01/05 23:32:44 Done.
- if (!Snapshot::IncludesCode(Dart::snapshot_kind())) {
+ if (I->object_store()->megamorphic_miss_function() == Function::null()) {
MegamorphicCacheTable::InitMissHandler(I);
}
#endif
siva 2017/01/05 23:10:47 Should this be set up as #if defined(DART_PRECOMP
rmacnak 2017/01/05 23:32:44 Done.
« no previous file with comments | « no previous file | runtime/vm/megamorphic_cache_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698