OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 } else { | 855 } else { |
856 ASSEMBLE_BINOP(ShiftRightArith, ShiftRightArith); | 856 ASSEMBLE_BINOP(ShiftRightArith, ShiftRightArith); |
857 } | 857 } |
858 break; | 858 break; |
859 #if V8_TARGET_ARCH_S390X | 859 #if V8_TARGET_ARCH_S390X |
860 case kS390_ShiftRightArith64: | 860 case kS390_ShiftRightArith64: |
861 ASSEMBLE_BINOP(srag, srag); | 861 ASSEMBLE_BINOP(srag, srag); |
862 break; | 862 break; |
863 #endif | 863 #endif |
864 #if !V8_TARGET_ARCH_S390X | 864 #if !V8_TARGET_ARCH_S390X |
| 865 case kS390_AddPair: |
| 866 // i.InputRegister(0) ... left low word. |
| 867 // i.InputRegister(1) ... left high word. |
| 868 // i.InputRegister(2) ... right low word. |
| 869 // i.InputRegister(3) ... right high word. |
| 870 __ AddLogical32(i.OutputRegister(0), i.InputRegister(0), |
| 871 i.InputRegister(2)); |
| 872 __ AddLogicalWithCarry32(i.OutputRegister(1), i.InputRegister(1), |
| 873 i.InputRegister(3)); |
| 874 break; |
865 case kS390_ShiftLeftPair: | 875 case kS390_ShiftLeftPair: |
866 if (instr->InputAt(2)->IsImmediate()) { | 876 if (instr->InputAt(2)->IsImmediate()) { |
867 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 877 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
868 i.InputRegister(0), i.InputRegister(1), | 878 i.InputRegister(0), i.InputRegister(1), |
869 i.InputInt32(2)); | 879 i.InputInt32(2)); |
870 } else { | 880 } else { |
871 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 881 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
872 i.InputRegister(0), i.InputRegister(1), kScratchReg, | 882 i.InputRegister(0), i.InputRegister(1), kScratchReg, |
873 i.InputRegister(2)); | 883 i.InputRegister(2)); |
874 } | 884 } |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 padding_size -= 2; | 2048 padding_size -= 2; |
2039 } | 2049 } |
2040 } | 2050 } |
2041 } | 2051 } |
2042 | 2052 |
2043 #undef __ | 2053 #undef __ |
2044 | 2054 |
2045 } // namespace compiler | 2055 } // namespace compiler |
2046 } // namespace internal | 2056 } // namespace internal |
2047 } // namespace v8 | 2057 } // namespace v8 |
OLD | NEW |