| 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/ast/scopes.h" | 7 #include "src/ast/scopes.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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 #endif | 962 #endif |
| 963 case kPPC_ShiftRightAlg32: | 963 case kPPC_ShiftRightAlg32: |
| 964 ASSEMBLE_BINOP_INT_RC(sraw, srawi); | 964 ASSEMBLE_BINOP_INT_RC(sraw, srawi); |
| 965 break; | 965 break; |
| 966 #if V8_TARGET_ARCH_PPC64 | 966 #if V8_TARGET_ARCH_PPC64 |
| 967 case kPPC_ShiftRightAlg64: | 967 case kPPC_ShiftRightAlg64: |
| 968 ASSEMBLE_BINOP_INT_RC(srad, sradi); | 968 ASSEMBLE_BINOP_INT_RC(srad, sradi); |
| 969 break; | 969 break; |
| 970 #endif | 970 #endif |
| 971 #if !V8_TARGET_ARCH_PPC64 | 971 #if !V8_TARGET_ARCH_PPC64 |
| 972 case kPPC_AddPair: |
| 973 // i.InputRegister(0) ... left low word. |
| 974 // i.InputRegister(1) ... left high word. |
| 975 // i.InputRegister(2) ... right low word. |
| 976 // i.InputRegister(3) ... right high word. |
| 977 __ addc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2)); |
| 978 __ adde(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3)); |
| 979 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 980 break; |
| 972 case kPPC_ShiftLeftPair: | 981 case kPPC_ShiftLeftPair: |
| 973 if (instr->InputAt(2)->IsImmediate()) { | 982 if (instr->InputAt(2)->IsImmediate()) { |
| 974 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 983 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
| 975 i.InputRegister(0), i.InputRegister(1), | 984 i.InputRegister(0), i.InputRegister(1), |
| 976 i.InputInt32(2)); | 985 i.InputInt32(2)); |
| 977 } else { | 986 } else { |
| 978 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 987 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
| 979 i.InputRegister(0), i.InputRegister(1), kScratchReg, | 988 i.InputRegister(0), i.InputRegister(1), kScratchReg, |
| 980 i.InputRegister(2)); | 989 i.InputRegister(2)); |
| 981 } | 990 } |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 padding_size -= v8::internal::Assembler::kInstrSize; | 1998 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1990 } | 1999 } |
| 1991 } | 2000 } |
| 1992 } | 2001 } |
| 1993 | 2002 |
| 1994 #undef __ | 2003 #undef __ |
| 1995 | 2004 |
| 1996 } // namespace compiler | 2005 } // namespace compiler |
| 1997 } // namespace internal | 2006 } // namespace internal |
| 1998 } // namespace v8 | 2007 } // namespace v8 |
| OLD | NEW |