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

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

Issue 1959763002: [turbofan] Rename floating point register / slot methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Unfix arm64. Created 4 years, 7 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 | « src/compiler/gap-resolver.cc ('k') | src/compiler/ia32/code-generator-ia32.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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 529 }
530 } 530 }
531 531
532 void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type, 532 void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type,
533 int vreg) { 533 int vreg) {
534 if (range != nullptr && !range->IsEmpty()) { 534 if (range != nullptr && !range->IsEmpty()) {
535 PrintIndent(); 535 PrintIndent();
536 os_ << vreg << ":" << range->relative_id() << " " << type; 536 os_ << vreg << ":" << range->relative_id() << " " << type;
537 if (range->HasRegisterAssigned()) { 537 if (range->HasRegisterAssigned()) {
538 AllocatedOperand op = AllocatedOperand::cast(range->GetAssignedOperand()); 538 AllocatedOperand op = AllocatedOperand::cast(range->GetAssignedOperand());
539 if (op.IsDoubleRegister()) { 539 if (op.IsFPRegister()) {
540 DoubleRegister assigned_reg = op.GetDoubleRegister(); 540 DoubleRegister assigned_reg = op.GetDoubleRegister();
541 os_ << " \"" << assigned_reg.ToString() << "\""; 541 os_ << " \"" << assigned_reg.ToString() << "\"";
542 } else { 542 } else {
543 DCHECK(op.IsRegister()); 543 DCHECK(op.IsRegister());
544 Register assigned_reg = op.GetRegister(); 544 Register assigned_reg = op.GetRegister();
545 os_ << " \"" << assigned_reg.ToString() << "\""; 545 os_ << " \"" << assigned_reg.ToString() << "\"";
546 } 546 }
547 } else if (range->spilled()) { 547 } else if (range->spilled()) {
548 const TopLevelLiveRange* top = range->TopLevel(); 548 const TopLevelLiveRange* top = range->TopLevel();
549 int index = -1; 549 int index = -1;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 os << "]"; 647 os << "]";
648 } 648 }
649 os << std::endl; 649 os << std::endl;
650 } 650 }
651 } 651 }
652 return os; 652 return os;
653 } 653 }
654 } // namespace compiler 654 } // namespace compiler
655 } // namespace internal 655 } // namespace internal
656 } // namespace v8 656 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/gap-resolver.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698