OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |