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

Unified Diff: runtime/vm/dart_api_impl.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 | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 419eeebc1329563ab816b56325092a4da9f29967..a2137476e04e0c7453cfc80af6126937fcbc111c 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -6114,6 +6114,11 @@ Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_mod_callback) {
}
+DART_EXPORT bool Dart_IsReloading() {
+ return true;
siva 2017/05/23 18:48:37 Should this be false as there is no reloading in P
Vyacheslav Egorov (Google) 2017/05/23 20:00:48 Yep, this was a typo. I fixed it in the local che
+}
+
+
DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) {
return;
}
@@ -6249,6 +6254,14 @@ Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_modified_callback) {
}
+DART_EXPORT bool Dart_IsReloading() {
+ Thread* thread = Thread::Current();
+ Isolate* isolate = thread->isolate();
+ CHECK_ISOLATE(isolate);
+ return isolate->IsReloading();
+}
+
+
DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) {
if (!FLAG_support_timeline) {
return;
« no previous file with comments | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698