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

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

Issue 23757016: Simplify compilation of relational operators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 instantiator_type_arguments()->PrintTo(f); 462 instantiator_type_arguments()->PrintTo(f);
463 f->Print(")"); 463 f->Print(")");
464 } 464 }
465 465
466 466
467 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { 467 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const {
468 f->Print("%s, ", Token::Str(kind())); 468 f->Print("%s, ", Token::Str(kind()));
469 left()->PrintTo(f); 469 left()->PrintTo(f);
470 f->Print(", "); 470 f->Print(", ");
471 right()->PrintTo(f); 471 right()->PrintTo(f);
472 if (HasICData()) {
473 PrintICData(f, *ic_data());
474 }
475 } 472 }
476 473
477 474
478 void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const { 475 void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
479 f->Print("%s", cls().ToCString()); 476 f->Print("%s", cls().ToCString());
480 for (intptr_t i = 0; i < ArgumentCount(); i++) { 477 for (intptr_t i = 0; i < ArgumentCount(); i++) {
481 f->Print(", "); 478 f->Print(", ");
482 PushArgumentAt(i)->value()->PrintTo(f); 479 PushArgumentAt(i)->value()->PrintTo(f);
483 } 480 }
484 } 481 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 f->Print(" ["); 978 f->Print(" [");
982 locations_[i].PrintTo(f); 979 locations_[i].PrintTo(f);
983 f->Print("]"); 980 f->Print("]");
984 } 981 }
985 } 982 }
986 f->Print(" }"); 983 f->Print(" }");
987 if (outer_ != NULL) outer_->PrintTo(f); 984 if (outer_ != NULL) outer_->PrintTo(f);
988 } 985 }
989 986
990 } // namespace dart 987 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698