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

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

Issue 2668763005: s390: fix shift operand overflow (Closed)
Patch Set: Created 3 years, 10 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-selector-s390.cc » ('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/compilation-info.h" 7 #include "src/compilation-info.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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 ASSEMBLE_BIN_OP(xrk, Xor, xilf); 1250 ASSEMBLE_BIN_OP(xrk, Xor, xilf);
1251 } else { 1251 } else {
1252 ASSEMBLE_BIN_OP(xr, Xor, xilf); 1252 ASSEMBLE_BIN_OP(xr, Xor, xilf);
1253 } 1253 }
1254 break; 1254 break;
1255 case kS390_Xor64: 1255 case kS390_Xor64:
1256 ASSEMBLE_BINOP(XorP); 1256 ASSEMBLE_BINOP(XorP);
1257 break; 1257 break;
1258 case kS390_ShiftLeft32: 1258 case kS390_ShiftLeft32:
1259 if (CpuFeatures::IsSupported(DISTINCT_OPS)) { 1259 if (CpuFeatures::IsSupported(DISTINCT_OPS)) {
1260 AssembleBinOp(i, masm(), instr, &MacroAssembler::sllk, 1260 AssembleBinOp(i, masm(), instr, &MacroAssembler::ShiftLeft,
1261 &MacroAssembler::sllk); 1261 &MacroAssembler::ShiftLeft);
1262 } else { 1262 } else {
1263 AssembleBinOp(i, masm(), instr, &MacroAssembler::sll, 1263 AssembleBinOp(i, masm(), instr, &MacroAssembler::sll,
1264 &MacroAssembler::sll); 1264 &MacroAssembler::sll);
1265 } 1265 }
1266 break; 1266 break;
1267 #if V8_TARGET_ARCH_S390X 1267 #if V8_TARGET_ARCH_S390X
1268 case kS390_ShiftLeft64: 1268 case kS390_ShiftLeft64:
1269 ASSEMBLE_BINOP(sllg); 1269 ASSEMBLE_BINOP(sllg);
1270 break; 1270 break;
1271 #endif 1271 #endif
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 padding_size -= 2; 2757 padding_size -= 2;
2758 } 2758 }
2759 } 2759 }
2760 } 2760 }
2761 2761
2762 #undef __ 2762 #undef __
2763 2763
2764 } // namespace compiler 2764 } // namespace compiler
2765 } // namespace internal 2765 } // namespace internal
2766 } // namespace v8 2766 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698