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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 return "?"; | 153 return "?"; |
154 } | 154 } |
155 | 155 |
156 | 156 |
157 void Location::PrintTo(BufferFormatter* f) const { | 157 void Location::PrintTo(BufferFormatter* f) const { |
158 if (kind() == kStackSlot) { | 158 if (kind() == kStackSlot) { |
159 f->Print("S%+" Pd "", stack_index()); | 159 f->Print("S%+" Pd "", stack_index()); |
160 } else if (kind() == kDoubleStackSlot) { | 160 } else if (kind() == kDoubleStackSlot) { |
161 f->Print("DS%+" Pd "", stack_index()); | 161 f->Print("DS%+" Pd "", stack_index()); |
| 162 } else if (kind() == kQuadStackSlot) { |
| 163 f->Print("QS%+" Pd "", stack_index()); |
162 } else { | 164 } else { |
163 f->Print("%s", Name()); | 165 f->Print("%s", Name()); |
164 } | 166 } |
165 } | 167 } |
166 | 168 |
167 | 169 |
168 void Location::Print() const { | 170 void Location::Print() const { |
169 if (kind() == kStackSlot) { | 171 if (kind() == kStackSlot) { |
170 OS::Print("S%+" Pd "", stack_index()); | 172 OS::Print("S%+" Pd "", stack_index()); |
171 } else { | 173 } else { |
(...skipping 23 matching lines...) Expand all Loading... |
195 | 197 |
196 if (!out().IsInvalid()) { | 198 if (!out().IsInvalid()) { |
197 f->Print(" => "); | 199 f->Print(" => "); |
198 out().PrintTo(f); | 200 out().PrintTo(f); |
199 } | 201 } |
200 | 202 |
201 if (always_calls()) f->Print(" C"); | 203 if (always_calls()) f->Print(" C"); |
202 } | 204 } |
203 | 205 |
204 } // namespace dart | 206 } // namespace dart |
OLD | NEW |