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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 567 |
568 | 568 |
569 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 569 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
570 f->Print("%s, ", String::Handle(field().name()).ToCString()); | 570 f->Print("%s, ", String::Handle(field().name()).ToCString()); |
571 value()->PrintTo(f); | 571 value()->PrintTo(f); |
572 } | 572 } |
573 | 573 |
574 | 574 |
575 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { | 575 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { |
576 value()->PrintTo(f); | 576 value()->PrintTo(f); |
577 f->Print(" IS %s", String::Handle(type().Name()).ToCString()); | 577 f->Print(" %s %s", negate_result() ? "ISNOT" : "IS", |
| 578 String::Handle(type().Name()).ToCString()); |
578 f->Print(" type-arg("); | 579 f->Print(" type-arg("); |
579 instantiator_type_arguments()->PrintTo(f); | 580 instantiator_type_arguments()->PrintTo(f); |
580 f->Print(")"); | 581 f->Print(")"); |
581 } | 582 } |
582 | 583 |
583 | 584 |
584 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 585 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
585 f->Print("%s, ", Token::Str(kind())); | 586 f->Print("%s, ", Token::Str(kind())); |
586 left()->PrintTo(f); | 587 left()->PrintTo(f); |
587 f->Print(", "); | 588 f->Print(", "); |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 } | 1317 } |
1317 | 1318 |
1318 | 1319 |
1319 bool FlowGraphPrinter::ShouldPrint(const Function& function) { | 1320 bool FlowGraphPrinter::ShouldPrint(const Function& function) { |
1320 return false; | 1321 return false; |
1321 } | 1322 } |
1322 | 1323 |
1323 #endif // !PRODUCT | 1324 #endif // !PRODUCT |
1324 | 1325 |
1325 } // namespace dart | 1326 } // namespace dart |
OLD | NEW |