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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 #if V8_TARGET_ARCH_PPC64 | 991 #if V8_TARGET_ARCH_PPC64 |
992 case kPPC_Cntlz64: | 992 case kPPC_Cntlz64: |
993 __ cntlzd_(i.OutputRegister(), i.InputRegister(0)); | 993 __ cntlzd_(i.OutputRegister(), i.InputRegister(0)); |
994 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 994 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
995 break; | 995 break; |
996 #endif | 996 #endif |
997 case kPPC_Popcnt32: | 997 case kPPC_Popcnt32: |
998 __ popcntw(i.OutputRegister(), i.InputRegister(0)); | 998 __ popcntw(i.OutputRegister(), i.InputRegister(0)); |
999 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 999 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
1000 break; | 1000 break; |
| 1001 #if V8_TARGET_ARCH_PPC64 |
| 1002 case kPPC_Popcnt64: |
| 1003 __ popcntd(i.OutputRegister(), i.InputRegister(0)); |
| 1004 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 1005 break; |
| 1006 #endif |
1001 case kPPC_Cmp32: | 1007 case kPPC_Cmp32: |
1002 ASSEMBLE_COMPARE(cmpw, cmplw); | 1008 ASSEMBLE_COMPARE(cmpw, cmplw); |
1003 break; | 1009 break; |
1004 #if V8_TARGET_ARCH_PPC64 | 1010 #if V8_TARGET_ARCH_PPC64 |
1005 case kPPC_Cmp64: | 1011 case kPPC_Cmp64: |
1006 ASSEMBLE_COMPARE(cmp, cmpl); | 1012 ASSEMBLE_COMPARE(cmp, cmpl); |
1007 break; | 1013 break; |
1008 #endif | 1014 #endif |
1009 case kPPC_CmpDouble: | 1015 case kPPC_CmpDouble: |
1010 ASSEMBLE_FLOAT_COMPARE(fcmpu); | 1016 ASSEMBLE_FLOAT_COMPARE(fcmpu); |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 padding_size -= v8::internal::Assembler::kInstrSize; | 1705 padding_size -= v8::internal::Assembler::kInstrSize; |
1700 } | 1706 } |
1701 } | 1707 } |
1702 } | 1708 } |
1703 | 1709 |
1704 #undef __ | 1710 #undef __ |
1705 | 1711 |
1706 } // namespace compiler | 1712 } // namespace compiler |
1707 } // namespace internal | 1713 } // namespace internal |
1708 } // namespace v8 | 1714 } // namespace v8 |
OLD | NEW |