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

Unified Diff: runtime/vm/isolate.h

Issue 2186423002: Only reload libraries when they may have been modified. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed bug with prefixed imports 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
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index b49d59b130bf265f9f316dee4d2d03b39ab94e08..e0fbf7d39e86b65d86cfcf572b40bb2af308be29 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -257,7 +257,8 @@ class Isolate : public BaseIsolate {
// By default the reload context is deleted. This parameter allows
// the caller to delete is separately if it is still needed.
- void ReloadSources(bool dont_delete_reload_context = false);
+ void ReloadSources(bool force_reload,
+ bool dont_delete_reload_context = false);
bool MakeRunnable();
void Run();
@@ -492,6 +493,10 @@ class Isolate : public BaseIsolate {
void ReportReloadError(const Error& error);
+ int64_t reload_timestamp() const {
+ return reload_timestamp_;
+ }
+
uword user_tag() const {
return user_tag_;
}
@@ -831,6 +836,7 @@ class Isolate : public BaseIsolate {
// Per-isolate copy of FLAG_reload_every.
intptr_t reload_every_n_stack_overflow_checks_;
IsolateReloadContext* reload_context_;
+ int64_t reload_timestamp_;
#define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \
type metric_##variable##_;

Powered by Google App Engine
This is Rietveld 408576698