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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ASSERT(IsConstant()); | 70 ASSERT(IsConstant()); |
71 return "C"; | 71 return "C"; |
72 } | 72 } |
73 return "?"; | 73 return "?"; |
74 } | 74 } |
75 | 75 |
76 | 76 |
77 void Location::PrintTo(BufferFormatter* f) const { | 77 void Location::PrintTo(BufferFormatter* f) const { |
78 if (kind() == kStackSlot) { | 78 if (kind() == kStackSlot) { |
79 f->Print("S%+d", stack_index()); | 79 f->Print("S%+d", stack_index()); |
| 80 } else if (kind() == kDoubleStackSlot) { |
| 81 f->Print("DS%+d", stack_index()); |
80 } else { | 82 } else { |
81 f->Print("%s", Name()); | 83 f->Print("%s", Name()); |
82 } | 84 } |
83 } | 85 } |
84 | 86 |
85 | 87 |
86 void Location::Print() const { | 88 void Location::Print() const { |
87 if (kind() == kStackSlot) { | 89 if (kind() == kStackSlot) { |
88 OS::Print("S%+d", stack_index()); | 90 OS::Print("S%+d", stack_index()); |
89 } else { | 91 } else { |
(...skipping 23 matching lines...) Expand all Loading... |
113 | 115 |
114 if (!out().IsInvalid()) { | 116 if (!out().IsInvalid()) { |
115 f->Print(" => "); | 117 f->Print(" => "); |
116 out().PrintTo(f); | 118 out().PrintTo(f); |
117 } | 119 } |
118 | 120 |
119 if (always_calls()) f->Print(" C"); | 121 if (always_calls()) f->Print(" C"); |
120 } | 122 } |
121 | 123 |
122 } // namespace dart | 124 } // namespace dart |
OLD | NEW |