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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 case kPPC_TruncateDouble: | 1572 case kPPC_TruncateDouble: |
1573 ASSEMBLE_FLOAT_UNOP_RC(friz, MiscField::decode(instr->opcode())); | 1573 ASSEMBLE_FLOAT_UNOP_RC(friz, MiscField::decode(instr->opcode())); |
1574 break; | 1574 break; |
1575 case kPPC_RoundDouble: | 1575 case kPPC_RoundDouble: |
1576 ASSEMBLE_FLOAT_UNOP_RC(frin, MiscField::decode(instr->opcode())); | 1576 ASSEMBLE_FLOAT_UNOP_RC(frin, MiscField::decode(instr->opcode())); |
1577 break; | 1577 break; |
1578 case kPPC_NegDouble: | 1578 case kPPC_NegDouble: |
1579 ASSEMBLE_FLOAT_UNOP_RC(fneg, 0); | 1579 ASSEMBLE_FLOAT_UNOP_RC(fneg, 0); |
1580 break; | 1580 break; |
1581 case kPPC_Cntlz32: | 1581 case kPPC_Cntlz32: |
1582 __ cntlzw_(i.OutputRegister(), i.InputRegister(0)); | 1582 __ cntlzw(i.OutputRegister(), i.InputRegister(0)); |
1583 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1583 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1584 break; | 1584 break; |
1585 #if V8_TARGET_ARCH_PPC64 | 1585 #if V8_TARGET_ARCH_PPC64 |
1586 case kPPC_Cntlz64: | 1586 case kPPC_Cntlz64: |
1587 __ cntlzd_(i.OutputRegister(), i.InputRegister(0)); | 1587 __ cntlzd(i.OutputRegister(), i.InputRegister(0)); |
1588 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1588 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1589 break; | 1589 break; |
1590 #endif | 1590 #endif |
1591 case kPPC_Popcnt32: | 1591 case kPPC_Popcnt32: |
1592 __ popcntw(i.OutputRegister(), i.InputRegister(0)); | 1592 __ popcntw(i.OutputRegister(), i.InputRegister(0)); |
1593 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 1593 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1594 break; | 1594 break; |
1595 #if V8_TARGET_ARCH_PPC64 | 1595 #if V8_TARGET_ARCH_PPC64 |
1596 case kPPC_Popcnt64: | 1596 case kPPC_Popcnt64: |
1597 __ popcntd(i.OutputRegister(), i.InputRegister(0)); | 1597 __ popcntd(i.OutputRegister(), i.InputRegister(0)); |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 padding_size -= v8::internal::Assembler::kInstrSize; | 2596 padding_size -= v8::internal::Assembler::kInstrSize; |
2597 } | 2597 } |
2598 } | 2598 } |
2599 } | 2599 } |
2600 | 2600 |
2601 #undef __ | 2601 #undef __ |
2602 | 2602 |
2603 } // namespace compiler | 2603 } // namespace compiler |
2604 } // namespace internal | 2604 } // namespace internal |
2605 } // namespace v8 | 2605 } // namespace v8 |
OLD | NEW |