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

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

Issue 11029002: Revert r13022 (revert inlining of methods with control flow), Review URL: https://codereview.chromi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_inliner.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/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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 Definition* def = defns[i]; 531 Definition* def = defns[i];
532 f->Print("\n "); 532 f->Print("\n ");
533 def->PrintTo(f); 533 def->PrintTo(f);
534 } 534 }
535 f->Print("\n}"); 535 f->Print("\n}");
536 } 536 }
537 } 537 }
538 538
539 539
540 void JoinEntryInstr::PrintTo(BufferFormatter* f) const { 540 void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
541 f->Print("B%"Pd"[join]", block_id()); 541 f->Print("B%"Pd"[join] pred(", block_id());
542 for (intptr_t i = 0; i < predecessors_.length(); ++i) {
543 if (i > 0) f->Print(", ");
544 f->Print("B%"Pd, predecessors_[i]->block_id());
545 }
546 f->Print(")");
542 if (phis_ != NULL) { 547 if (phis_ != NULL) {
543 f->Print(" {"); 548 f->Print(" {");
544 for (intptr_t i = 0; i < phis_->length(); ++i) { 549 for (intptr_t i = 0; i < phis_->length(); ++i) {
545 if ((*phis_)[i] == NULL) continue; 550 if ((*phis_)[i] == NULL) continue;
546 f->Print("\n "); 551 f->Print("\n ");
547 (*phis_)[i]->PrintTo(f); 552 (*phis_)[i]->PrintTo(f);
548 } 553 }
549 f->Print("\n}"); 554 f->Print("\n}");
550 } 555 }
551 if (HasParallelMove()) { 556 if (HasParallelMove()) {
552 f->Print(" "); 557 f->Print(" ");
553 parallel_move()->PrintTo(f); 558 parallel_move()->PrintTo(f);
554 } 559 }
555 } 560 }
556 561
557 562
558 void PhiInstr::PrintTo(BufferFormatter* f) const { 563 void PhiInstr::PrintTo(BufferFormatter* f) const {
559 f->Print("v%"Pd" <- phi(", ssa_temp_index()); 564 f->Print("v%"Pd" <- phi(", ssa_temp_index());
560 for (intptr_t i = 0; i < inputs_.length(); ++i) { 565 for (intptr_t i = 0; i < inputs_.length(); ++i) {
561 if (inputs_[i] != NULL) inputs_[i]->PrintTo(f); 566 if (inputs_[i] != NULL) inputs_[i]->PrintTo(f);
562 if (i < inputs_.length() - 1) f->Print(", "); 567 if (i < inputs_.length() - 1) f->Print(", ");
563 } 568 }
564 f->Print(")"); 569 f->Print(")");
565 PrintPropagatedType(f, *this); 570 PrintPropagatedType(f, *this);
571 if (is_alive()) {
572 f->Print(" alive");
573 } else {
574 f->Print(" dead");
575 }
566 if (range_ != NULL) { 576 if (range_ != NULL) {
567 f->Print(" "); 577 f->Print(" ");
568 range_->PrintTo(f); 578 range_->PrintTo(f);
569 } 579 }
570 } 580 }
571 581
572 582
573 void ParameterInstr::PrintOperandsTo(BufferFormatter* f) const { 583 void ParameterInstr::PrintOperandsTo(BufferFormatter* f) const {
574 f->Print("%"Pd, index()); 584 f->Print("%"Pd, index());
575 } 585 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 f->Print(" ["); 857 f->Print(" [");
848 locations_[i].PrintTo(f); 858 locations_[i].PrintTo(f);
849 f->Print("]"); 859 f->Print("]");
850 } 860 }
851 } 861 }
852 f->Print(" }"); 862 f->Print(" }");
853 if (outer_ != NULL) outer_->PrintTo(f); 863 if (outer_ != NULL) outer_->PrintTo(f);
854 } 864 }
855 865
856 } // namespace dart 866 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698