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

Side by Side Diff: src/s390/macro-assembler-s390.cc

Issue 2072863003: S390: Enable unaligned accesses and character preloading in regexp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Change comment on load reverse 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 | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_S390 8 #if V8_TARGET_ARCH_S390
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 5060 matching lines...) Expand 10 before | Expand all | Expand 10 after
5071 if (use_RXform) { 5071 if (use_RXform) {
5072 l(dst, mem); 5072 l(dst, mem);
5073 } else if (use_RXYform) { 5073 } else if (use_RXYform) {
5074 ly(dst, mem); 5074 ly(dst, mem);
5075 } else { 5075 } else {
5076 ly(dst, MemOperand(base, scratch)); 5076 ly(dst, MemOperand(base, scratch));
5077 } 5077 }
5078 #endif 5078 #endif
5079 } 5079 }
5080 5080
5081 void MacroAssembler::LoadLogicalHalfWordP(Register dst, const MemOperand& mem) {
5082 #if V8_TARGET_ARCH_S390X
5083 llgh(dst, mem);
5084 #else
5085 llh(dst, mem);
5086 #endif
5087 }
5088
5089 void MacroAssembler::LoadLogicalHalfWordP(Register dst, Register src) {
5090 #if V8_TARGET_ARCH_S390X
5091 llghr(dst, src);
5092 #else
5093 llhr(dst, src);
5094 #endif
5095 }
5096
5081 void MacroAssembler::LoadB(Register dst, const MemOperand& mem) { 5097 void MacroAssembler::LoadB(Register dst, const MemOperand& mem) {
5082 #if V8_TARGET_ARCH_S390X 5098 #if V8_TARGET_ARCH_S390X
5083 lgb(dst, mem); 5099 lgb(dst, mem);
5084 #else 5100 #else
5085 lb(dst, mem); 5101 lb(dst, mem);
5086 #endif 5102 #endif
5087 } 5103 }
5088 5104
5089 void MacroAssembler::LoadB(Register dst, Register src) { 5105 void MacroAssembler::LoadB(Register dst, Register src) {
5090 #if V8_TARGET_ARCH_S390X 5106 #if V8_TARGET_ARCH_S390X
5091 lgbr(dst, src); 5107 lgbr(dst, src);
5092 #else 5108 #else
5093 lbr(dst, src); 5109 lbr(dst, src);
5094 #endif 5110 #endif
5095 } 5111 }
5096 5112
5097 void MacroAssembler::LoadlB(Register dst, const MemOperand& mem) { 5113 void MacroAssembler::LoadlB(Register dst, const MemOperand& mem) {
5098 #if V8_TARGET_ARCH_S390X 5114 #if V8_TARGET_ARCH_S390X
5099 llgc(dst, mem); 5115 llgc(dst, mem);
5100 #else 5116 #else
5101 llc(dst, mem); 5117 llc(dst, mem);
5102 #endif 5118 #endif
5103 } 5119 }
5104 5120
5121 void MacroAssembler::LoadLogicalReversedWordP(Register dst,
5122 const MemOperand& mem) {
5123 lrv(dst, mem);
5124 LoadlW(dst, dst);
5125 }
5126
5127
5128 void MacroAssembler::LoadLogicalReversedHalfWordP(Register dst,
5129 const MemOperand& mem) {
5130 lrvh(dst, mem);
5131 LoadLogicalHalfWordP(dst, dst);
5132 }
5133
5134
5105 // Load And Test (Reg <- Reg) 5135 // Load And Test (Reg <- Reg)
5106 void MacroAssembler::LoadAndTest32(Register dst, Register src) { 5136 void MacroAssembler::LoadAndTest32(Register dst, Register src) {
5107 ltr(dst, src); 5137 ltr(dst, src);
5108 } 5138 }
5109 5139
5110 // Load And Test 5140 // Load And Test
5111 // (Register dst(ptr) = Register src (32 | 32->64)) 5141 // (Register dst(ptr) = Register src (32 | 32->64))
5112 // src is treated as a 32-bit signed integer, which is sign extended to 5142 // src is treated as a 32-bit signed integer, which is sign extended to
5113 // 64-bit if necessary. 5143 // 64-bit if necessary.
5114 void MacroAssembler::LoadAndTestP_ExtendSrc(Register dst, Register src) { 5144 void MacroAssembler::LoadAndTestP_ExtendSrc(Register dst, Register src) {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
5533 } 5563 }
5534 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5564 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5535 ExtractBit(r0, dividend, 31); 5565 ExtractBit(r0, dividend, 31);
5536 AddP(result, r0); 5566 AddP(result, r0);
5537 } 5567 }
5538 5568
5539 } // namespace internal 5569 } // namespace internal
5540 } // namespace v8 5570 } // namespace v8
5541 5571
5542 #endif // V8_TARGET_ARCH_S390 5572 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698