/external/v8/src/ |
D | hydrogen-types.cc | 46 double n = Handle<v8::internal::HeapNumber>::cast(value)->value(); in FromValue() 47 return IsSmiDouble(n) ? HType::Smi() : HType::HeapNumber(); in FromValue()
|
D | hydrogen-types.h | 29 V(HeapNumber, 0x2d) /* 0000 0000 0010 1101 */ \
|
D | conversions.h | 221 double value = HeapNumber::cast(number)->value(); in TryNumberToSize()
|
D | json-stringifier.h | 114 INLINE(Result SerializeHeapNumber(Handle<HeapNumber> object)) { in INLINE() 414 return SerializeHeapNumber(Handle<HeapNumber>::cast(object)); in Serialize_() 509 SerializeHeapNumber(Handle<HeapNumber>::cast(value)); in SerializeJSValue()
|
D | objects-inl.h | 170 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) in TYPE_CHECKER() argument 288 value = HeapNumber::cast(*object)->value(); in NewStorageFor() 304 return isolate->factory()->NewHeapNumber(HeapNumber::cast(*object)->value()); in WrapForRead() 1066 : reinterpret_cast<HeapNumber*>(this)->value(); in Number() 1071 return this->IsHeapNumber() && std::isnan(HeapNumber::cast(this)->value()); in IsNaN() 1077 i::IsMinusZero(HeapNumber::cast(this)->value()); in IsMinusZero() 1084 double value = Handle<HeapNumber>::cast(object)->value(); in ToSmi() 1515 double HeapNumber::value() const { in value() 1520 void HeapNumber::set_value(double value) { in set_value() 1525 int HeapNumber::get_exponent() { in get_exponent() [all …]
|
/external/v8/test/cctest/compiler/ |
D | test-changes-lowering.cc | 183 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST() 213 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST() 247 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST() 264 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST()
|
/external/v8/test/cctest/ |
D | test-hydrogen-types.cc | 133 CHECK(HType::HeapNumber().IsHeapObject()); in TEST() 148 CHECK(HType::HeapNumber().IsHeapPrimitive()); in TEST()
|
D | test-code-stubs.cc | 51 HeapNumber::kExponentBias); in ConvertDToICVersion()
|
D | test-code-stubs-ia32.cc | 56 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
D | test-code-stubs-x87.cc | 56 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
D | test-code-stubs-x64.cc | 55 source_reg.is(rsp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
/external/v8/src/mips64/ |
D | code-stubs-mips64.cc | 193 HeapNumber::kExponentShift, in Generate() 194 HeapNumber::kExponentBits); in Generate() 197 __ Subu(scratch, result_reg, HeapNumber::kExponentMask); in Generate() 204 Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits + 31)); in Generate() 213 const int kShiftBase = HeapNumber::kNonMantissaBitsInTopWord - 1; in Generate() 215 __ Addu(scratch, result_reg, Operand(kShiftBase + HeapNumber::kMantissaBits)); in Generate() 220 __ And(sign, input_high, Operand(HeapNumber::kSignMask)); in Generate() 233 Operand(1 << HeapNumber::kMantissaBitsInTopWord)); in Generate() 285 STATIC_ASSERT(HeapNumber::kSignMask == 0x80000000u); in Generate() 293 (HeapNumber::kExponentBias + 30) << HeapNumber::kExponentShift; in Generate() [all …]
|
D | lithium-codegen-mips64.cc | 2112 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2194 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2363 __ lwu(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset)); in DoCompareMinusZeroAndBranch() 2365 __ lwu(scratch, FieldMemOperand(value, HeapNumber::kMantissaOffset)); in DoCompareMinusZeroAndBranch() 3629 __ lwu(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3633 __ And(at, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3665 __ lwu(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3670 __ And(exponent, exponent, Operand(~HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3671 __ sw(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3672 __ lwu(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() [all …]
|
D | macro-assembler-mips64.cc | 1758 MemOperand(object, HeapNumber::kValueOffset - kHeapObjectTag)); in TruncateHeapNumberToI() 1766 HeapNumber::kValueOffset - kHeapObjectTag, in TruncateHeapNumberToI() 3518 Allocate(HeapNumber::kSize, result, scratch1, scratch2, need_gc, in AllocateHeapNumber() 3542 sdc1(value, FieldMemOperand(result, HeapNumber::kValueOffset)); in AllocateHeapNumberWithValue() 3714 lw(exponent_reg, FieldMemOperand(value_reg, HeapNumber::kExponentOffset)); in StoreNumberToDoubleElements() 3717 lwu(mantissa_reg, FieldMemOperand(value_reg, HeapNumber::kMantissaOffset)); in StoreNumberToDoubleElements() 3733 lw(mantissa_reg, FieldMemOperand(value_reg, HeapNumber::kMantissaOffset)); in StoreNumberToDoubleElements() 3738 lw(mantissa_reg, FieldMemOperand(at, HeapNumber::kMantissaOffset)); in StoreNumberToDoubleElements() 3739 lw(exponent_reg, FieldMemOperand(at, HeapNumber::kExponentOffset)); in StoreNumberToDoubleElements() 4349 lwu(exponent, FieldMemOperand(object, HeapNumber::kExponentOffset)); in ObjectToDoubleFPURegister() [all …]
|
/external/v8/src/mips/ |
D | code-stubs-mips.cc | 197 HeapNumber::kExponentShift, in Generate() 198 HeapNumber::kExponentBits); in Generate() 201 __ Subu(scratch, result_reg, HeapNumber::kExponentMask); in Generate() 208 Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits + 31)); in Generate() 217 const int kShiftBase = HeapNumber::kNonMantissaBitsInTopWord - 1; in Generate() 219 __ Addu(scratch, result_reg, Operand(kShiftBase + HeapNumber::kMantissaBits)); in Generate() 224 __ And(sign, input_high, Operand(HeapNumber::kSignMask)); in Generate() 237 Operand(1 << HeapNumber::kMantissaBitsInTopWord)); in Generate() 289 STATIC_ASSERT(HeapNumber::kSignMask == 0x80000000u); in Generate() 297 (HeapNumber::kExponentBias + 30) << HeapNumber::kExponentShift; in Generate() [all …]
|
D | lithium-codegen-mips.cc | 2144 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2226 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2393 __ lw(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset)); in DoCompareMinusZeroAndBranch() 2395 __ lw(scratch, FieldMemOperand(value, HeapNumber::kMantissaOffset)); in DoCompareMinusZeroAndBranch() 3600 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3604 __ And(at, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3636 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3641 __ And(exponent, exponent, Operand(~HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3642 __ sw(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3643 __ lw(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() [all …]
|
/external/v8/src/arm/ |
D | code-stubs-arm.cc | 176 HeapNumber::kExponentShift, HeapNumber::kExponentBits); in Generate() 179 STATIC_ASSERT(HeapNumber::kExponentBias + 1 == 1024); in Generate() 180 __ sub(scratch, scratch, Operand(HeapNumber::kExponentBias + 1)); in Generate() 203 0, HeapNumber::kMantissaBitsInTopWord); in Generate() 206 Operand(1 << HeapNumber::kMantissaBitsInTopWord)); in Generate() 252 STATIC_ASSERT(HeapNumber::kSignMask == 0x80000000u); in Generate() 258 (HeapNumber::kExponentBias + 30) << HeapNumber::kExponentShift; in Generate() 261 __ orr(scratch(), scratch(), Operand(HeapNumber::kSignMask), LeaveCC, cs); in Generate() 268 DCHECK(((1 << HeapNumber::kExponentShift) & non_smi_exponent) != 0); in Generate() 269 const int shift_distance = HeapNumber::kNonMantissaBitsInTopWord - 2; in Generate() [all …]
|
D | lithium-codegen-arm.cc | 2247 __ vldr(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2333 __ vldr(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2491 __ ldr(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset)); in DoCompareMinusZeroAndBranch() 2492 __ ldr(ip, FieldMemOperand(value, HeapNumber::kMantissaOffset)); in DoCompareMinusZeroAndBranch() 3688 __ ldr(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3691 __ tst(exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3724 __ ldr(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3729 __ bic(exponent, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3730 __ str(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3731 __ ldr(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() [all …]
|
/external/v8/src/ia32/ |
D | macro-assembler-ia32.cc | 290 fld_d(FieldOperand(input_reg, HeapNumber::kValueOffset)); in TruncateHeapNumberToI() 292 mov(result_reg, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in TruncateHeapNumberToI() 293 and_(result_reg, HeapNumber::kExponentMask); in TruncateHeapNumberToI() 295 (HeapNumber::kExponentBias + 63) << HeapNumber::kExponentShift; in TruncateHeapNumberToI() 320 movsd(xmm0, FieldOperand(input_reg, HeapNumber::kValueOffset)); in TruncateHeapNumberToI() 689 uint32_t offset = HeapNumber::kValueOffset + sizeof(kHoleNanLower32); in StoreNumberToDoubleElements() 697 movsd(scratch2, FieldOperand(maybe_number, HeapNumber::kValueOffset)); in StoreNumberToDoubleElements() 708 cmp(FieldOperand(maybe_number, HeapNumber::kValueOffset), Immediate(0)); in StoreNumberToDoubleElements() 1655 Allocate(HeapNumber::kSize, result, scratch1, scratch2, gc_required, in AllocateHeapNumber() 2792 DCHECK(is_uintn(power + HeapNumber::kExponentBias, in LoadPowerOf2() [all …]
|
/external/v8/src/x87/ |
D | lithium-codegen-x87.cc | 2470 __ fld_d(FieldOperand(reg, HeapNumber::kValueOffset)); in DoBranch() 2634 __ cmp(FieldOperand(value, HeapNumber::kExponentOffset), in DoCompareMinusZeroAndBranch() 2637 __ cmp(FieldOperand(value, HeapNumber::kMantissaOffset), in DoCompareMinusZeroAndBranch() 3821 __ mov(tmp, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3826 __ test(tmp, Immediate(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber() 3842 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3843 __ and_(tmp2, ~HeapNumber::kSignMask); in DoDeferredMathAbsTaggedHeapNumber() 3844 __ mov(FieldOperand(tmp, HeapNumber::kExponentOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber() 3845 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber() 3846 __ mov(FieldOperand(tmp, HeapNumber::kMantissaOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber() [all …]
|
D | macro-assembler-x87.cc | 601 uint32_t offset = HeapNumber::kValueOffset + sizeof(kHoleNanLower32); in StoreNumberToDoubleElements() 609 fld_d(FieldOperand(maybe_number, HeapNumber::kValueOffset)); in StoreNumberToDoubleElements() 619 cmp(FieldOperand(maybe_number, HeapNumber::kValueOffset), Immediate(0)); in StoreNumberToDoubleElements() 1618 Allocate(HeapNumber::kSize, result, scratch1, scratch2, gc_required, in AllocateHeapNumber() 2794 mov(scratch, FieldOperand(object, HeapNumber::kValueOffset)); in LookupNumberStringCache() 2795 xor_(scratch, FieldOperand(object, HeapNumber::kValueOffset + 4)); in LookupNumberStringCache() 2806 fld_d(FieldOperand(object, HeapNumber::kValueOffset)); in LookupNumberStringCache() 2807 fld_d(FieldOperand(probe, HeapNumber::kValueOffset)); in LookupNumberStringCache() 3186 mov(length, Immediate(HeapNumber::kSize)); in EnsureNotWhite()
|
/external/v8/src/compiler/ |
D | change-lowering.cc | 45 STATIC_ASSERT(HeapNumber::kValueOffset % kPointerSize == 0); in HeapNumberValueIndexConstant() 47 ((HeapNumber::kValueOffset / kPointerSize) * (machine()->Is64() ? 8 : 4)); in HeapNumberValueIndexConstant()
|
D | change-lowering-unittest.cc | 40 STATIC_ASSERT(HeapNumber::kValueOffset % kApiPointerSize == 0); in HeapNumberValueOffset() 41 return (HeapNumber::kValueOffset / kApiPointerSize) * PointerSize() - in HeapNumberValueOffset()
|
/external/v8/src/arm64/ |
D | code-stubs-arm64.cc | 161 __ Ubfx(exponent, result, HeapNumber::kMantissaBits, in Generate() 162 HeapNumber::kExponentBits); in Generate() 166 __ Cmp(exponent, HeapNumber::kExponentBias + HeapNumber::kMantissaBits + 32); in Generate() 175 __ Cmp(exponent, HeapNumber::kExponentBias + 63); in Generate() 182 __ Ubfx(mantissa, result, 0, HeapNumber::kMantissaBits); in Generate() 183 __ Orr(mantissa, mantissa, 1UL << HeapNumber::kMantissaBits); in Generate() 192 HeapNumber::kExponentBias + HeapNumber::kMantissaBits); in Generate() 272 __ Ldr(double_scratch, FieldMemOperand(right, HeapNumber::kValueOffset)); in EmitIdenticalObjectComparison() 383 __ Ldr(right_d, FieldMemOperand(right, HeapNumber::kValueOffset)); in EmitSmiNonsmiComparison() 408 __ Ldr(left_d, FieldMemOperand(left, HeapNumber::kValueOffset)); in EmitSmiNonsmiComparison() [all …]
|
/external/v8/src/x64/ |
D | code-stubs-x64.cc | 187 __ andl(rcx, Immediate(HeapNumber::kExponentMask)); in Generate() 188 __ shrl(rcx, Immediate(HeapNumber::kExponentShift)); in Generate() 189 __ leal(result_reg, MemOperand(rcx, -HeapNumber::kExponentBias)); in Generate() 190 __ cmpl(result_reg, Immediate(HeapNumber::kMantissaBits)); in Generate() 194 int delta = HeapNumber::kExponentBias + Double::kPhysicalSignificandSize; in Generate() 240 __ movsd(xmm0, FieldOperand(rdx, HeapNumber::kValueOffset)); in LoadSSE2UnknownOperands() 247 __ movsd(xmm1, FieldOperand(rax, HeapNumber::kValueOffset)); in LoadSSE2UnknownOperands() 291 __ movsd(double_base, FieldOperand(base, HeapNumber::kValueOffset)); in Generate() 307 __ movsd(double_exponent, FieldOperand(exponent, HeapNumber::kValueOffset)); in Generate() 314 __ movsd(double_exponent, FieldOperand(exponent, HeapNumber::kValueOffset)); in Generate() [all …]
|