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

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

Issue 2748063003: Reland "VM: Simplify lowering of is-tests."" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.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/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
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(" %s %s", negate_result() ? "ISNOT" : "IS", 577 f->Print(" IS %s", String::Handle(type().Name()).ToCString());
578 String::Handle(type().Name()).ToCString());
579 f->Print(" type-arg("); 578 f->Print(" type-arg(");
580 instantiator_type_arguments()->PrintTo(f); 579 instantiator_type_arguments()->PrintTo(f);
581 f->Print(")"); 580 f->Print(")");
582 } 581 }
583 582
584 583
585 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { 584 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const {
586 f->Print("%s, ", Token::Str(kind())); 585 f->Print("%s, ", Token::Str(kind()));
587 left()->PrintTo(f); 586 left()->PrintTo(f);
588 f->Print(", "); 587 f->Print(", ");
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 } 1316 }
1318 1317
1319 1318
1320 bool FlowGraphPrinter::ShouldPrint(const Function& function) { 1319 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1321 return false; 1320 return false;
1322 } 1321 }
1323 1322
1324 #endif // !PRODUCT 1323 #endif // !PRODUCT
1325 1324
1326 } // namespace dart 1325 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698