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

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

Issue 657993003: [turbofan] Fix GraphC1Visualizer::PrintType(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | no next file » | 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 " Ctx:"); 534 " Ctx:");
535 PrintInputs(&i, OperatorProperties::GetFrameStateInputCount(node->op()), 535 PrintInputs(&i, OperatorProperties::GetFrameStateInputCount(node->op()),
536 " FS:"); 536 " FS:");
537 PrintInputs(&i, OperatorProperties::GetEffectInputCount(node->op()), " Eff:"); 537 PrintInputs(&i, OperatorProperties::GetEffectInputCount(node->op()), " Eff:");
538 PrintInputs(&i, OperatorProperties::GetControlInputCount(node->op()), 538 PrintInputs(&i, OperatorProperties::GetControlInputCount(node->op()),
539 " Ctrl:"); 539 " Ctrl:");
540 } 540 }
541 541
542 542
543 void GraphC1Visualizer::PrintType(Node* node) { 543 void GraphC1Visualizer::PrintType(Node* node) {
544 Bounds bounds = NodeProperties::GetBounds(node); 544 if (NodeProperties::IsTyped(node)) {
545 os_ << " type:"; 545 Bounds bounds = NodeProperties::GetBounds(node);
546 bounds.upper->PrintTo(os_); 546 os_ << " type:";
547 os_ << ".."; 547 bounds.upper->PrintTo(os_);
548 bounds.lower->PrintTo(os_); 548 os_ << "..";
549 bounds.lower->PrintTo(os_);
550 }
549 } 551 }
550 552
551 553
552 void GraphC1Visualizer::PrintSchedule(const char* phase, 554 void GraphC1Visualizer::PrintSchedule(const char* phase,
553 const Schedule* schedule, 555 const Schedule* schedule,
554 const SourcePositionTable* positions, 556 const SourcePositionTable* positions,
555 const InstructionSequence* instructions) { 557 const InstructionSequence* instructions) {
556 Tag tag(this, "cfg"); 558 Tag tag(this, "cfg");
557 PrintStringProperty("name", phase); 559 PrintStringProperty("name", phase);
558 const BasicBlockVector* rpo = schedule->rpo_order(); 560 const BasicBlockVector* rpo = schedule->rpo_order();
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 779
778 780
779 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) { 781 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) {
780 Zone tmp_zone(ac.allocator_->code()->zone()->isolate()); 782 Zone tmp_zone(ac.allocator_->code()->zone()->isolate());
781 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_); 783 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_);
782 return os; 784 return os;
783 } 785 }
784 } 786 }
785 } 787 }
786 } // namespace v8::internal::compiler 788 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698