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

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

Issue 345563007: Add Uint32 representation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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_type_propagator.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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 right()->PrintTo(f); 855 right()->PrintTo(f);
856 } 856 }
857 857
858 858
859 void UnaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { 859 void UnaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const {
860 f->Print("%s, ", Token::Str(op_kind())); 860 f->Print("%s, ", Token::Str(op_kind()));
861 value()->PrintTo(f); 861 value()->PrintTo(f);
862 } 862 }
863 863
864 864
865 void BinaryUint32OpInstr::PrintOperandsTo(BufferFormatter* f) const {
866 f->Print("%s, ", Token::Str(op_kind()));
867 left()->PrintTo(f);
868 f->Print(", ");
869 right()->PrintTo(f);
870 }
871
872
873 void ShiftUint32OpInstr::PrintOperandsTo(BufferFormatter* f) const {
874 f->Print("%s, ", Token::Str(op_kind()));
875 left()->PrintTo(f);
876 f->Print(", ");
877 right()->PrintTo(f);
878 }
879
880
881 void UnaryUint32OpInstr::PrintOperandsTo(BufferFormatter* f) const {
882 f->Print("%s, ", Token::Str(op_kind()));
883 value()->PrintTo(f);
884 }
885
886
865 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { 887 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
866 f->Print("%s, ", Token::Str(op_kind())); 888 f->Print("%s, ", Token::Str(op_kind()));
867 value()->PrintTo(f); 889 value()->PrintTo(f);
868 } 890 }
869 891
870 892
871 void UnaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { 893 void UnaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const {
872 f->Print("%s, ", Token::Str(op_kind())); 894 f->Print("%s, ", Token::Str(op_kind()));
873 value()->PrintTo(f); 895 value()->PrintTo(f);
874 } 896 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 } 1083 }
1062 1084
1063 const char* Environment::ToCString() const { 1085 const char* Environment::ToCString() const {
1064 char buffer[1024]; 1086 char buffer[1024];
1065 BufferFormatter bf(buffer, 1024); 1087 BufferFormatter bf(buffer, 1024);
1066 PrintTo(&bf); 1088 PrintTo(&bf);
1067 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1089 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1068 } 1090 }
1069 1091
1070 } // namespace dart 1092 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698