Chromium Code Reviews| 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; |