| 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" |
| 11 #include "vm/cha.h" | 11 #include "vm/cha.h" |
| 12 #include "vm/class_finalizer.h" | 12 #include "vm/class_finalizer.h" |
| 13 #include "vm/code_generator.h" | |
| 14 #include "vm/code_patcher.h" | 13 #include "vm/code_patcher.h" |
| 15 #include "vm/compiler.h" | 14 #include "vm/compiler.h" |
| 16 #include "vm/constant_propagator.h" | 15 #include "vm/constant_propagator.h" |
| 17 #include "vm/dart_entry.h" | 16 #include "vm/dart_entry.h" |
| 18 #include "vm/disassembler.h" | 17 #include "vm/disassembler.h" |
| 19 #include "vm/exceptions.h" | 18 #include "vm/exceptions.h" |
| 20 #include "vm/flags.h" | 19 #include "vm/flags.h" |
| 21 #include "vm/flow_graph.h" | 20 #include "vm/flow_graph.h" |
| 22 #include "vm/flow_graph_allocator.h" | 21 #include "vm/flow_graph_allocator.h" |
| 23 #include "vm/flow_graph_builder.h" | 22 #include "vm/flow_graph_builder.h" |
| 24 #include "vm/flow_graph_compiler.h" | 23 #include "vm/flow_graph_compiler.h" |
| 25 #include "vm/flow_graph_inliner.h" | 24 #include "vm/flow_graph_inliner.h" |
| 26 #include "vm/flow_graph_range_analysis.h" | 25 #include "vm/flow_graph_range_analysis.h" |
| 27 #include "vm/flow_graph_type_propagator.h" | 26 #include "vm/flow_graph_type_propagator.h" |
| 28 #include "vm/hash_table.h" | 27 #include "vm/hash_table.h" |
| 29 #include "vm/il_printer.h" | 28 #include "vm/il_printer.h" |
| 30 #include "vm/isolate.h" | 29 #include "vm/isolate.h" |
| 30 #include "vm/json_parser.h" |
| 31 #include "vm/log.h" | 31 #include "vm/log.h" |
| 32 #include "vm/longjump.h" | 32 #include "vm/longjump.h" |
| 33 #include "vm/object.h" | 33 #include "vm/object.h" |
| 34 #include "vm/object_store.h" | 34 #include "vm/object_store.h" |
| 35 #include "vm/os.h" | 35 #include "vm/os.h" |
| 36 #include "vm/parser.h" | 36 #include "vm/parser.h" |
| 37 #include "vm/program_visitor.h" | 37 #include "vm/program_visitor.h" |
| 38 #include "vm/redundancy_elimination.h" | 38 #include "vm/redundancy_elimination.h" |
| 39 #include "vm/regexp_assembler.h" | 39 #include "vm/regexp_assembler.h" |
| 40 #include "vm/regexp_parser.h" | 40 #include "vm/regexp_parser.h" |
| 41 #include "vm/resolver.h" | 41 #include "vm/resolver.h" |
| 42 #include "vm/runtime_entry.h" |
| 42 #include "vm/symbols.h" | 43 #include "vm/symbols.h" |
| 43 #include "vm/tags.h" | 44 #include "vm/tags.h" |
| 44 #include "vm/timeline.h" | 45 #include "vm/timeline.h" |
| 45 #include "vm/timer.h" | 46 #include "vm/timer.h" |
| 46 #include "vm/type_table.h" | 47 #include "vm/type_table.h" |
| 47 #include "vm/version.h" | 48 #include "vm/version.h" |
| 48 #include "vm/json_parser.h" | |
| 49 | 49 |
| 50 namespace dart { | 50 namespace dart { |
| 51 | 51 |
| 52 #define T (thread()) | 52 #define T (thread()) |
| 53 #define I (isolate()) | 53 #define I (isolate()) |
| 54 #define Z (zone()) | 54 #define Z (zone()) |
| 55 | 55 |
| 56 | 56 |
| 57 DEFINE_FLAG(bool, print_unique_targets, false, "Print unique dynamic targets"); | 57 DEFINE_FLAG(bool, print_unique_targets, false, "Print unique dynamic targets"); |
| 58 DEFINE_FLAG(bool, trace_precompiler, false, "Trace precompiler."); | 58 DEFINE_FLAG(bool, trace_precompiler, false, "Trace precompiler."); |
| (...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3328 | 3328 |
| 3329 ASSERT(FLAG_precompiled_mode); | 3329 ASSERT(FLAG_precompiled_mode); |
| 3330 const bool optimized = function.IsOptimizable(); // False for natives. | 3330 const bool optimized = function.IsOptimizable(); // False for natives. |
| 3331 DartPrecompilationPipeline pipeline(zone, field_type_map); | 3331 DartPrecompilationPipeline pipeline(zone, field_type_map); |
| 3332 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); | 3332 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); |
| 3333 } | 3333 } |
| 3334 | 3334 |
| 3335 #endif // DART_PRECOMPILER | 3335 #endif // DART_PRECOMPILER |
| 3336 | 3336 |
| 3337 } // namespace dart | 3337 } // namespace dart |
| OLD | NEW |