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

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

Issue 2427673004: [intrinsics] Nuke %HasCachedArrayIndex and %GetCachedArrayIndex. (Closed)
Patch Set: Created 4 years, 2 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') | src/x64/macro-assembler-x64.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 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 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 } 2204 }
2205 2205
2206 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) { 2206 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) {
2207 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); 2207 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond);
2208 } 2208 }
2209 2209
2210 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { 2210 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) {
2211 return has_frame_ || !stub->SometimesSetsUpAFrame(); 2211 return has_frame_ || !stub->SometimesSetsUpAFrame();
2212 } 2212 }
2213 2213
2214 void MacroAssembler::IndexFromHash(Register hash, Register index) {
2215 // If the hash field contains an array index pick it out. The assert checks
2216 // that the constants for the maximum number of digits for an array index
2217 // cached in the hash field and the number of bits reserved for it does not
2218 // conflict.
2219 DCHECK(TenToThe(String::kMaxCachedArrayIndexLength) <
2220 (1 << String::kArrayIndexValueBits));
2221 DecodeFieldToSmi<String::ArrayIndexValueBits>(index, hash);
2222 }
2223
2224 void MacroAssembler::TestDoubleIsInt32(DoubleRegister double_input, 2214 void MacroAssembler::TestDoubleIsInt32(DoubleRegister double_input,
2225 Register scratch1, Register scratch2, 2215 Register scratch1, Register scratch2,
2226 DoubleRegister double_scratch) { 2216 DoubleRegister double_scratch) {
2227 TryDoubleToInt32Exact(scratch1, double_input, scratch2, double_scratch); 2217 TryDoubleToInt32Exact(scratch1, double_input, scratch2, double_scratch);
2228 } 2218 }
2229 2219
2230 void MacroAssembler::TestDoubleIsMinusZero(DoubleRegister input, 2220 void MacroAssembler::TestDoubleIsMinusZero(DoubleRegister input,
2231 Register scratch1, 2221 Register scratch1,
2232 Register scratch2) { 2222 Register scratch2) {
2233 lgdr(scratch1, input); 2223 lgdr(scratch1, input);
(...skipping 3208 matching lines...) Expand 10 before | Expand all | Expand 10 after
5442 } 5432 }
5443 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5433 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5444 ExtractBit(r0, dividend, 31); 5434 ExtractBit(r0, dividend, 31);
5445 AddP(result, r0); 5435 AddP(result, r0);
5446 } 5436 }
5447 5437
5448 } // namespace internal 5438 } // namespace internal
5449 } // namespace v8 5439 } // namespace v8
5450 5440
5451 #endif // V8_TARGET_ARCH_S390 5441 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698