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

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

Issue 2748073002: Revert "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(" 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
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
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