| 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" |
| 11 #include "vm/flow_graph_compiler.h" | 11 #include "vm/flow_graph_compiler.h" |
| 12 #include "vm/log.h" | 12 #include "vm/log.h" |
| 13 #include "vm/parser.h" | 13 #include "vm/parser.h" |
| 14 | 14 |
| 15 namespace dart { | 15 namespace dart { |
| 16 | 16 |
| 17 DEFINE_FLAG(bool, print_ssa_liveness, false, | |
| 18 "Print liveness for ssa variables."); | |
| 19 DEFINE_FLAG(bool, trace_ssa_allocator, false, | |
| 20 "Trace register allocation over SSA."); | |
| 21 DEFINE_FLAG(bool, print_ssa_liveranges, false, | |
| 22 "Print live ranges after allocation."); | |
| 23 | |
| 24 #if defined(DEBUG) | 17 #if defined(DEBUG) |
| 25 #define TRACE_ALLOC(statement) \ | 18 #define TRACE_ALLOC(statement) \ |
| 26 do { \ | 19 do { \ |
| 27 if (FLAG_trace_ssa_allocator) statement; \ | 20 if (FLAG_trace_ssa_allocator) statement; \ |
| 28 } while (0) | 21 } while (0) |
| 29 #else | 22 #else |
| 30 #define TRACE_ALLOC(statement) | 23 #define TRACE_ALLOC(statement) |
| 31 #endif | 24 #endif |
| 32 | 25 |
| 33 | 26 |
| (...skipping 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3019 FlowGraphPrinter printer(flow_graph_, true); | 3012 FlowGraphPrinter printer(flow_graph_, true); |
| 3020 printer.PrintBlocks(); | 3013 printer.PrintBlocks(); |
| 3021 #endif | 3014 #endif |
| 3022 } | 3015 } |
| 3023 THR_Print("----------------------------------------------\n"); | 3016 THR_Print("----------------------------------------------\n"); |
| 3024 } | 3017 } |
| 3025 } | 3018 } |
| 3026 | 3019 |
| 3027 | 3020 |
| 3028 } // namespace dart | 3021 } // namespace dart |
| OLD | NEW |