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 VM_ISOLATE_RELOAD_H_ | 5 #ifndef VM_ISOLATE_RELOAD_H_ |
6 #define VM_ISOLATE_RELOAD_H_ | 6 #define 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/hash_map.h" | 10 #include "vm/hash_map.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Append the reason to JSON array. | 110 // Append the reason to JSON array. |
111 virtual void AppendTo(JSONArray* array); | 111 virtual void AppendTo(JSONArray* array); |
112 | 112 |
113 // Concrete subclasses must override either ToError or ToString. | 113 // Concrete subclasses must override either ToError or ToString. |
114 }; | 114 }; |
115 | 115 |
116 | 116 |
117 // Abstract class for also capturing the from_ and to_ class. | 117 // Abstract class for also capturing the from_ and to_ class. |
118 class ClassReasonForCancelling : public ReasonForCancelling { | 118 class ClassReasonForCancelling : public ReasonForCancelling { |
119 public: | 119 public: |
120 ClassReasonForCancelling(Zone* zone, const Class& from, const Class& to) | 120 ClassReasonForCancelling(Zone* zone, const Class& from, const Class& to); |
121 : ReasonForCancelling(zone), from_(from), to_(to) { } | |
122 | |
123 void AppendTo(JSONArray* array); | 121 void AppendTo(JSONArray* array); |
124 | 122 |
125 protected: | 123 protected: |
126 const Class& from_; | 124 const Class& from_; |
127 const Class& to_; | 125 const Class& to_; |
128 }; | 126 }; |
129 | 127 |
130 | 128 |
131 class IsolateReloadContext { | 129 class IsolateReloadContext { |
132 public: | 130 public: |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 friend class ObjectLocator; | 342 friend class ObjectLocator; |
345 friend class MarkFunctionsForRecompilation; // IsDirty. | 343 friend class MarkFunctionsForRecompilation; // IsDirty. |
346 friend class ReasonForCancelling; | 344 friend class ReasonForCancelling; |
347 | 345 |
348 static Dart_FileModifiedCallback file_modified_callback_; | 346 static Dart_FileModifiedCallback file_modified_callback_; |
349 }; | 347 }; |
350 | 348 |
351 } // namespace dart | 349 } // namespace dart |
352 | 350 |
353 #endif // VM_ISOLATE_RELOAD_H_ | 351 #endif // VM_ISOLATE_RELOAD_H_ |
OLD | NEW |