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

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

Issue 2255553002: Fix for heap corruption issue when patch https://codereview.chromium.org/2225243003/ is applied. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | « no previous file | 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698