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

Side by Side Diff: src/compiler/graph-visualizer.cc

Issue 642883003: [turbofan] Add support for deferred code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add cctest Created 6 years, 1 month 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 | « src/compiler/common-operator.cc ('k') | src/compiler/instruction.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/graph-visualizer.h" 5 #include "src/compiler/graph-visualizer.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 9
10 #include "src/compiler/generic-algorithm.h" 10 #include "src/compiler/generic-algorithm.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 const Schedule* schedule, 555 const Schedule* schedule,
556 const SourcePositionTable* positions, 556 const SourcePositionTable* positions,
557 const InstructionSequence* instructions) { 557 const InstructionSequence* instructions) {
558 Tag tag(this, "cfg"); 558 Tag tag(this, "cfg");
559 PrintStringProperty("name", phase); 559 PrintStringProperty("name", phase);
560 const BasicBlockVector* rpo = schedule->rpo_order(); 560 const BasicBlockVector* rpo = schedule->rpo_order();
561 for (size_t i = 0; i < rpo->size(); i++) { 561 for (size_t i = 0; i < rpo->size(); i++) {
562 BasicBlock* current = (*rpo)[i]; 562 BasicBlock* current = (*rpo)[i];
563 Tag block_tag(this, "block"); 563 Tag block_tag(this, "block");
564 PrintBlockProperty("name", current->id()); 564 PrintBlockProperty("name", current->id());
565 PrintStringProperty("deferred", current->deferred() ? "true" : "false");
565 PrintIntProperty("from_bci", -1); 566 PrintIntProperty("from_bci", -1);
566 PrintIntProperty("to_bci", -1); 567 PrintIntProperty("to_bci", -1);
567 568
568 PrintIndent(); 569 PrintIndent();
569 os_ << "predecessors"; 570 os_ << "predecessors";
570 for (BasicBlock::Predecessors::iterator j = current->predecessors_begin(); 571 for (BasicBlock::Predecessors::iterator j = current->predecessors_begin();
571 j != current->predecessors_end(); ++j) { 572 j != current->predecessors_end(); ++j) {
572 os_ << " \"B" << (*j)->id() << "\""; 573 os_ << " \"B" << (*j)->id() << "\"";
573 } 574 }
574 os_ << "\n"; 575 os_ << "\n";
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 782
782 783
783 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) { 784 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) {
784 Zone tmp_zone(ac.allocator_->code()->zone()->isolate()); 785 Zone tmp_zone(ac.allocator_->code()->zone()->isolate());
785 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_); 786 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_);
786 return os; 787 return os;
787 } 788 }
788 } 789 }
789 } 790 }
790 } // namespace v8::internal::compiler 791 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698