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

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

Issue 10448079: Address review comments in commited cl (issue 10460002). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('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) 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/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/intermediate_language.h" 7 #include "vm/intermediate_language.h"
8 #include "vm/os.h" 8 #include "vm/os.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (i != 0) f->Print(", "); 227 if (i != 0) f->Print(", ");
228 ElementAt(i)->PrintTo(f); 228 ElementAt(i)->PrintTo(f);
229 } 229 }
230 if (ElementCount() > 0) f->Print(", "); 230 if (ElementCount() > 0) f->Print(", ");
231 element_type()->PrintTo(f); 231 element_type()->PrintTo(f);
232 } 232 }
233 233
234 234
235 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { 235 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const {
236 f->Print("%s", function().ToCString()); 236 f->Print("%s", function().ToCString());
237 if (type_arguments() != NULL) { 237 f->Print(", ");
238 f->Print(", "); 238 type_arguments()->PrintTo(f);
239 type_arguments()->PrintTo(f); 239 f->Print(", ");
240 } 240 receiver()->PrintTo(f);
241 } 241 }
242 242
243 243
244 void LoadVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { 244 void LoadVMFieldComp::PrintOperandsTo(BufferFormatter* f) const {
245 value()->PrintTo(f); 245 value()->PrintTo(f);
246 f->Print(", %d", offset_in_bytes()); 246 f->Print(", %d", offset_in_bytes());
247 } 247 }
248 248
249 249
250 void StoreVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { 250 void StoreVMFieldComp::PrintOperandsTo(BufferFormatter* f) const {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 f->Print(" %s ", DebugName()); 345 f->Print(" %s ", DebugName());
346 f->Print("if "); 346 f->Print("if ");
347 value()->PrintTo(f); 347 value()->PrintTo(f);
348 f->Print(" goto (%d, %d)", 348 f->Print(" goto (%d, %d)",
349 true_successor()->block_id(), 349 true_successor()->block_id(),
350 false_successor()->block_id()); 350 false_successor()->block_id());
351 } 351 }
352 352
353 353
354 } // namespace dart 354 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698