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

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

Issue 1103533002: [turbofan] remove hint aliasing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | src/compiler/pipeline.cc » ('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/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 os_ << " \"stack:" << index << "\""; 743 os_ << " \"stack:" << index << "\"";
744 } 744 }
745 } 745 }
746 } 746 }
747 int parent_index = -1; 747 int parent_index = -1;
748 if (range->IsChild()) { 748 if (range->IsChild()) {
749 parent_index = range->parent()->id(); 749 parent_index = range->parent()->id();
750 } else { 750 } else {
751 parent_index = range->id(); 751 parent_index = range->id();
752 } 752 }
753 InstructionOperand* op = range->FirstHint(); 753 os_ << " " << parent_index;
754 int hint_index = -1;
755 if (op != NULL && op->IsUnallocated()) {
756 hint_index = UnallocatedOperand::cast(op)->virtual_register();
757 }
758 os_ << " " << parent_index << " " << hint_index;
759 for (auto interval = range->first_interval(); interval != nullptr; 754 for (auto interval = range->first_interval(); interval != nullptr;
760 interval = interval->next()) { 755 interval = interval->next()) {
761 os_ << " [" << interval->start().value() << ", " 756 os_ << " [" << interval->start().value() << ", "
762 << interval->end().value() << "["; 757 << interval->end().value() << "[";
763 } 758 }
764 759
765 UsePosition* current_pos = range->first_pos(); 760 UsePosition* current_pos = range->first_pos();
766 while (current_pos != NULL) { 761 while (current_pos != NULL) {
767 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) { 762 if (current_pos->RegisterIsBeneficial() || FLAG_trace_all_uses) {
768 os_ << " " << current_pos->pos().value() << " M"; 763 os_ << " " << current_pos->pos().value() << " M";
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); 824 os << "#" << SafeId(i) << ":" << SafeMnemonic(i);
830 } 825 }
831 os << ")" << std::endl; 826 os << ")" << std::endl;
832 } 827 }
833 } 828 }
834 return os; 829 return os;
835 } 830 }
836 } 831 }
837 } 832 }
838 } // namespace v8::internal::compiler 833 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698