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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 function ^= functions.At(j); | 1080 function ^= functions.At(j); |
1081 visitor->VisitFunction(function); | 1081 visitor->VisitFunction(function); |
1082 } | 1082 } |
1083 } | 1083 } |
1084 } | 1084 } |
1085 } | 1085 } |
1086 closures = isolate()->object_store()->closure_functions(); | 1086 closures = isolate()->object_store()->closure_functions(); |
1087 for (intptr_t j = 0; j < closures.Length(); j++) { | 1087 for (intptr_t j = 0; j < closures.Length(); j++) { |
1088 function ^= closures.At(j); | 1088 function ^= closures.At(j); |
1089 visitor->VisitFunction(function); | 1089 visitor->VisitFunction(function); |
| 1090 ASSERT(!function.HasImplicitClosureFunction()); |
1090 } | 1091 } |
1091 } | 1092 } |
1092 | 1093 |
1093 | 1094 |
1094 void Precompiler::FinalizeAllClasses() { | 1095 void Precompiler::FinalizeAllClasses() { |
1095 Library& lib = Library::Handle(Z); | 1096 Library& lib = Library::Handle(Z); |
1096 Class& cls = Class::Handle(Z); | 1097 Class& cls = Class::Handle(Z); |
1097 | 1098 |
1098 for (intptr_t i = 0; i < libraries_.Length(); i++) { | 1099 for (intptr_t i = 0; i < libraries_.Length(); i++) { |
1099 lib ^= libraries_.At(i); | 1100 lib ^= libraries_.At(i); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 cls = it.GetNextClass(); | 1142 cls = it.GetNextClass(); |
1142 if (cls.IsDynamicClass()) { | 1143 if (cls.IsDynamicClass()) { |
1143 continue; // class 'dynamic' is in the read-only VM isolate. | 1144 continue; // class 'dynamic' is in the read-only VM isolate. |
1144 } | 1145 } |
1145 cls.set_is_allocated(false); | 1146 cls.set_is_allocated(false); |
1146 } | 1147 } |
1147 } | 1148 } |
1148 } | 1149 } |
1149 | 1150 |
1150 } // namespace dart | 1151 } // namespace dart |
OLD | NEW |