/external/v8/test/cctest/ |
D | test-random.cc | 63 double crankshaft_value = HeapNumber::cast(*value)->value(); in TestSeeds() 67 double runtime_value = HeapNumber::cast(*value)->value(); in TestSeeds() 107 double crankshaft_value = HeapNumber::cast(*value)->value(); in TEST()
|
/external/v8/src/mips/ |
D | code-stubs-mips.cc | 472 STATIC_ASSERT(HeapNumber::kSignMask == 0x80000000u); in Generate() 473 __ And(exponent, source_, Operand(HeapNumber::kSignMask)); in Generate() 485 HeapNumber::kExponentBias << HeapNumber::kExponentShift; in Generate() 499 __ li(mantissa, Operand(31 + HeapNumber::kExponentBias)); in Generate() 501 __ sll(mantissa, mantissa, HeapNumber::kExponentShift); in Generate() 509 __ sll(mantissa, source_, HeapNumber::kMantissaBitsInTopWord); in Generate() 511 __ srl(source_, source_, 32 - HeapNumber::kMantissaBitsInTopWord); in Generate() 600 __ ldc1(dst, FieldMemOperand(object, HeapNumber::kValueOffset)); in LoadNumber() 604 __ lw(dst1, FieldMemOperand(object, HeapNumber::kValueOffset)); in LoadNumber() 606 HeapNumber::kValueOffset + kPointerSize)); in LoadNumber() [all …]
|
D | stub-cache-mips.cc | 1006 const int biased_exponent = HeapNumber::kExponentBias + meaningful_bits; in GenerateUInt2Double() 1009 meaningful_bits - HeapNumber::kMantissaBitsInTopWord; in GenerateUInt2Double() 1014 __ li(scratch, biased_exponent << HeapNumber::kExponentShift); in GenerateUInt2Double() 1028 __ li(scratch, 1 << HeapNumber::kExponentShift); in GenerateUInt2Double() 2066 __ ldc1(f0, FieldMemOperand(v0, HeapNumber::kValueOffset)); in CompileMathFloorCall() 2077 __ lw(t1, FieldMemOperand(v0, HeapNumber::kValueOffset + kPointerSize)); in CompileMathFloorCall() 2078 __ And(t2, t1, Operand(~HeapNumber::kSignMask)); in CompileMathFloorCall() 2079 __ srl(t2, t2, HeapNumber::kMantissaBitsInTopWord); in CompileMathFloorCall() 2089 __ Subu(t3, t2, Operand(HeapNumber::kExponentMask in CompileMathFloorCall() 2090 >> HeapNumber::kMantissaBitsInTopWord)); in CompileMathFloorCall() [all …]
|
D | macro-assembler-mips.cc | 1311 lw(scratch, FieldMemOperand(source, HeapNumber::kExponentOffset)); in ConvertToInt32() 1313 And(scratch2, scratch, Operand(HeapNumber::kExponentMask)); in ConvertToInt32() 1322 (HeapNumber::kExponentBias + 30) << HeapNumber::kExponentShift; in ConvertToInt32() 1333 (HeapNumber::kExponentBias + 0) << HeapNumber::kExponentShift; in ConvertToInt32() 1339 srl(dest, scratch2, HeapNumber::kExponentShift); in ConvertToInt32() 1352 lwc1(double_scratch, FieldMemOperand(source, HeapNumber::kMantissaOffset)); in ConvertToInt32() 1362 Or(scratch, scratch, Operand(1 << HeapNumber::kExponentShift)); in ConvertToInt32() 1369 const int shift_distance = HeapNumber::kNonMantissaBitsInTopWord - 2; in ConvertToInt32() 1376 lw(scratch2, FieldMemOperand(source, HeapNumber::kMantissaOffset)); in ConvertToInt32() 1451 HeapNumber::kExponentShift, in EmitOutOfInt32RangeTruncate() [all …]
|
D | lithium-codegen-mips.cc | 1548 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2903 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2907 __ And(at, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 2938 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2943 __ And(exponent, exponent, Operand(~HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 2944 __ sw(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2945 __ lw(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2946 __ sw(tmp2, FieldMemOperand(tmp1, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3030 __ And(scratch1, scratch1, Operand(HeapNumber::kSignMask)); in DoMathFloor() 3047 HeapNumber::kExponentShift, in DoMathRound() [all …]
|
D | codegen-mips.cc | 309 __ sw(a0, FieldMemOperand(a2, HeapNumber::kMantissaOffset)); in GenerateDoubleToObject() 310 __ sw(a1, FieldMemOperand(a2, HeapNumber::kExponentOffset)); in GenerateDoubleToObject()
|
/external/v8/src/arm/ |
D | code-stubs-arm.cc | 471 STATIC_ASSERT(HeapNumber::kSignMask == 0x80000000u); in Generate() 472 __ and_(exponent, source_, Operand(HeapNumber::kSignMask), SetCC); in Generate() 484 HeapNumber::kExponentBias << HeapNumber::kExponentShift; in Generate() 499 __ rsb(mantissa, zeros_, Operand(31 + HeapNumber::kExponentBias - fudge)); in Generate() 503 Operand(mantissa, LSL, HeapNumber::kExponentShift)); in Generate() 509 __ mov(mantissa, Operand(source_, LSL, HeapNumber::kMantissaBitsInTopWord)); in Generate() 513 Operand(source_, LSR, 32 - HeapNumber::kMantissaBitsInTopWord)); in Generate() 597 __ vldr(dst, scratch1, HeapNumber::kValueOffset); in LoadNumber() 601 __ Ldrd(dst1, dst2, FieldMemOperand(object, HeapNumber::kValueOffset)); in LoadNumber() 648 __ ldr(scratch1, FieldMemOperand(object, HeapNumber::kMapOffset)); in ConvertNumberToInt32() [all …]
|
D | stub-cache-arm.cc | 1007 const int biased_exponent = HeapNumber::kExponentBias + meaningful_bits; in GenerateUInt2Double() 1010 meaningful_bits - HeapNumber::kMantissaBitsInTopWord; in GenerateUInt2Double() 1015 __ mov(scratch, Operand(biased_exponent << HeapNumber::kExponentShift)); in GenerateUInt2Double() 1027 __ bic(hiword, hiword, Operand(1 << HeapNumber::kExponentShift)); in GenerateUInt2Double() 2071 __ Ldrd(r4, r5, FieldMemOperand(r0, HeapNumber::kValueOffset)); in CompileMathFloorCall() 2091 __ bic(r6, r5, Operand(HeapNumber::kSignMask)); in CompileMathFloorCall() 2092 __ mov(r6, Operand(r6, LSR, HeapNumber::kMantissaBitsInTopWord)); in CompileMathFloorCall() 2102 __ sub(r7, r6, Operand(HeapNumber::kExponentMask in CompileMathFloorCall() 2103 >> HeapNumber::kMantissaBitsInTopWord), SetCC); in CompileMathFloorCall() 2107 __ cmp(r7, Operand(HeapNumber::kMantissaBits)); in CompileMathFloorCall() [all …]
|
D | macro-assembler-arm.cc | 1928 ldr(exponent_reg, FieldMemOperand(value_reg, HeapNumber::kExponentOffset)); in StoreNumberToDoubleElements() 1932 ldr(mantissa_reg, FieldMemOperand(value_reg, HeapNumber::kMantissaOffset)); in StoreNumberToDoubleElements() 1946 ldr(mantissa_reg, FieldMemOperand(value_reg, HeapNumber::kMantissaOffset)); in StoreNumberToDoubleElements() 2293 ldr(scratch1, FieldMemOperand(object, HeapNumber::kExponentOffset)); in ObjectToDoubleVFPRegister() 2296 HeapNumber::kExponentShift, in ObjectToDoubleVFPRegister() 2297 HeapNumber::kExponentBits); in ObjectToDoubleVFPRegister() 2302 vldr(result, scratch2, HeapNumber::kValueOffset); in ObjectToDoubleVFPRegister() 2329 vldr(double_scratch, scratch, HeapNumber::kValueOffset); in ConvertToInt32() 2348 ldr(scratch, FieldMemOperand(source, HeapNumber::kExponentOffset)); in ConvertToInt32() 2352 HeapNumber::kExponentShift, in ConvertToInt32() [all …]
|
D | lithium-codegen-arm.cc | 1697 __ vldr(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 3021 __ ldr(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3024 __ tst(exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3056 __ ldr(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3061 __ bic(exponent, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3062 __ str(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3063 __ ldr(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3064 __ str(tmp2, FieldMemOperand(tmp1, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3146 __ tst(scratch1, Operand(HeapNumber::kSignMask)); in DoMathFloor() 3163 HeapNumber::kExponentShift, in DoMathRound() [all …]
|
D | codegen-arm.cc | 301 __ Strd(r0, r1, FieldMemOperand(r2, HeapNumber::kValueOffset)); in GenerateDoubleToObject()
|
/external/v8/src/ia32/ |
D | code-stubs-ia32.cc | 500 __ fld_d(FieldOperand(argument, HeapNumber::kValueOffset)); in Generate() 679 __ mov(scratch, FieldOperand(source, HeapNumber::kExponentOffset)); in IntegerConvert() 682 __ and_(scratch2, HeapNumber::kExponentMask); in IntegerConvert() 687 (HeapNumber::kExponentBias + 63) << HeapNumber::kExponentShift; in IntegerConvert() 691 __ fld_d(FieldOperand(source, HeapNumber::kValueOffset)); in IntegerConvert() 707 (HeapNumber::kExponentBias + 30) << HeapNumber::kExponentShift; in IntegerConvert() 720 (HeapNumber::kExponentBias + 31) << HeapNumber::kExponentShift; in IntegerConvert() 726 __ and_(scratch2, HeapNumber::kMantissaMask); in IntegerConvert() 728 __ or_(scratch2, 1 << HeapNumber::kExponentShift); in IntegerConvert() 733 const int big_shift_distance = HeapNumber::kNonMantissaBitsInTopWord - 1; in IntegerConvert() [all …]
|
D | lithium-codegen-ia32.cc | 1518 __ fld_d(FieldOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2801 __ mov(tmp, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2806 __ test(tmp, Immediate(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 2829 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2830 __ and_(tmp2, ~HeapNumber::kSignMask); in DoDeferredMathAbsTaggedHeapNumber() 2831 __ mov(FieldOperand(tmp, HeapNumber::kExponentOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber() 2832 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2833 __ mov(FieldOperand(tmp, HeapNumber::kMantissaOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber() 3726 __ movdbl(FieldOperand(reg, HeapNumber::kValueOffset), xmm0); in DoDeferredNumberTagI() 3753 __ movdbl(FieldOperand(reg, HeapNumber::kValueOffset), input_reg); in DoNumberTagD() [all …]
|
D | stub-cache-ia32.cc | 1958 __ movdbl(xmm0, FieldOperand(eax, HeapNumber::kValueOffset)); in CompileMathFloorCall() 1983 __ LoadPowerOf2(xmm1, ebx, HeapNumber::kMantissaBits); in CompileMathFloorCall() 2008 __ movdbl(FieldOperand(eax, HeapNumber::kValueOffset), xmm0); in CompileMathFloorCall() 2102 __ mov(ebx, FieldOperand(eax, HeapNumber::kExponentOffset)); in CompileMathAbsCall() 2107 __ test(ebx, Immediate(HeapNumber::kSignMask)); in CompileMathAbsCall() 2114 __ and_(ebx, ~HeapNumber::kSignMask); in CompileMathAbsCall() 2115 __ mov(ecx, FieldOperand(eax, HeapNumber::kMantissaOffset)); in CompileMathAbsCall() 2117 __ mov(FieldOperand(eax, HeapNumber::kExponentOffset), ebx); in CompileMathAbsCall() 2118 __ mov(FieldOperand(eax, HeapNumber::kMantissaOffset), ecx); in CompileMathAbsCall() 3424 __ fstp_d(FieldOperand(eax, HeapNumber::kValueOffset)); in GenerateLoadExternalArray() [all …]
|
D | macro-assembler-ia32.cc | 434 uint32_t offset = HeapNumber::kValueOffset + sizeof(kHoleNanLower32); in StoreNumberToDoubleElements() 444 movdbl(scratch2, FieldOperand(maybe_number, HeapNumber::kValueOffset)); in StoreNumberToDoubleElements() 449 fld_d(FieldOperand(maybe_number, HeapNumber::kValueOffset)); in StoreNumberToDoubleElements() 459 cmp(FieldOperand(maybe_number, HeapNumber::kValueOffset), Immediate(0)); in StoreNumberToDoubleElements() 1310 AllocateInNewSpace(HeapNumber::kSize, in AllocateHeapNumber() 2461 ASSERT(is_uintn(power + HeapNumber::kExponentBias, in LoadPowerOf2() 2462 HeapNumber::kExponentBits)); in LoadPowerOf2() 2463 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); in LoadPowerOf2() 2465 psllq(dst, HeapNumber::kMantissaBits); in LoadPowerOf2() 2719 mov(length, Immediate(HeapNumber::kSize)); in EnsureNotWhite()
|
D | codegen-ia32.cc | 582 __ movdbl(FieldOperand(edx, HeapNumber::kValueOffset), xmm0); in GenerateDoubleToObject() 585 __ mov(FieldOperand(edx, HeapNumber::kValueOffset), esi); in GenerateDoubleToObject() 587 __ mov(FieldOperand(edx, HeapNumber::kValueOffset + kPointerSize), esi); in GenerateDoubleToObject()
|
/external/v8/src/x64/ |
D | code-stubs-x64.cc | 482 __ ucomisd(xmm0, FieldOperand(argument, HeapNumber::kValueOffset)); in Generate() 612 __ movq(double_value, FieldOperand(source, HeapNumber::kValueOffset)); in IntegerConvert() 619 __ shr(double_exponent, Immediate(64 - HeapNumber::kExponentBits)); in IntegerConvert() 620 __ subl(double_exponent, Immediate(HeapNumber::kExponentBias)); in IntegerConvert() 652 __ leal(rcx, Operand(double_exponent, -HeapNumber::kMantissaBits - 1)); in IntegerConvert() 658 __ leal(rcx, Operand(double_exponent, -HeapNumber::kMantissaBits - 1)); in IntegerConvert() 804 __ xor_(FieldOperand(rax, HeapNumber::kValueOffset), kScratchRegister); in GenerateHeapNumberCodeSub() 824 __ movq(rdx, FieldOperand(rax, HeapNumber::kValueOffset)); in GenerateHeapNumberCodeSub() 828 __ movq(FieldOperand(rcx, HeapNumber::kValueOffset), rdx); in GenerateHeapNumberCodeSub() 1125 __ movsd(FieldOperand(rcx, HeapNumber::kValueOffset), xmm0); in GenerateSmiCode() [all …]
|
D | stub-cache-x64.cc | 1924 __ movq(rbx, FieldOperand(rax, HeapNumber::kValueOffset)); in CompileMathAbsCall() 1930 (HeapNumber::kExponentOffset - HeapNumber::kValueOffset) * kBitsPerByte; in CompileMathAbsCall() 1931 __ movq(rdi, static_cast<int64_t>(HeapNumber::kSignMask) << sign_mask_shift, in CompileMathAbsCall() 1942 __ movq(FieldOperand(rax, HeapNumber::kValueOffset), rbx); in CompileMathAbsCall() 3213 __ movsd(FieldOperand(rcx, HeapNumber::kValueOffset), xmm0); in GenerateLoadExternalArray() 3222 __ movsd(FieldOperand(rcx, HeapNumber::kValueOffset), xmm0); in GenerateLoadExternalArray() 3359 __ movsd(xmm0, FieldOperand(rax, HeapNumber::kValueOffset)); in GenerateStoreExternalArray() 3520 __ movsd(FieldOperand(rcx, HeapNumber::kValueOffset), xmm0); in GenerateLoadFastDoubleElement()
|
D | lithium-codegen-x64.cc | 1479 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2758 __ movl(tmp, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2763 __ testl(tmp, Immediate(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 2786 __ movq(tmp2, FieldOperand(input_reg, HeapNumber::kValueOffset)); in DoDeferredMathAbsTaggedHeapNumber() 2789 __ movq(FieldOperand(tmp, HeapNumber::kValueOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber() 3654 __ movsd(FieldOperand(reg, HeapNumber::kValueOffset), input_reg); in DoNumberTagD() 3724 __ movsd(result_reg, FieldOperand(input_reg, HeapNumber::kValueOffset)); in EmitNumberUntagD() 3763 __ movsd(xmm0, FieldOperand(input_reg, HeapNumber::kValueOffset)); in DoDeferredTaggedToI() 3773 __ movsd(xmm0, FieldOperand(input_reg, HeapNumber::kValueOffset)); in DoDeferredTaggedToI() 4003 __ movsd(xmm0, FieldOperand(input_reg, HeapNumber::kValueOffset)); in DoClampTToUint8()
|
/external/v8/src/ |
D | ast.cc | 237 Handle<HeapNumber> n1 = Handle<HeapNumber>::cast(h1); in IsEqualNumber() 238 Handle<HeapNumber> n2 = Handle<HeapNumber>::cast(h2); in IsEqualNumber()
|
D | v8.cc | 238 HeapNumber::cast(heap_number)->set_value(r.double_value); in FillHeapNumberWithRandom()
|
D | objects-debug.cc | 86 HeapNumber::cast(this)->HeapNumberVerify(); in HeapObjectVerify() 212 void HeapNumber::HeapNumberVerify() { in HeapNumberVerify()
|
D | objects-inl.h | 183 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) in TYPE_CHECKER() argument 809 : reinterpret_cast<HeapNumber*>(this)->value(); in Number() 814 return this->IsHeapNumber() && isnan(HeapNumber::cast(this)->value()); in IsNaN() 821 double value = HeapNumber::cast(this)->value(); in ToSmi() 1193 double HeapNumber::value() { in value() 1198 void HeapNumber::set_value(double value) { in set_value() 1203 int HeapNumber::get_exponent() { in get_exponent() 1209 int HeapNumber::get_sign() { in get_sign() 1632 double value = HeapNumber::cast(this)->value(); in ToArrayIndex() 2144 CAST_ACCESSOR(HeapNumber) in CAST_ACCESSOR()
|
D | code-stubs.cc | 409 double value = HeapNumber::cast(*object)->value(); in Record()
|
D | heap.cc | 2089 { MaybeObject* maybe_obj = AllocateMap(HEAP_NUMBER_TYPE, HeapNumber::kSize); in CreateInitialMaps() 2296 STATIC_ASSERT(HeapNumber::kSize <= Page::kNonCodeObjectAreaSize); in AllocateHeapNumber() 2301 AllocateRaw(HeapNumber::kSize, space, OLD_DATA_SPACE); in AllocateHeapNumber() 2306 HeapNumber::cast(result)->set_value(value); in AllocateHeapNumber() 2317 STATIC_ASSERT(HeapNumber::kSize <= Page::kMaxNonCodeHeapObjectSize); in AllocateHeapNumber() 2320 { MaybeObject* maybe_result = new_space_.AllocateRaw(HeapNumber::kSize); in AllocateHeapNumber() 2324 HeapNumber::cast(result)->set_value(value); in AllocateHeapNumber() 2425 set_minus_zero_value(HeapNumber::cast(obj)); in CreateInitialObjects() 2431 set_nan_value(HeapNumber::cast(obj)); in CreateInitialObjects() 2436 set_infinity_value(HeapNumber::cast(obj)); in CreateInitialObjects() [all …]
|