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

Side by Side Diff: runtime/vm/precompiler.cc

Issue 1507943002: Add ./tools/test.py -c precompiler -r dart_precompiled. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « runtime/vm/dart_api_impl.cc ('k') | samples/samples.status » ('j') | 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | samples/samples.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698