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

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: cleanups 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') | runtime/vm/parser.h » ('J')
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(); 115 void BuildCleanScriptSet();
Cutch 2016/07/08 01:06:25 BuildCleanScriptSet can go now too (I think)
turnidge 2016/07/11 21:00:42 Done.
116 void FilterCompileTimeConstants();
117 116
118 // atomic_install: 117 // atomic_install:
119 void MarkAllFunctionsForRecompilation(); 118 void MarkAllFunctionsForRecompilation();
120 void ResetUnoptimizedICsOnStack(); 119 void ResetUnoptimizedICsOnStack();
121 void ResetMegamorphicCaches(); 120 void ResetMegamorphicCaches();
122 void InvalidateWorld(); 121 void InvalidateWorld();
123 122
124 int64_t start_time_micros_; 123 int64_t start_time_micros_;
125 Isolate* isolate_; 124 Isolate* isolate_;
126 bool test_mode_; 125 bool test_mode_;
(...skipping 25 matching lines...) Expand all
152 151
153 void RebuildDirectSubclasses(); 152 void RebuildDirectSubclasses();
154 153
155 RawClass* MappedClass(const Class& replacement_or_new); 154 RawClass* MappedClass(const Class& replacement_or_new);
156 RawLibrary* MappedLibrary(const Library& replacement_or_new); 155 RawLibrary* MappedLibrary(const Library& replacement_or_new);
157 156
158 RawObject** from() { return reinterpret_cast<RawObject**>(&script_uri_); } 157 RawObject** from() { return reinterpret_cast<RawObject**>(&script_uri_); }
159 RawString* script_uri_; 158 RawString* script_uri_;
160 RawError* error_; 159 RawError* error_;
161 RawArray* clean_scripts_set_storage_; 160 RawArray* clean_scripts_set_storage_;
162 RawArray* compile_time_constants_;
163 RawArray* old_classes_set_storage_; 161 RawArray* old_classes_set_storage_;
164 RawArray* class_map_storage_; 162 RawArray* class_map_storage_;
165 RawArray* old_libraries_set_storage_; 163 RawArray* old_libraries_set_storage_;
166 RawArray* library_map_storage_; 164 RawArray* library_map_storage_;
167 RawArray* become_map_storage_; 165 RawArray* become_map_storage_;
168 RawLibrary* saved_root_library_; 166 RawLibrary* saved_root_library_;
169 RawGrowableObjectArray* saved_libraries_; 167 RawGrowableObjectArray* saved_libraries_;
170 RawObject** to() { return reinterpret_cast<RawObject**>(&saved_libraries_); } 168 RawObject** to() { return reinterpret_cast<RawObject**>(&saved_libraries_); }
171 169
172 friend class Isolate; 170 friend class Isolate;
173 friend class Class; // AddStaticFieldMapping. 171 friend class Class; // AddStaticFieldMapping.
174 }; 172 };
175 173
176 } // namespace dart 174 } // namespace dart
177 175
178 #endif // VM_ISOLATE_RELOAD_H_ 176 #endif // VM_ISOLATE_RELOAD_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate_reload.cc » ('j') | runtime/vm/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698