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

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: 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/dart_api_impl_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index b49d59b130bf265f9f316dee4d2d03b39ab94e08..3186cf1cddbe8ac9bb88aa1b165ba48f79bb6bf4 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,13 @@ class Isolate : public BaseIsolate {
void ReportReloadError(const Error& error);
+ void set_last_reload_timestamp(int64_t value) {
+ last_reload_timestamp_ = value;
+ }
+ int64_t last_reload_timestamp() const {
+ return last_reload_timestamp_;
+ }
+
uword user_tag() const {
return user_tag_;
}
@@ -831,6 +839,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 last_reload_timestamp_;
#define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \
type metric_##variable##_;
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698