| 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/flow_graph.h" | 8 #include "vm/flow_graph.h" |
| 9 #include "vm/flow_graph_compiler.h" | 9 #include "vm/flow_graph_compiler.h" |
| 10 #include "vm/il_printer.h" | 10 #include "vm/il_printer.h" |
| (...skipping 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2841 range->assigned_location().IsConstant()) { | 2841 range->assigned_location().IsConstant()) { |
| 2842 ASSERT(range->assigned_location().Equals(range->spill_slot())); | 2842 ASSERT(range->assigned_location().Equals(range->spill_slot())); |
| 2843 } else { | 2843 } else { |
| 2844 AddMoveAt(range->Start() + 1, range->spill_slot(), | 2844 AddMoveAt(range->Start() + 1, range->spill_slot(), |
| 2845 range->assigned_location()); | 2845 range->assigned_location()); |
| 2846 } | 2846 } |
| 2847 } | 2847 } |
| 2848 } | 2848 } |
| 2849 | 2849 |
| 2850 static Representation RepresentationForRange(Representation definition_rep) { | 2850 static Representation RepresentationForRange(Representation definition_rep) { |
| 2851 if (definition_rep == kUnboxedMint) { | 2851 if (definition_rep == kUnboxedInt64) { |
| 2852 // kUnboxedMint is split into two ranges, each of which are kUntagged. | 2852 // kUnboxedInt64 is split into two ranges, each of which are kUntagged. |
| 2853 return kUntagged; | 2853 return kUntagged; |
| 2854 } else if (definition_rep == kUnboxedUint32) { | 2854 } else if (definition_rep == kUnboxedUint32) { |
| 2855 // kUnboxedUint32 is untagged. | 2855 // kUnboxedUint32 is untagged. |
| 2856 return kUntagged; | 2856 return kUntagged; |
| 2857 } | 2857 } |
| 2858 return definition_rep; | 2858 return definition_rep; |
| 2859 } | 2859 } |
| 2860 | 2860 |
| 2861 void FlowGraphAllocator::CollectRepresentations() { | 2861 void FlowGraphAllocator::CollectRepresentations() { |
| 2862 // Parameters. | 2862 // Parameters. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3009 #ifndef PRODUCT | 3009 #ifndef PRODUCT |
| 3010 FlowGraphPrinter printer(flow_graph_, true); | 3010 FlowGraphPrinter printer(flow_graph_, true); |
| 3011 printer.PrintBlocks(); | 3011 printer.PrintBlocks(); |
| 3012 #endif | 3012 #endif |
| 3013 } | 3013 } |
| 3014 THR_Print("----------------------------------------------\n"); | 3014 THR_Print("----------------------------------------------\n"); |
| 3015 } | 3015 } |
| 3016 } | 3016 } |
| 3017 | 3017 |
| 3018 } // namespace dart | 3018 } // namespace dart |
| OLD | NEW |