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

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

Issue 1544603002: Turbofan: Rename register allocator double phase. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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 | « 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 const TopLevelLiveRange* top = range->TopLevel(); 548 const TopLevelLiveRange* top = range->TopLevel();
549 int index = -1; 549 int index = -1;
550 if (top->HasSpillRange()) { 550 if (top->HasSpillRange()) {
551 index = kMaxInt; // This hasn't been set yet. 551 index = kMaxInt; // This hasn't been set yet.
552 } else if (top->GetSpillOperand()->IsConstant()) { 552 } else if (top->GetSpillOperand()->IsConstant()) {
553 os_ << " \"const(nostack):" 553 os_ << " \"const(nostack):"
554 << ConstantOperand::cast(top->GetSpillOperand())->virtual_register() 554 << ConstantOperand::cast(top->GetSpillOperand())->virtual_register()
555 << "\""; 555 << "\"";
556 } else { 556 } else {
557 index = AllocatedOperand::cast(top->GetSpillOperand())->index(); 557 index = AllocatedOperand::cast(top->GetSpillOperand())->index();
558 if (top->kind() == DOUBLE_REGISTERS) { 558 if (top->kind() == FP_REGISTERS) {
559 os_ << " \"double_stack:" << index << "\""; 559 os_ << " \"double_stack:" << index << "\"";
560 } else if (top->kind() == GENERAL_REGISTERS) { 560 } else if (top->kind() == GENERAL_REGISTERS) {
561 os_ << " \"stack:" << index << "\""; 561 os_ << " \"stack:" << index << "\"";
562 } 562 }
563 } 563 }
564 } 564 }
565 565
566 os_ << " " << vreg; 566 os_ << " " << vreg;
567 for (const UseInterval* interval = range->first_interval(); 567 for (const UseInterval* interval = range->first_interval();
568 interval != nullptr; interval = interval->next()) { 568 interval != nullptr; interval = interval->next()) {
(...skipping 78 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 | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698