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/precompiler.cc

Issue 1612233002: Precompilation: drop list of dynamic targets with a unique selector. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 #include "vm/precompiler.h" 5 #include "vm/precompiler.h"
6 6
7 #include "vm/cha.h" 7 #include "vm/cha.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/hash_table.h" 10 #include "vm/hash_table.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 " fields.\n", 126 " fields.\n",
127 function_count_, 127 function_count_,
128 class_count_, 128 class_count_,
129 selector_count_, 129 selector_count_,
130 dropped_function_count_, 130 dropped_function_count_,
131 dropped_field_count_); 131 dropped_field_count_);
132 } 132 }
133 133
134 I->set_compilation_allowed(false); 134 I->set_compilation_allowed(false);
135 I->object_store()->set_compile_time_constants(Array::null_array()); 135 I->object_store()->set_compile_time_constants(Array::null_array());
136 I->object_store()->set_unique_dynamic_targets(Array::null_array());
136 } 137 }
137 138
138 139
139 void Precompiler::ClearAllCode() { 140 void Precompiler::ClearAllCode() {
140 class ClearCodeFunctionVisitor : public FunctionVisitor { 141 class ClearCodeFunctionVisitor : public FunctionVisitor {
141 void VisitFunction(const Function& function) { 142 void VisitFunction(const Function& function) {
142 function.ClearCode(); 143 function.ClearCode();
143 } 144 }
144 }; 145 };
145 ClearCodeFunctionVisitor visitor; 146 ClearCodeFunctionVisitor visitor;
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 cls = it.GetNextClass(); 1204 cls = it.GetNextClass();
1204 if (cls.IsDynamicClass()) { 1205 if (cls.IsDynamicClass()) {
1205 continue; // class 'dynamic' is in the read-only VM isolate. 1206 continue; // class 'dynamic' is in the read-only VM isolate.
1206 } 1207 }
1207 cls.set_is_allocated(false); 1208 cls.set_is_allocated(false);
1208 } 1209 }
1209 } 1210 }
1210 } 1211 }
1211 1212
1212 } // namespace dart 1213 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698