OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |