| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |