| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |