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

Side by Side Diff: runtime/vm/isolate_reload.h

Issue 2196723002: Refactor how we report reload results (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweak Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void AppendTo(JSONArray* array); 123 void AppendTo(JSONArray* array);
124 124
125 protected: 125 protected:
126 const Class& from_; 126 const Class& from_;
127 const Class& to_; 127 const Class& to_;
128 }; 128 };
129 129
130 130
131 class IsolateReloadContext { 131 class IsolateReloadContext {
132 public: 132 public:
133 explicit IsolateReloadContext(Isolate* isolate); 133 explicit IsolateReloadContext(Isolate* isolate, JSONStream* js);
134 ~IsolateReloadContext(); 134 ~IsolateReloadContext();
135 135
136 void StartReload(bool force_reload); 136 void StartReload(bool force_reload);
137 void FinishReload(); 137 void FinishReload();
138 void AbortReload(const Error& error); 138 void AbortReload(const Error& error);
139 139
140 RawLibrary* saved_root_library() const; 140 RawLibrary* saved_root_library() const;
141 141
142 RawGrowableObjectArray* saved_libraries() const; 142 RawGrowableObjectArray* saved_libraries() const;
143 143
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // atomic_install: 245 // atomic_install:
246 void MarkAllFunctionsForRecompilation(); 246 void MarkAllFunctionsForRecompilation();
247 void ResetUnoptimizedICsOnStack(); 247 void ResetUnoptimizedICsOnStack();
248 void ResetMegamorphicCaches(); 248 void ResetMegamorphicCaches();
249 void InvalidateWorld(); 249 void InvalidateWorld();
250 250
251 int64_t start_time_micros_; 251 int64_t start_time_micros_;
252 int64_t reload_timestamp_; 252 int64_t reload_timestamp_;
253 Isolate* isolate_; 253 Isolate* isolate_;
254 bool reload_skipped_; 254 bool reload_skipped_;
255 JSONStream* js_;
255 256
256 intptr_t saved_num_cids_; 257 intptr_t saved_num_cids_;
257 RawClass** saved_class_table_; 258 RawClass** saved_class_table_;
258 intptr_t num_saved_libs_; 259 intptr_t num_saved_libs_;
259 260
260 // Collect the necessary instance transformation for schema changes. 261 // Collect the necessary instance transformation for schema changes.
261 ZoneGrowableArray<InstanceMorpher*> instance_morphers_; 262 ZoneGrowableArray<InstanceMorpher*> instance_morphers_;
262 263
263 // Collects the reasons for cancelling the reload. 264 // Collects the reasons for cancelling the reload.
264 ZoneGrowableArray<ReasonForCancelling*> reasons_to_cancel_reload_; 265 ZoneGrowableArray<ReasonForCancelling*> reasons_to_cancel_reload_;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 friend class Isolate; 324 friend class Isolate;
324 friend class Class; // AddStaticFieldMapping, AddEnumBecomeMapping. 325 friend class Class; // AddStaticFieldMapping, AddEnumBecomeMapping.
325 friend class ObjectLocator; 326 friend class ObjectLocator;
326 327
327 static Dart_FileModifiedCallback file_modified_callback_; 328 static Dart_FileModifiedCallback file_modified_callback_;
328 }; 329 };
329 330
330 } // namespace dart 331 } // namespace dart
331 332
332 #endif // VM_ISOLATE_RELOAD_H_ 333 #endif // VM_ISOLATE_RELOAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698