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

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

Issue 23219002: Add double unary operation (negate). (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
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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 value()->PrintTo(f); 776 value()->PrintTo(f);
777 } 777 }
778 778
779 779
780 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { 780 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
781 f->Print("%s, ", Token::Str(op_kind())); 781 f->Print("%s, ", Token::Str(op_kind()));
782 value()->PrintTo(f); 782 value()->PrintTo(f);
783 } 783 }
784 784
785 785
786 void UnaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const {
787 f->Print("%s, ", Token::Str(op_kind()));
788 value()->PrintTo(f);
789 }
790
791
786 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const { 792 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const {
787 value()->PrintTo(f); 793 value()->PrintTo(f);
788 PrintICData(f, unary_checks()); 794 PrintICData(f, unary_checks());
789 if (IsNullCheck()) { 795 if (IsNullCheck()) {
790 f->Print(" nullcheck"); 796 f->Print(" nullcheck");
791 } 797 }
792 } 798 }
793 799
794 800
795 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const { 801 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 f->Print(" ["); 969 f->Print(" [");
964 locations_[i].PrintTo(f); 970 locations_[i].PrintTo(f);
965 f->Print("]"); 971 f->Print("]");
966 } 972 }
967 } 973 }
968 f->Print(" }"); 974 f->Print(" }");
969 if (outer_ != NULL) outer_->PrintTo(f); 975 if (outer_ != NULL) outer_->PrintTo(f);
970 } 976 }
971 977
972 } // namespace dart 978 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698