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

Unified Diff: runtime/bin/main.cc

Issue 2699853002: Sort class IDs before training AppJIT snapshots (Closed)
Patch Set: Created 3 years, 10 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/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 6a104c19b028771a5981724f32cd903e3e0d89bd..285a6a838ace540200bb57c6979bc4b6e539e6a8 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -1448,6 +1448,8 @@ bool RunMainIsolate(const char* script_name, CommandLineOptions* dart_options) {
script_name);
}
+ if (gen_snapshot_kind == kAppJIT) Dart_SortClasses();
+
// The helper function _getMainClosure creates a closure for the main
// entry point which is either explicitly or implictly exported from the
// root library.
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698