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/locations.h" | 5 #include "vm/locations.h" |
6 | 6 |
7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
8 #include "vm/il_printer.h" | 8 #include "vm/il_printer.h" |
9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
10 #include "vm/flow_graph_compiler.h" | 10 #include "vm/flow_graph_compiler.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 default: | 138 default: |
139 ASSERT(IsConstant()); | 139 ASSERT(IsConstant()); |
140 return "C"; | 140 return "C"; |
141 } | 141 } |
142 return "?"; | 142 return "?"; |
143 } | 143 } |
144 | 144 |
145 | 145 |
146 void Location::PrintTo(BufferFormatter* f) const { | 146 void Location::PrintTo(BufferFormatter* f) const { |
147 if (kind() == kStackSlot) { | 147 if (kind() == kStackSlot) { |
148 f->Print("S%+"Pd"", stack_index()); | 148 f->Print("S%+" Pd "", stack_index()); |
149 } else if (kind() == kDoubleStackSlot) { | 149 } else if (kind() == kDoubleStackSlot) { |
150 f->Print("DS%+"Pd"", stack_index()); | 150 f->Print("DS%+" Pd "", stack_index()); |
151 } else { | 151 } else { |
152 f->Print("%s", Name()); | 152 f->Print("%s", Name()); |
153 } | 153 } |
154 } | 154 } |
155 | 155 |
156 | 156 |
157 void Location::Print() const { | 157 void Location::Print() const { |
158 if (kind() == kStackSlot) { | 158 if (kind() == kStackSlot) { |
159 OS::Print("S%+"Pd"", stack_index()); | 159 OS::Print("S%+" Pd "", stack_index()); |
160 } else { | 160 } else { |
161 OS::Print("%s", Name()); | 161 OS::Print("%s", Name()); |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 | 165 |
166 void LocationSummary::PrintTo(BufferFormatter* f) const { | 166 void LocationSummary::PrintTo(BufferFormatter* f) const { |
167 if (input_count() > 0) { | 167 if (input_count() > 0) { |
168 f->Print(" ("); | 168 f->Print(" ("); |
169 for (intptr_t i = 0; i < input_count(); i++) { | 169 for (intptr_t i = 0; i < input_count(); i++) { |
(...skipping 14 matching lines...) Expand all Loading... |
184 | 184 |
185 if (!out().IsInvalid()) { | 185 if (!out().IsInvalid()) { |
186 f->Print(" => "); | 186 f->Print(" => "); |
187 out().PrintTo(f); | 187 out().PrintTo(f); |
188 } | 188 } |
189 | 189 |
190 if (always_calls()) f->Print(" C"); | 190 if (always_calls()) f->Print(" C"); |
191 } | 191 } |
192 | 192 |
193 } // namespace dart | 193 } // namespace dart |
OLD | NEW |