OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_VM_ISOLATE_RELOAD_H_ | 5 #ifndef RUNTIME_VM_ISOLATE_RELOAD_H_ |
6 #define RUNTIME_VM_ISOLATE_RELOAD_H_ | 6 #define RUNTIME_VM_ISOLATE_RELOAD_H_ |
7 | 7 |
8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 bool HasReasonsForCancelling() const { | 184 bool HasReasonsForCancelling() const { |
185 return !reasons_to_cancel_reload_.is_empty(); | 185 return !reasons_to_cancel_reload_.is_empty(); |
186 } | 186 } |
187 | 187 |
188 // Record problem for this reload. | 188 // Record problem for this reload. |
189 void AddReasonForCancelling(ReasonForCancelling* reason); | 189 void AddReasonForCancelling(ReasonForCancelling* reason); |
190 | 190 |
191 // Reports all reasons for cancelling reload. | 191 // Reports all reasons for cancelling reload. |
192 void ReportReasonsForCancelling(); | 192 void ReportReasonsForCancelling(); |
193 | 193 |
194 // Reports the deails of a reload operation. | 194 // Reports the details of a reload operation. |
195 void ReportOnJSON(JSONStream* stream); | 195 void ReportOnJSON(JSONStream* stream); |
196 | 196 |
197 // Store morphing operation. | 197 // Store morphing operation. |
198 void AddInstanceMorpher(InstanceMorpher* morpher); | 198 void AddInstanceMorpher(InstanceMorpher* morpher); |
199 | 199 |
200 // Tells whether instance in the heap must be morphed. | 200 // Tells whether instance in the heap must be morphed. |
201 bool HasInstanceMorphers() const { return !instance_morphers_.is_empty(); } | 201 bool HasInstanceMorphers() const { return !instance_morphers_.is_empty(); } |
202 | 202 |
203 // NOTE: FinalizeLoading will be called *before* Reload() returns. This | 203 // NOTE: FinalizeLoading will be called *before* Reload() returns. This |
204 // function will not be called if the embedder does not call | 204 // function will not be called if the embedder does not call |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 friend class ObjectLocator; | 357 friend class ObjectLocator; |
358 friend class MarkFunctionsForRecompilation; // IsDirty. | 358 friend class MarkFunctionsForRecompilation; // IsDirty. |
359 friend class ReasonForCancelling; | 359 friend class ReasonForCancelling; |
360 | 360 |
361 static Dart_FileModifiedCallback file_modified_callback_; | 361 static Dart_FileModifiedCallback file_modified_callback_; |
362 }; | 362 }; |
363 | 363 |
364 } // namespace dart | 364 } // namespace dart |
365 | 365 |
366 #endif // RUNTIME_VM_ISOLATE_RELOAD_H_ | 366 #endif // RUNTIME_VM_ISOLATE_RELOAD_H_ |
OLD | NEW |