| 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/aot_optimizer.h" | 7 #include "vm/aot_optimizer.h" |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/branch_optimizer.h" | 10 #include "vm/branch_optimizer.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 // Clear these before dropping classes as they may hold onto otherwise | 383 // Clear these before dropping classes as they may hold onto otherwise |
| 384 // dead instances of classes we will remove or otherwise unused symbols. | 384 // dead instances of classes we will remove or otherwise unused symbols. |
| 385 DropScriptData(); | 385 DropScriptData(); |
| 386 I->object_store()->set_unique_dynamic_targets(Array::null_array()); | 386 I->object_store()->set_unique_dynamic_targets(Array::null_array()); |
| 387 Class& null_class = Class::Handle(Z); | 387 Class& null_class = Class::Handle(Z); |
| 388 I->object_store()->set_future_class(null_class); | 388 I->object_store()->set_future_class(null_class); |
| 389 I->object_store()->set_completer_class(null_class); | 389 I->object_store()->set_completer_class(null_class); |
| 390 I->object_store()->set_stream_iterator_class(null_class); | 390 I->object_store()->set_stream_iterator_class(null_class); |
| 391 I->object_store()->set_symbol_class(null_class); | 391 I->object_store()->set_symbol_class(null_class); |
| 392 I->object_store()->set_compiletime_error_class(null_class); |
| 392 } | 393 } |
| 393 DropClasses(); | 394 DropClasses(); |
| 394 DropLibraries(); | 395 DropLibraries(); |
| 395 | 396 |
| 396 BindStaticCalls(); | 397 BindStaticCalls(); |
| 397 SwitchICCalls(); | 398 SwitchICCalls(); |
| 398 | 399 |
| 399 DedupStackmaps(); | 400 DedupStackmaps(); |
| 400 DedupStackmapLists(); | 401 DedupStackmapLists(); |
| 401 | 402 |
| (...skipping 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3266 | 3267 |
| 3267 ASSERT(FLAG_precompiled_mode); | 3268 ASSERT(FLAG_precompiled_mode); |
| 3268 const bool optimized = function.IsOptimizable(); // False for natives. | 3269 const bool optimized = function.IsOptimizable(); // False for natives. |
| 3269 DartPrecompilationPipeline pipeline(zone, field_type_map); | 3270 DartPrecompilationPipeline pipeline(zone, field_type_map); |
| 3270 return PrecompileFunctionHelper(&pipeline, function, optimized); | 3271 return PrecompileFunctionHelper(&pipeline, function, optimized); |
| 3271 } | 3272 } |
| 3272 | 3273 |
| 3273 #endif // DART_PRECOMPILER | 3274 #endif // DART_PRECOMPILER |
| 3274 | 3275 |
| 3275 } // namespace dart | 3276 } // namespace dart |
| OLD | NEW |