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

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

Issue 2213783002: s390: Remove OrComplement and andComplement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 case kArchStackSlot: { 982 case kArchStackSlot: {
983 FrameOffset offset = 983 FrameOffset offset =
984 frame_access_state()->GetFrameOffset(i.InputInt32(0)); 984 frame_access_state()->GetFrameOffset(i.InputInt32(0));
985 __ AddP(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, 985 __ AddP(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp,
986 Operand(offset.offset())); 986 Operand(offset.offset()));
987 break; 987 break;
988 } 988 }
989 case kS390_And: 989 case kS390_And:
990 ASSEMBLE_BINOP(AndP, AndP); 990 ASSEMBLE_BINOP(AndP, AndP);
991 break; 991 break;
992 case kS390_AndComplement:
993 __ NotP(i.InputRegister(1));
994 __ AndP(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
995 break;
996 case kS390_Or: 992 case kS390_Or:
997 ASSEMBLE_BINOP(OrP, OrP); 993 ASSEMBLE_BINOP(OrP, OrP);
998 break; 994 break;
999 case kS390_OrComplement:
1000 __ NotP(i.InputRegister(1));
1001 __ OrP(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
1002 break;
1003 case kS390_Xor: 995 case kS390_Xor:
1004 ASSEMBLE_BINOP(XorP, XorP); 996 ASSEMBLE_BINOP(XorP, XorP);
1005 break; 997 break;
1006 case kS390_ShiftLeft32: 998 case kS390_ShiftLeft32:
1007 if (HasRegisterInput(instr, 1)) { 999 if (HasRegisterInput(instr, 1)) {
1008 if (i.OutputRegister().is(i.InputRegister(1)) && 1000 if (i.OutputRegister().is(i.InputRegister(1)) &&
1009 !CpuFeatures::IsSupported(DISTINCT_OPS)) { 1001 !CpuFeatures::IsSupported(DISTINCT_OPS)) {
1010 __ LoadRR(kScratchReg, i.InputRegister(1)); 1002 __ LoadRR(kScratchReg, i.InputRegister(1));
1011 __ ShiftLeft(i.OutputRegister(), i.InputRegister(0), kScratchReg); 1003 __ ShiftLeft(i.OutputRegister(), i.InputRegister(0), kScratchReg);
1012 } else { 1004 } else {
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 padding_size -= 2; 2450 padding_size -= 2;
2459 } 2451 }
2460 } 2452 }
2461 } 2453 }
2462 2454
2463 #undef __ 2455 #undef __
2464 2456
2465 } // namespace compiler 2457 } // namespace compiler
2466 } // namespace internal 2458 } // namespace internal
2467 } // namespace v8 2459 } // 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