| 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 ShareMegamorphicBuckets(); | 400 ShareMegamorphicBuckets(); |
| 400 DedupStackmaps(); | 401 DedupStackmaps(); |
| 401 DedupLists(); | 402 DedupLists(); |
| (...skipping 2911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3313 | 3314 |
| 3314 ASSERT(FLAG_precompiled_mode); | 3315 ASSERT(FLAG_precompiled_mode); |
| 3315 const bool optimized = function.IsOptimizable(); // False for natives. | 3316 const bool optimized = function.IsOptimizable(); // False for natives. |
| 3316 DartPrecompilationPipeline pipeline(zone, field_type_map); | 3317 DartPrecompilationPipeline pipeline(zone, field_type_map); |
| 3317 return PrecompileFunctionHelper(&pipeline, function, optimized); | 3318 return PrecompileFunctionHelper(&pipeline, function, optimized); |
| 3318 } | 3319 } |
| 3319 | 3320 |
| 3320 #endif // DART_PRECOMPILER | 3321 #endif // DART_PRECOMPILER |
| 3321 | 3322 |
| 3322 } // namespace dart | 3323 } // namespace dart |
| OLD | NEW |