Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Side by Side Diff: runtime/vm/locations.cc

Issue 23072026: fix cpp11 compile errors (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/megamorphic_cache_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/megamorphic_cache_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698