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/flow_graph_range_analysis.h" | 7 #include "vm/flow_graph_range_analysis.h" |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 #include "vm/os.h" | 9 #include "vm/os.h" |
10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 | 565 |
566 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { | 566 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { |
567 f->Print("%" Pd "", num_context_variables()); | 567 f->Print("%" Pd "", num_context_variables()); |
568 } | 568 } |
569 | 569 |
570 | 570 |
571 void AllocateUninitializedContextInstr::PrintOperandsTo( | 571 void AllocateUninitializedContextInstr::PrintOperandsTo( |
572 BufferFormatter* f) const { | 572 BufferFormatter* f) const { |
573 f->Print("%" Pd "", num_context_variables()); | 573 f->Print("%" Pd "", num_context_variables()); |
| 574 |
| 575 if (Identity().IsNotAliased()) { |
| 576 f->Print(" <not-aliased>"); |
| 577 } |
574 } | 578 } |
575 | 579 |
576 | 580 |
577 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { | 581 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { |
578 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind())); | 582 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind())); |
579 value()->PrintTo(f); | 583 value()->PrintTo(f); |
580 } | 584 } |
581 | 585 |
582 | 586 |
583 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { | 587 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 } | 1113 } |
1110 | 1114 |
1111 const char* Environment::ToCString() const { | 1115 const char* Environment::ToCString() const { |
1112 char buffer[1024]; | 1116 char buffer[1024]; |
1113 BufferFormatter bf(buffer, 1024); | 1117 BufferFormatter bf(buffer, 1024); |
1114 PrintTo(&bf); | 1118 PrintTo(&bf); |
1115 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1119 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
1116 } | 1120 } |
1117 | 1121 |
1118 } // namespace dart | 1122 } // namespace dart |
OLD | NEW |