Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 1807013002: S390: [wasm] Int64Lowering of Int64Add (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/s390/instruction-codes-s390.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/instruction-codes-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698