| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/locations.h" | 5 #include "vm/locations.h" |
| 6 | 6 |
| 7 #include "vm/il_printer.h" | 7 #include "vm/il_printer.h" |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/flow_graph_compiler.h" | 9 #include "vm/flow_graph_compiler.h" |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 case kUnallocated: | 71 case kUnallocated: |
| 72 switch (policy()) { | 72 switch (policy()) { |
| 73 case kAny: | 73 case kAny: |
| 74 return "A"; | 74 return "A"; |
| 75 case kPrefersRegister: | 75 case kPrefersRegister: |
| 76 return "P"; | 76 return "P"; |
| 77 case kRequiresRegister: | 77 case kRequiresRegister: |
| 78 return "R"; | 78 return "R"; |
| 79 case kRequiresXmmRegister: | 79 case kRequiresXmmRegister: |
| 80 return "DR"; | 80 return "DR"; |
| 81 case kWritableRegister: |
| 82 return "WR"; |
| 81 case kSameAsFirstInput: | 83 case kSameAsFirstInput: |
| 82 return "0"; | 84 return "0"; |
| 83 } | 85 } |
| 84 UNREACHABLE(); | 86 UNREACHABLE(); |
| 85 default: | 87 default: |
| 86 ASSERT(IsConstant()); | 88 ASSERT(IsConstant()); |
| 87 return "C"; | 89 return "C"; |
| 88 } | 90 } |
| 89 return "?"; | 91 return "?"; |
| 90 } | 92 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 133 |
| 132 if (!out().IsInvalid()) { | 134 if (!out().IsInvalid()) { |
| 133 f->Print(" => "); | 135 f->Print(" => "); |
| 134 out().PrintTo(f); | 136 out().PrintTo(f); |
| 135 } | 137 } |
| 136 | 138 |
| 137 if (always_calls()) f->Print(" C"); | 139 if (always_calls()) f->Print(" C"); |
| 138 } | 140 } |
| 139 | 141 |
| 140 } // namespace dart | 142 } // namespace dart |
| OLD | NEW |