/external/chromium_org/v8/src/arm64/ |
H A D | macro-assembler-arm64.h | 236 // with a subsequent instruction that accepts a shift. The value moved into 238 // applied to it that will be subsequently undone by the shift applied in the 293 inline void Asr(const Register& rd, const Register& rn, unsigned shift); 440 inline void Lsl(const Register& rd, const Register& rn, unsigned shift); 442 inline void Lsr(const Register& rd, const Register& rn, unsigned shift); 450 inline void Movk(const Register& rd, uint64_t imm, int shift = -1); 464 inline void Ror(const Register& rd, const Register& rs, unsigned shift); 887 static const uint64_t shift = Field::kShift; local 889 Ubfx(dst, src, shift, setbits); 1878 // - The shift registe [all...] |
H A D | simulator-arm64.cc | 1880 int64_t shift = instr->ShiftMoveWide() * 16; local 1881 int64_t shifted_imm16 = instr->ImmMoveWide() << shift; 1896 new_xn_val = (prev_xn_val & ~(0xffffL << shift)) | shifted_imm16; 2050 unsigned shift = wreg(instr->Rm()); local 2052 shift &= kShiftAmountWRegMask; 2054 shift &= kShiftAmountXRegMask; 2056 result = ShiftOperand(reg<T>(instr->Rn()), shift_op, shift); 2073 // It assumes that a right shift on a signed integer is an arithmetic shift. 2550 // mantissa = (mantissa >> shift) 2584 int shift = highest_significant_bit - mbits; local [all...] |
/external/chromium_org/v8/src/base/ |
H A D | bits.h | 107 inline uint32_t RotateRight32(uint32_t value, uint32_t shift) { argument 108 if (shift == 0) return value; 109 return (value >> shift) | (value << (32 - shift)); 113 inline uint64_t RotateRight64(uint64_t value, uint64_t shift) { argument 114 if (shift == 0) return value; 115 return (value >> shift) | (value << (64 - shift));
|
H A D | division-by-constant.h | 19 : multiplier(m), shift(s), add(a) {} 23 unsigned shift; member in struct:v8::base::MagicNumbersForDivision 28 // Calculate the multiplier and shift for signed division via multiplication. 34 // Calculate the multiplier and shift for unsigned division via multiplication,
|
/external/chromium_org/v8/src/compiler/arm/ |
H A D | instruction-selector-arm-unittest.cc | 66 AddressingMode i_mode; // Operand2_R_<shift>_I 67 AddressingMode r_mode; // Operand2_R_<shift>_R 71 std::ostream& operator<<(std::ostream& os, const Shift& shift) { argument 72 return os << shift.constructor_name; 166 TRACED_FOREACH(Shift, shift, kShifts) { 170 (m.*shift.constructor)(m.Parameter(1), m.Parameter(2)))); 174 EXPECT_EQ(shift.r_mode, s[0]->addressing_mode()); 178 TRACED_FOREACH(Shift, shift, kShifts) { 181 (m.*shift.constructor)(m.Parameter(0), m.Parameter(1)), 186 EXPECT_EQ(shift 991 const Shift shift = GetParam(); local 1004 const Shift shift = GetParam(); local 1020 const Shift shift = GetParam(); local 1053 const Shift shift = GetParam(); local 1088 const Shift shift = GetParam(); local 1105 const Shift shift = GetParam(); local 1125 const Shift shift = GetParam(); local 1138 const Shift shift = GetParam(); local 1155 const Shift shift = GetParam(); local 1169 const Shift shift = GetParam(); local [all...] |
/external/chromium_org/v8/src/compiler/ |
H A D | machine-operator-reducer-unittest.cc | 450 Node* shift = Parameter(1); local 451 Node* shl = graph()->NewNode(machine()->Word32Shl(), value, shift); 454 graph()->NewNode(machine()->Int32Sub(), Int32Constant(32), shift)); 461 EXPECT_THAT(reduction1.replacement(), IsWord32Ror(value, shift)); 468 EXPECT_THAT(reduction2.replacement(), IsWord32Ror(value, shift));
|
/external/chromium_org/v8/src/ |
H A D | hydrogen.h | 687 int shift = variable->IsParameter() local 690 return variable->index() + shift;
|
H A D | misc-intrinsics.h | 40 int result, shift; local 42 shift = (value > 0xFFFF) << 4; 43 value >>= shift; local 44 result = shift; 46 shift = (value > 0xFF) << 3; 47 value >>= shift; local 48 result |= shift; 50 shift = (value > 0xF) << 2; 51 value >>= shift; local 52 result |= shift; 55 value >>= shift; local [all...] |
H A D | parser.cc | 475 uint32_t shift = DoubleToInt32(y_val) & 0x1f; local 476 uint32_t value = DoubleToUint32(x_val) >> shift; 481 uint32_t shift = DoubleToInt32(y_val) & 0x1f; local 482 int value = ArithmeticShiftRight(DoubleToInt32(x_val), shift);
|
H A D | string-search.h | 20 // Cap on the maximal shift in the Boyer-Moore implementation. By setting a 36 // Bad-char shift table stored in the state. It's length is the alphabet size. 158 // Store for the BoyerMoore(Horspool) bad char shift table. 165 // Store for the BoyerMoore good suffix shift table. 173 // shift table. 304 int shift = local 306 index += shift; 316 // Fall back on BMH shift. 324 int shift = j - bc_occ; local 325 if (gs_shift > shift) { 428 int shift = j - bc_occ; local [all...] |
/external/chromium_org/v8/src/ia32/ |
H A D | assembler-ia32.cc | 959 DCHECK(is_uint5(imm8)); // illegal shift count 973 DCHECK(is_uint5(imm8)); // illegal shift count 987 DCHECK(is_uint5(imm8)); // illegal shift count 1008 DCHECK(is_uint5(imm8)); // illegal shift count 1044 DCHECK(is_uint5(imm8)); // illegal shift count 1073 DCHECK(is_uint5(imm8)); // illegal shift count 2384 void Assembler::psllq(XMMRegister reg, int8_t shift) { argument 2390 EMIT(shift); 2403 void Assembler::psrlq(XMMRegister reg, int8_t shift) { argument 2409 EMIT(shift); [all...] |
H A D | macro-assembler-ia32.cc | 3165 int shift = local 3167 shr(ecx, shift); 3169 (Page::kPageAlignmentMask >> shift) & ~(Bitmap::kBytesPerCell - 1)); 3393 if (mag.shift > 0) sar(edx, mag.shift);
|
H A D | macro-assembler-ia32.h | 519 static const int shift = Field::kShift; local 521 if (shift != 0) { 522 sar(reg, shift); 529 static const int shift = Field::kShift; local 533 if (shift < kSmiTagSize) { 534 shl(reg, kSmiTagSize - shift); 535 } else if (shift > kSmiTagSize) { 536 sar(reg, shift - kSmiTagSize);
|
/external/chromium_org/v8/src/mips/ |
H A D | lithium-codegen-mips.cc | 1226 uint16_t shift = WhichPowerOf2Abs(divisor); 1227 if (shift == 0) { 1229 } else if (shift == 1) { 1234 __ srl(result, result, 32 - shift); 1237 if (shift > 0) __ sra(result, result, shift); 1336 // can simply do an arithmetic right shift. 1337 uint16_t shift = WhichPowerOf2Abs(divisor); local 1339 __ sra(result, dividend, shift); 1365 __ sra(result, result, shift); 1516 int32_t shift = WhichPowerOf2(constant_abs); local 1521 int32_t shift = WhichPowerOf2(constant_abs - 1); local 1527 int32_t shift = WhichPowerOf2(constant_abs + 1); local [all...] |
H A D | macro-assembler-mips.h | 1532 static const int shift = Field::kShift; local 1533 static const int mask = Field::kMask >> shift << kSmiTagSize; 1536 if (shift < kSmiTagSize) { 1537 sll(dst, src, kSmiTagSize - shift); 1539 } else if (shift > kSmiTagSize) { 1540 srl(dst, src, shift - kSmiTagSize);
|
/external/chromium_org/v8/src/mips64/ |
H A D | lithium-codegen-mips64.cc | 1177 uint16_t shift = WhichPowerOf2Abs(divisor); 1178 if (shift == 0) { 1180 } else if (shift == 1) { 1185 __ dsrl32(result, result, 32 - shift); 1188 if (shift > 0) __ dsra(result, result, shift); 1293 // can simply do an arithmetic right shift. 1294 uint16_t shift = WhichPowerOf2Abs(divisor); local 1296 __ dsra(result, dividend, shift); 1321 __ dsra(result, result, shift); 1478 int32_t shift = WhichPowerOf2(constant_abs); local 1483 int32_t shift = WhichPowerOf2(constant_abs - 1); local 1489 int32_t shift = WhichPowerOf2(constant_abs + 1); local [all...] |
H A D | macro-assembler-mips64.h | 1603 static const int shift = Field::kShift; local 1604 static const int mask = Field::kMask >> shift; 1605 dsrl(dst, src, shift);
|
/external/chromium_org/v8/src/x64/ |
H A D | assembler-x64.cc | 600 void Assembler::shift(Register dst, function in class:v8::internal::Assembler 620 void Assembler::shift(Register dst, int subcode, int size) { function in class:v8::internal::Assembler
|
H A D | macro-assembler-x64.cc | 2225 // Logic right shift interprets its result as an *unsigned* number. 2258 // Untag shift amount. 2393 int shift) { 2395 DCHECK(is_uint6(shift)); 2396 // There is a possible optimization if shift is in the range 60-63, but that 2401 if (shift < kSmiShift) { 2402 sarp(dst, Immediate(kSmiShift - shift)); 2404 shlp(dst, Immediate(shift - kSmiShift)); 2409 DCHECK(shift >= times_1 && shift < 5122 int shift = local [all...] |
H A D | macro-assembler-x64.h | 719 // The src register contains a *positive* smi value. The shift is the 725 SmiIndex SmiToIndex(Register dst, Register src, int shift); 728 SmiIndex SmiToNegativeIndex(Register dst, Register src, int shift); 1046 static const int shift = Field::kShift; local 1048 if (shift != 0) { 1049 shrp(reg, Immediate(shift)); 1060 static const int shift = Field::kShift; local 1065 if (shift < kSmiShift) { 1066 shlp(reg, Immediate(kSmiShift - shift)); 1067 } else if (shift > kSmiShif [all...] |
/external/chromium_org/v8/src/x87/ |
H A D | macro-assembler-x87.cc | 3125 int shift = local 3127 shr(ecx, shift); 3129 (Page::kPageAlignmentMask >> shift) & ~(Bitmap::kBytesPerCell - 1)); 3353 if (mag.shift > 0) sar(edx, mag.shift);
|
H A D | macro-assembler-x87.h | 491 static const int shift = Field::kShift; local 493 if (shift != 0) { 494 sar(reg, shift); 501 static const int shift = Field::kShift; local 505 if (shift < kSmiTagSize) { 506 shl(reg, kSmiTagSize - shift); 507 } else if (shift > kSmiTagSize) { 508 sar(reg, shift - kSmiTagSize);
|
/external/chromium_org/v8/test/cctest/ |
H A D | test-api.cc | 19226 int shift = 8 + (i % 7); local 19227 string_contents[alignment + i] = 1 << shift;
|
H A D | test-assembler-arm64.cc | 4713 int shift[] = {1, 3, 5, 9, 17, 33}; local 4717 __ Mov(w1, shift[0]); 4718 __ Mov(w2, shift[1]); 4719 __ Mov(w3, shift[2]); 4720 __ Mov(w4, shift[3]); 4721 __ Mov(w5, shift[4]); 4722 __ Mov(w6, shift[5]); 4744 CHECK_EQUAL_64(value << (shift[0] & 63), x16); 4745 CHECK_EQUAL_64(value << (shift[1] & 63), x17); 4746 CHECK_EQUAL_64(value << (shift[ 4766 int shift[] = {1, 3, 5, 9, 17, 33}; local 4821 int shift[] = {1, 3, 5, 9, 17, 33}; local 4876 int shift[] = {4, 8, 12, 16, 24, 36}; local [all...] |
H A D | test-macro-assembler-x64.cc | 1930 int shift = shifts[i]; local 1931 int result = x << shift; 1935 __ SmiShiftLeftConstant(r9, rcx, shift); 1943 __ SmiShiftLeftConstant(rcx, rcx, shift); 1951 __ Move(rcx, Smi::FromInt(shift)); 1960 __ Move(r11, Smi::FromInt(shift)); 1969 __ Move(r11, Smi::FromInt(shift)); 2024 int shift = shifts[i]; local 2025 intptr_t result = static_cast<unsigned int>(x) >> shift; 2029 __ SmiShiftLogicalRightConstant(r9, rcx, shift, exi 2127 int shift = shifts[i]; local [all...] |