| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/flow_graph_allocator.h" | 5 #include "vm/flow_graph_allocator.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/il_printer.h" | 9 #include "vm/il_printer.h" |
| 10 #include "vm/flow_graph.h" | 10 #include "vm/flow_graph.h" |
| (...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2962 | 2962 |
| 2963 if (FLAG_print_ssa_liveranges) { | 2963 if (FLAG_print_ssa_liveranges) { |
| 2964 const Function& function = flow_graph_.function(); | 2964 const Function& function = flow_graph_.function(); |
| 2965 THR_Print("-- [before ssa allocator] ranges [%s] ---------\n", | 2965 THR_Print("-- [before ssa allocator] ranges [%s] ---------\n", |
| 2966 function.ToFullyQualifiedCString()); | 2966 function.ToFullyQualifiedCString()); |
| 2967 PrintLiveRanges(); | 2967 PrintLiveRanges(); |
| 2968 THR_Print("----------------------------------------------\n"); | 2968 THR_Print("----------------------------------------------\n"); |
| 2969 | 2969 |
| 2970 THR_Print("-- [before ssa allocator] ir [%s] -------------\n", | 2970 THR_Print("-- [before ssa allocator] ir [%s] -------------\n", |
| 2971 function.ToFullyQualifiedCString()); | 2971 function.ToFullyQualifiedCString()); |
| 2972 FlowGraphPrinter printer(flow_graph_, true); | 2972 if (FLAG_support_il_printer) { |
| 2973 printer.PrintBlocks(); | 2973 #ifndef PRODUCT |
| 2974 FlowGraphPrinter printer(flow_graph_, true); |
| 2975 printer.PrintBlocks(); |
| 2976 #endif |
| 2977 } |
| 2974 THR_Print("----------------------------------------------\n"); | 2978 THR_Print("----------------------------------------------\n"); |
| 2975 } | 2979 } |
| 2976 | 2980 |
| 2977 PrepareForAllocation(Location::kRegister, | 2981 PrepareForAllocation(Location::kRegister, |
| 2978 kNumberOfCpuRegisters, | 2982 kNumberOfCpuRegisters, |
| 2979 unallocated_cpu_, | 2983 unallocated_cpu_, |
| 2980 cpu_regs_, | 2984 cpu_regs_, |
| 2981 blocked_cpu_registers_); | 2985 blocked_cpu_registers_); |
| 2982 AllocateUnallocatedRanges(); | 2986 AllocateUnallocatedRanges(); |
| 2983 | 2987 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3003 if (FLAG_print_ssa_liveranges) { | 3007 if (FLAG_print_ssa_liveranges) { |
| 3004 const Function& function = flow_graph_.function(); | 3008 const Function& function = flow_graph_.function(); |
| 3005 | 3009 |
| 3006 THR_Print("-- [after ssa allocator] ranges [%s] ---------\n", | 3010 THR_Print("-- [after ssa allocator] ranges [%s] ---------\n", |
| 3007 function.ToFullyQualifiedCString()); | 3011 function.ToFullyQualifiedCString()); |
| 3008 PrintLiveRanges(); | 3012 PrintLiveRanges(); |
| 3009 THR_Print("----------------------------------------------\n"); | 3013 THR_Print("----------------------------------------------\n"); |
| 3010 | 3014 |
| 3011 THR_Print("-- [after ssa allocator] ir [%s] -------------\n", | 3015 THR_Print("-- [after ssa allocator] ir [%s] -------------\n", |
| 3012 function.ToFullyQualifiedCString()); | 3016 function.ToFullyQualifiedCString()); |
| 3013 FlowGraphPrinter printer(flow_graph_, true); | 3017 if (FLAG_support_il_printer) { |
| 3014 printer.PrintBlocks(); | 3018 #ifndef PRODUCT |
| 3019 FlowGraphPrinter printer(flow_graph_, true); |
| 3020 printer.PrintBlocks(); |
| 3021 #endif |
| 3022 } |
| 3015 THR_Print("----------------------------------------------\n"); | 3023 THR_Print("----------------------------------------------\n"); |
| 3016 } | 3024 } |
| 3017 } | 3025 } |
| 3018 | 3026 |
| 3019 | 3027 |
| 3020 } // namespace dart | 3028 } // namespace dart |
| OLD | NEW |