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

Unified Diff: runtime/bin/loader.cc

Issue 2901093002: VM: Fix snapshoting slow-down caused by 99c6a18a1bc2a4f13d8dd027a597fdca0f2d6e0c. (Closed)
Patch Set: Created 3 years, 7 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/bin/vmservice/loader.dart » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/loader.cc
diff --git a/runtime/bin/loader.cc b/runtime/bin/loader.cc
index cdf370b2a11f4c0b7187dc955fe41a73a197d7ee..92da2ed1743262e60557a05a4b104ead1a4307fb 100644
--- a/runtime/bin/loader.cc
+++ b/runtime/bin/loader.cc
@@ -140,7 +140,7 @@ void Loader::Init(const char* package_root,
// Keep in sync with loader.dart.
const intptr_t _Dart_kInitLoader = 4;
- Dart_Handle request = Dart_NewList(8);
+ Dart_Handle request = Dart_NewList(9);
Dart_ListSetAt(request, 0, trace_loader ? Dart_True() : Dart_False());
Dart_ListSetAt(request, 1, Dart_NewInteger(Dart_GetMainPortId()));
Dart_ListSetAt(request, 2, Dart_NewInteger(_Dart_kInitLoader));
@@ -155,6 +155,8 @@ void Loader::Init(const char* package_root,
Dart_ListSetAt(request, 7, (root_script_uri == NULL)
? Dart_Null()
: Dart_NewStringFromCString(root_script_uri));
+ Dart_ListSetAt(request, 8, Dart_NewBoolean(Dart_IsReloading()));
+
bool success = Dart_Post(loader_port, request);
ASSERT(success);
« no previous file with comments | « no previous file | runtime/bin/vmservice/loader.dart » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698