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

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

Issue 215363004: Support for multiple register values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 value()->PrintTo(f); 566 value()->PrintTo(f);
567 } 567 }
568 568
569 569
570 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { 570 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const {
571 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); 571 f->Print("'%s', ", MergedMathInstr::KindToCString(kind()));
572 Definition::PrintOperandsTo(f); 572 Definition::PrintOperandsTo(f);
573 } 573 }
574 574
575 575
576 void ExtractNthOutputInstr::PrintOperandsTo(BufferFormatter* f) const {
577 f->Print("Extract %" Pd " from ", index());
578 Definition::PrintOperandsTo(f);
579 }
580
581
582 void MergedMath2Instr::PrintOperandsTo(BufferFormatter* f) const {
583 f->Print("'%s', ", MergedMath2Instr::KindToCString(kind()));
584 Definition::PrintOperandsTo(f);
585 }
586
587
576 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const { 588 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const {
577 Definition::PrintTo(f); 589 Definition::PrintTo(f);
578 f->Print(" %co", overflow_ ? '+' : '-'); 590 f->Print(" %co", overflow_ ? '+' : '-');
579 f->Print(" %ct", is_truncating() ? '+' : '-'); 591 f->Print(" %ct", is_truncating() ? '+' : '-');
580 } 592 }
581 593
582 594
583 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { 595 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
584 f->Print("%s, ", Token::Str(op_kind())); 596 f->Print("%s, ", Token::Str(op_kind()));
585 left()->PrintTo(f); 597 left()->PrintTo(f);
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 f->Print(" ["); 1050 f->Print(" [");
1039 locations_[i].PrintTo(f); 1051 locations_[i].PrintTo(f);
1040 f->Print("]"); 1052 f->Print("]");
1041 } 1053 }
1042 } 1054 }
1043 f->Print(" }"); 1055 f->Print(" }");
1044 if (outer_ != NULL) outer_->PrintTo(f); 1056 if (outer_ != NULL) outer_->PrintTo(f);
1045 } 1057 }
1046 1058
1047 } // namespace dart 1059 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698