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

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

Issue 10860007: Reland "Record the arguments for CreateArrayComp correctly as arguments.". (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/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 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 BufferFormatter* f) const { 311 BufferFormatter* f) const {
312 f->Print("%s", Class::Handle(constructor().Owner()).ToCString()); 312 f->Print("%s", Class::Handle(constructor().Owner()).ToCString());
313 for (intptr_t i = 0; i < InputCount(); i++) { 313 for (intptr_t i = 0; i < InputCount(); i++) {
314 f->Print(", "); 314 f->Print(", ");
315 InputAt(i)->PrintTo(f); 315 InputAt(i)->PrintTo(f);
316 } 316 }
317 } 317 }
318 318
319 319
320 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const { 320 void CreateArrayComp::PrintOperandsTo(BufferFormatter* f) const {
321 for (int i = 0; i < ElementCount(); ++i) { 321 for (int i = 0; i < ArgumentCount(); ++i) {
322 if (i != 0) f->Print(", "); 322 if (i != 0) f->Print(", ");
323 ElementAt(i)->PrintTo(f); 323 ArgumentAt(i)->value()->PrintTo(f);
324 } 324 }
325 if (ElementCount() > 0) f->Print(", "); 325 if (ArgumentCount() > 0) f->Print(", ");
326 element_type()->PrintTo(f); 326 element_type()->PrintTo(f);
327 } 327 }
328 328
329 329
330 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { 330 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const {
331 f->Print("%s", function().ToCString()); 331 f->Print("%s", function().ToCString());
332 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 332 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
333 if (i > 0) f->Print(", "); 333 if (i > 0) f->Print(", ");
334 ArgumentAt(i)->value()->PrintTo(f); 334 ArgumentAt(i)->value()->PrintTo(f);
335 } 335 }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { 807 if ((locations_ != NULL) && !locations_[i].IsInvalid()) {
808 f->Print(" ["); 808 f->Print(" [");
809 locations_[i].PrintTo(f); 809 locations_[i].PrintTo(f);
810 f->Print("]"); 810 f->Print("]");
811 } 811 }
812 } 812 }
813 f->Print(" }"); 813 f->Print(" }");
814 } 814 }
815 815
816 } // namespace dart 816 } // 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