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

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

Issue 2126393003: Cache compile-time constants on the script object, sometimes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 5 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 "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/log.h" 10 #include "vm/log.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #ifdef DEBUG 105 #ifdef DEBUG
106 void VerifyMaps(); 106 void VerifyMaps();
107 #endif 107 #endif
108 108
109 void Commit(); 109 void Commit();
110 110
111 void PostCommit(); 111 void PostCommit();
112 112
113 void ClearReplacedObjectBits(); 113 void ClearReplacedObjectBits();
114 114
115 void BuildCleanScriptSet();
116 void FilterCompileTimeConstants();
117
118 // atomic_install: 115 // atomic_install:
119 void MarkAllFunctionsForRecompilation(); 116 void MarkAllFunctionsForRecompilation();
120 void ResetUnoptimizedICsOnStack(); 117 void ResetUnoptimizedICsOnStack();
121 void ResetMegamorphicCaches(); 118 void ResetMegamorphicCaches();
122 void InvalidateWorld(); 119 void InvalidateWorld();
123 120
124 int64_t start_time_micros_; 121 int64_t start_time_micros_;
125 Isolate* isolate_; 122 Isolate* isolate_;
126 bool test_mode_; 123 bool test_mode_;
127 bool has_error_; 124 bool has_error_;
(...skipping 23 matching lines...) Expand all
151 void AddBecomeMapping(const Object& old, const Object& nue); 148 void AddBecomeMapping(const Object& old, const Object& nue);
152 149
153 void RebuildDirectSubclasses(); 150 void RebuildDirectSubclasses();
154 151
155 RawClass* MappedClass(const Class& replacement_or_new); 152 RawClass* MappedClass(const Class& replacement_or_new);
156 RawLibrary* MappedLibrary(const Library& replacement_or_new); 153 RawLibrary* MappedLibrary(const Library& replacement_or_new);
157 154
158 RawObject** from() { return reinterpret_cast<RawObject**>(&script_uri_); } 155 RawObject** from() { return reinterpret_cast<RawObject**>(&script_uri_); }
159 RawString* script_uri_; 156 RawString* script_uri_;
160 RawError* error_; 157 RawError* error_;
161 RawArray* clean_scripts_set_storage_;
162 RawArray* compile_time_constants_;
163 RawArray* old_classes_set_storage_; 158 RawArray* old_classes_set_storage_;
164 RawArray* class_map_storage_; 159 RawArray* class_map_storage_;
165 RawArray* old_libraries_set_storage_; 160 RawArray* old_libraries_set_storage_;
166 RawArray* library_map_storage_; 161 RawArray* library_map_storage_;
167 RawArray* become_map_storage_; 162 RawArray* become_map_storage_;
168 RawLibrary* saved_root_library_; 163 RawLibrary* saved_root_library_;
169 RawGrowableObjectArray* saved_libraries_; 164 RawGrowableObjectArray* saved_libraries_;
170 RawObject** to() { return reinterpret_cast<RawObject**>(&saved_libraries_); } 165 RawObject** to() { return reinterpret_cast<RawObject**>(&saved_libraries_); }
171 166
172 friend class Isolate; 167 friend class Isolate;
173 friend class Class; // AddStaticFieldMapping. 168 friend class Class; // AddStaticFieldMapping.
174 }; 169 };
175 170
176 } // namespace dart 171 } // namespace dart
177 172
178 #endif // VM_ISOLATE_RELOAD_H_ 173 #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