Home
last modified time | relevance | path

Searched refs:HeapNumber (Results 1 – 25 of 82) sorted by relevance

1234

/external/v8/src/
Dhydrogen-types.cc46 double n = Handle<v8::internal::HeapNumber>::cast(value)->value(); in FromValue()
47 return IsSmiDouble(n) ? HType::Smi() : HType::HeapNumber(); in FromValue()
Dhydrogen-types.h29 V(HeapNumber, 0x2d) /* 0000 0000 0010 1101 */ \
Dconversions.h221 double value = HeapNumber::cast(number)->value(); in TryNumberToSize()
Djson-stringifier.h114 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()
Dobjects-inl.h170 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/
Dtest-changes-lowering.cc183 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/
Dtest-hydrogen-types.cc133 CHECK(HType::HeapNumber().IsHeapObject()); in TEST()
148 CHECK(HType::HeapNumber().IsHeapPrimitive()); in TEST()
Dtest-code-stubs.cc51 HeapNumber::kExponentBias); in ConvertDToICVersion()
Dtest-code-stubs-ia32.cc56 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-x87.cc56 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-x64.cc55 source_reg.is(rsp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
/external/v8/src/mips64/
Dcode-stubs-mips64.cc193 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 …]
Dlithium-codegen-mips64.cc2112 __ 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 …]
Dmacro-assembler-mips64.cc1758 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/
Dcode-stubs-mips.cc197 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 …]
Dlithium-codegen-mips.cc2144 __ 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/
Dcode-stubs-arm.cc176 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 …]
Dlithium-codegen-arm.cc2247 __ 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/
Dmacro-assembler-ia32.cc290 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/
Dlithium-codegen-x87.cc2470 __ 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 …]
Dmacro-assembler-x87.cc601 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/
Dchange-lowering.cc45 STATIC_ASSERT(HeapNumber::kValueOffset % kPointerSize == 0); in HeapNumberValueIndexConstant()
47 ((HeapNumber::kValueOffset / kPointerSize) * (machine()->Is64() ? 8 : 4)); in HeapNumberValueIndexConstant()
Dchange-lowering-unittest.cc40 STATIC_ASSERT(HeapNumber::kValueOffset % kApiPointerSize == 0); in HeapNumberValueOffset()
41 return (HeapNumber::kValueOffset / kApiPointerSize) * PointerSize() - in HeapNumberValueOffset()
/external/v8/src/arm64/
Dcode-stubs-arm64.cc161 __ 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/
Dcode-stubs-x64.cc187 __ 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 …]

1234