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

Unified Diff: runtime/vm/service.cc

Issue 2186423002: Only reload libraries when they may have been modified. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 5 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 | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index ccc5309e1fdf30083f898bffe19852b472797791..8ef6e8945abac5c1c7ade1623371734315fd2a2c 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -2457,6 +2457,7 @@ static bool GetSourceReport(Thread* thread, JSONStream* js) {
static const MethodParameter* reload_sources_params[] = {
RUNNABLE_ISOLATE_PARAMETER,
+ new BoolParameter("force", false),
NULL,
};
@@ -2489,8 +2490,10 @@ static bool ReloadSources(Thread* thread, JSONStream* js) {
"This isolate cannot reload sources right now.");
return true;
}
+ const bool force_reload =
+ BoolParameter::Parse(js->LookupParam("force"), false);
- isolate->ReloadSources();
+ isolate->ReloadSources(force_reload);
const Error& error = Error::Handle(isolate->sticky_reload_error());
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698