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 1612193002: Precompilation: drop the const object cache. (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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 " %" Pd " dynamic selectors.\n Dropped %" Pd " functions, %" Pd 125 " %" Pd " dynamic selectors.\n Dropped %" Pd " functions, %" Pd
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 } 136 }
136 137
137 138
138 void Precompiler::ClearAllCode() { 139 void Precompiler::ClearAllCode() {
139 class ClearCodeFunctionVisitor : public FunctionVisitor { 140 class ClearCodeFunctionVisitor : public FunctionVisitor {
140 void VisitFunction(const Function& function) { 141 void VisitFunction(const Function& function) {
141 function.ClearCode(); 142 function.ClearCode();
142 } 143 }
143 }; 144 };
144 ClearCodeFunctionVisitor visitor; 145 ClearCodeFunctionVisitor visitor;
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 cls = it.GetNextClass(); 1203 cls = it.GetNextClass();
1203 if (cls.IsDynamicClass()) { 1204 if (cls.IsDynamicClass()) {
1204 continue; // class 'dynamic' is in the read-only VM isolate. 1205 continue; // class 'dynamic' is in the read-only VM isolate.
1205 } 1206 }
1206 cls.set_is_allocated(false); 1207 cls.set_is_allocated(false);
1207 } 1208 }
1208 } 1209 }
1209 } 1210 }
1210 1211
1211 } // namespace dart 1212 } // 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