| 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 case kS390_AddPair: | 865 case kS390_AddPair: |
| 866 // i.InputRegister(0) ... left low word. | 866 // i.InputRegister(0) ... left low word. |
| 867 // i.InputRegister(1) ... left high word. | 867 // i.InputRegister(1) ... left high word. |
| 868 // i.InputRegister(2) ... right low word. | 868 // i.InputRegister(2) ... right low word. |
| 869 // i.InputRegister(3) ... right high word. | 869 // i.InputRegister(3) ... right high word. |
| 870 __ AddLogical32(i.OutputRegister(0), i.InputRegister(0), | 870 __ AddLogical32(i.OutputRegister(0), i.InputRegister(0), |
| 871 i.InputRegister(2)); | 871 i.InputRegister(2)); |
| 872 __ AddLogicalWithCarry32(i.OutputRegister(1), i.InputRegister(1), | 872 __ AddLogicalWithCarry32(i.OutputRegister(1), i.InputRegister(1), |
| 873 i.InputRegister(3)); | 873 i.InputRegister(3)); |
| 874 break; | 874 break; |
| 875 case kS390_SubPair: |
| 876 // i.InputRegister(0) ... left low word. |
| 877 // i.InputRegister(1) ... left high word. |
| 878 // i.InputRegister(2) ... right low word. |
| 879 // i.InputRegister(3) ... right high word. |
| 880 __ SubLogical32(i.OutputRegister(0), i.InputRegister(0), |
| 881 i.InputRegister(2)); |
| 882 __ SubLogicalWithBorrow32(i.OutputRegister(1), i.InputRegister(1), |
| 883 i.InputRegister(3)); |
| 884 break; |
| 875 case kS390_ShiftLeftPair: | 885 case kS390_ShiftLeftPair: |
| 876 if (instr->InputAt(2)->IsImmediate()) { | 886 if (instr->InputAt(2)->IsImmediate()) { |
| 877 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 887 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
| 878 i.InputRegister(0), i.InputRegister(1), | 888 i.InputRegister(0), i.InputRegister(1), |
| 879 i.InputInt32(2)); | 889 i.InputInt32(2)); |
| 880 } else { | 890 } else { |
| 881 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), | 891 __ ShiftLeftPair(i.OutputRegister(0), i.OutputRegister(1), |
| 882 i.InputRegister(0), i.InputRegister(1), kScratchReg, | 892 i.InputRegister(0), i.InputRegister(1), kScratchReg, |
| 883 i.InputRegister(2)); | 893 i.InputRegister(2)); |
| 884 } | 894 } |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2048 padding_size -= 2; | 2058 padding_size -= 2; |
| 2049 } | 2059 } |
| 2050 } | 2060 } |
| 2051 } | 2061 } |
| 2052 | 2062 |
| 2053 #undef __ | 2063 #undef __ |
| 2054 | 2064 |
| 2055 } // namespace compiler | 2065 } // namespace compiler |
| 2056 } // namespace internal | 2066 } // namespace internal |
| 2057 } // namespace v8 | 2067 } // namespace v8 |
| OLD | NEW |