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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 #if !V8_TARGET_ARCH_PPC64 | 971 #if !V8_TARGET_ARCH_PPC64 |
972 case kPPC_AddPair: | 972 case kPPC_AddPair: |
973 // i.InputRegister(0) ... left low word. | 973 // i.InputRegister(0) ... left low word. |
974 // i.InputRegister(1) ... left high word. | 974 // i.InputRegister(1) ... left high word. |
975 // i.InputRegister(2) ... right low word. | 975 // i.InputRegister(2) ... right low word. |
976 // i.InputRegister(3) ... right high word. | 976 // i.InputRegister(3) ... right high word. |
977 __ addc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2)); | 977 __ addc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2)); |
978 __ adde(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3)); | 978 __ adde(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3)); |
979 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 979 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
980 break; | 980 break; |
| 981 case kPPC_SubPair: |
| 982 // i.InputRegister(0) ... left low word. |
| 983 // i.InputRegister(1) ... left high word. |
| 984 // i.InputRegister(2) ... right low word. |
| 985 // i.InputRegister(3) ... right high word. |
| 986 __ subc(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2)); |
| 987 __ sube(i.OutputRegister(1), i.InputRegister(1), i.InputRegister(3)); |
| 988 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 989 break; |
981 case kPPC_ShiftLeftPair: | 990 case kPPC_ShiftLeftPair: |
982 if (instr->InputAt(2)->IsImmediate()) { | 991 if (instr->InputAt(2)->IsImmediate()) { |
983 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 992 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
984 i.InputRegister(0), i.InputRegister(1), | 993 i.InputRegister(0), i.InputRegister(1), |
985 i.InputInt32(2)); | 994 i.InputInt32(2)); |
986 } else { | 995 } else { |
987 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 996 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
988 i.InputRegister(0), i.InputRegister(1), kScratchReg, | 997 i.InputRegister(0), i.InputRegister(1), kScratchReg, |
989 i.InputRegister(2)); | 998 i.InputRegister(2)); |
990 } | 999 } |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1998 padding_size -= v8::internal::Assembler::kInstrSize; | 2007 padding_size -= v8::internal::Assembler::kInstrSize; |
1999 } | 2008 } |
2000 } | 2009 } |
2001 } | 2010 } |
2002 | 2011 |
2003 #undef __ | 2012 #undef __ |
2004 | 2013 |
2005 } // namespace compiler | 2014 } // namespace compiler |
2006 } // namespace internal | 2015 } // namespace internal |
2007 } // namespace v8 | 2016 } // namespace v8 |
OLD | NEW |