| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 f->Print("%s, ", type_args.ToCString()); | 568 f->Print("%s, ", type_args.ToCString()); |
| 569 instantiator()->PrintTo(f); | 569 instantiator()->PrintTo(f); |
| 570 } | 570 } |
| 571 | 571 |
| 572 | 572 |
| 573 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { | 573 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 574 f->Print("%" Pd "", num_context_variables()); | 574 f->Print("%" Pd "", num_context_variables()); |
| 575 } | 575 } |
| 576 | 576 |
| 577 | 577 |
| 578 void AllocateUninitializedContextInstr::PrintOperandsTo( |
| 579 BufferFormatter* f) const { |
| 580 f->Print("%" Pd "", num_context_variables()); |
| 581 } |
| 582 |
| 583 |
| 578 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { | 584 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 579 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind())); | 585 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind())); |
| 580 value()->PrintTo(f); | 586 value()->PrintTo(f); |
| 581 } | 587 } |
| 582 | 588 |
| 583 | 589 |
| 584 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { | 590 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 585 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); | 591 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); |
| 586 Definition::PrintOperandsTo(f); | 592 Definition::PrintOperandsTo(f); |
| 587 } | 593 } |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 } | 1093 } |
| 1088 | 1094 |
| 1089 const char* Environment::ToCString() const { | 1095 const char* Environment::ToCString() const { |
| 1090 char buffer[1024]; | 1096 char buffer[1024]; |
| 1091 BufferFormatter bf(buffer, 1024); | 1097 BufferFormatter bf(buffer, 1024); |
| 1092 PrintTo(&bf); | 1098 PrintTo(&bf); |
| 1093 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1099 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
| 1094 } | 1100 } |
| 1095 | 1101 |
| 1096 } // namespace dart | 1102 } // namespace dart |
| OLD | NEW |