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

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

Issue 793323002: [turbofan] update SpillRange to use ZoneVector (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/register-allocator.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/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 int assigned_reg = op->index(); 718 int assigned_reg = op->index();
719 if (op->IsDoubleRegister()) { 719 if (op->IsDoubleRegister()) {
720 os_ << " \"" << DoubleRegister::AllocationIndexToString(assigned_reg) 720 os_ << " \"" << DoubleRegister::AllocationIndexToString(assigned_reg)
721 << "\""; 721 << "\"";
722 } else { 722 } else {
723 DCHECK(op->IsRegister()); 723 DCHECK(op->IsRegister());
724 os_ << " \"" << Register::AllocationIndexToString(assigned_reg) << "\""; 724 os_ << " \"" << Register::AllocationIndexToString(assigned_reg) << "\"";
725 } 725 }
726 } else if (range->IsSpilled()) { 726 } else if (range->IsSpilled()) {
727 int index = -1; 727 int index = -1;
728 if (range->TopLevel()->GetSpillRange() != nullptr && 728 if (range->TopLevel()->HasSpillRange()) {
729 range->TopLevel()->GetSpillRange()->id() != -1) { 729 index = kMaxInt; // This hasn't been set yet.
730 index = range->TopLevel()->GetSpillRange()->id();
731 } else { 730 } else {
732 index = range->TopLevel()->GetSpillOperand()->index(); 731 index = range->TopLevel()->GetSpillOperand()->index();
733 } 732 }
734 if (range->TopLevel()->Kind() == DOUBLE_REGISTERS) { 733 if (range->TopLevel()->Kind() == DOUBLE_REGISTERS) {
735 os_ << " \"double_stack:" << index << "\""; 734 os_ << " \"double_stack:" << index << "\"";
736 } else if (range->TopLevel()->Kind() == GENERAL_REGISTERS) { 735 } else if (range->TopLevel()->Kind() == GENERAL_REGISTERS) {
737 os_ << " \"stack:" << index << "\""; 736 os_ << " \"stack:" << index << "\"";
738 } else { 737 } else {
739 os_ << " \"const(nostack):" << index << "\""; 738 os_ << " \"const(nostack):" << index << "\"";
740 } 739 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); 823 os << "#" << SafeId(i) << ":" << SafeMnemonic(i);
825 } 824 }
826 os << ")" << std::endl; 825 os << ")" << std::endl;
827 } 826 }
828 } 827 }
829 return os; 828 return os;
830 } 829 }
831 } 830 }
832 } 831 }
833 } // namespace v8::internal::compiler 832 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698