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

Side by Side Diff: src/compiler/register-allocator.cc

Issue 2017733002: Turbofan: Rename UnallocatedOperand policies from '*DOUBLE*' to '*FP*'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 6 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/instruction-selector-impl.h ('k') | src/compiler/register-allocator-verifier.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/linkage.h" 6 #include "src/compiler/linkage.h"
7 #include "src/compiler/register-allocator.h" 7 #include "src/compiler/register-allocator.h"
8 #include "src/string-stream.h" 8 #include "src/string-stream.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 if (virtual_register != InstructionOperand::kInvalidVirtualRegister) { 1611 if (virtual_register != InstructionOperand::kInvalidVirtualRegister) {
1612 rep = data()->RepresentationFor(virtual_register); 1612 rep = data()->RepresentationFor(virtual_register);
1613 } 1613 }
1614 if (operand->HasFixedSlotPolicy()) { 1614 if (operand->HasFixedSlotPolicy()) {
1615 allocated = AllocatedOperand(AllocatedOperand::STACK_SLOT, rep, 1615 allocated = AllocatedOperand(AllocatedOperand::STACK_SLOT, rep,
1616 operand->fixed_slot_index()); 1616 operand->fixed_slot_index());
1617 } else if (operand->HasFixedRegisterPolicy()) { 1617 } else if (operand->HasFixedRegisterPolicy()) {
1618 DCHECK(!IsFloatingPoint(rep)); 1618 DCHECK(!IsFloatingPoint(rep));
1619 allocated = AllocatedOperand(AllocatedOperand::REGISTER, rep, 1619 allocated = AllocatedOperand(AllocatedOperand::REGISTER, rep,
1620 operand->fixed_register_index()); 1620 operand->fixed_register_index());
1621 } else if (operand->HasFixedDoubleRegisterPolicy()) { 1621 } else if (operand->HasFixedFPRegisterPolicy()) {
1622 DCHECK(IsFloatingPoint(rep)); 1622 DCHECK(IsFloatingPoint(rep));
1623 DCHECK_NE(InstructionOperand::kInvalidVirtualRegister, virtual_register); 1623 DCHECK_NE(InstructionOperand::kInvalidVirtualRegister, virtual_register);
1624 allocated = AllocatedOperand(AllocatedOperand::REGISTER, rep, 1624 allocated = AllocatedOperand(AllocatedOperand::REGISTER, rep,
1625 operand->fixed_register_index()); 1625 operand->fixed_register_index());
1626 } else { 1626 } else {
1627 UNREACHABLE(); 1627 UNREACHABLE();
1628 } 1628 }
1629 InstructionOperand::ReplaceWith(operand, &allocated); 1629 InstructionOperand::ReplaceWith(operand, &allocated);
1630 if (is_tagged) { 1630 if (is_tagged) {
1631 TRACE("Fixed reg is tagged at %d\n", pos); 1631 TRACE("Fixed reg is tagged at %d\n", pos);
(...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after
3657 } 3657 }
3658 } 3658 }
3659 } 3659 }
3660 } 3660 }
3661 } 3661 }
3662 3662
3663 3663
3664 } // namespace compiler 3664 } // namespace compiler
3665 } // namespace internal 3665 } // namespace internal
3666 } // namespace v8 3666 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/register-allocator-verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698