Home
last modified time | relevance | path

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

1234

/external/v8/src/runtime/
Druntime-maths.cc189 Handle<HeapNumber> number = Handle<HeapNumber>::cast(input); in RUNTIME_FUNCTION()
247 HeapNumber* number = HeapNumber::cast(obj); in RUNTIME_FUNCTION()
/external/v8/test/cctest/compiler/
Dtest-changes-lowering.cc166 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST()
194 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST()
227 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST()
244 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); in TEST()
Dtest-code-stub-assembler.cc62 CHECK_EQ(0.5, Handle<HeapNumber>::cast(result.ToHandleChecked())->value()); in TEST()
/external/v8/src/crankshaft/
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 */ \
/external/v8/test/cctest/
Dtest-identity-map.cc374 Handle<HeapNumber> number1 = isolate->factory()->NewHeapNumber(3.3); in TEST()
378 Handle<HeapNumber> number2(*number1); in TEST()
383 Handle<HeapNumber> number3(*number2); in TEST()
393 Handle<HeapNumber> number4(*number1); in TEST()
401 Handle<HeapNumber> number5(*number4); in TEST()
408 Handle<HeapNumber> number6(*number1); in TEST()
Dtest-hydrogen-types.cc132 CHECK(HType::HeapNumber().IsHeapObject()); in TEST()
147 CHECK(HType::HeapNumber().IsHeapPrimitive()); in TEST()
Dtest-code-stubs.cc51 HeapNumber::kExponentBias); in ConvertDToICVersion()
Dtest-code-stubs-x87.cc57 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-x64.cc57 source_reg.is(rsp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-ia32.cc57 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
Dtypes-fuzz.h57 HEAP_NUMBER_TYPE, HeapNumber::kSize); in Types()
128 Handle<i::HeapNumber> signed32;
/external/v8/test/unittests/runtime/
Druntime-interpreter-unittest.cc59 CHECK_EQ(HeapNumber::cast(*x)->value(), lhs); in TestOperator()
60 CHECK_EQ(HeapNumber::cast(*y)->value(), rhs); in TestOperator()
/external/v8/src/compiler/
Dtype-hint-analyzer.cc63 ASSERT_COMPATIBLE(HEAP_NUMBER, HeapNumber); in GetToBooleanHints()
/external/v8/test/unittests/compiler/
Dchange-lowering-unittest.cc75 IsIntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag), in IsLoadHeapNumber()
382 IsIntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag), in TARGET_TEST_F()
486 IsInt32Constant(HeapNumber::kValueOffset - kHeapObjectTag), in TARGET_TEST_F()
615 IsInt64Constant(HeapNumber::kValueOffset - kHeapObjectTag), in TARGET_TEST_F()
/external/v8/src/crankshaft/mips/
Dlithium-codegen-mips.cc1997 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch()
2087 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch()
2255 __ lw(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset)); in DoCompareMinusZeroAndBranch()
2257 __ lw(scratch, FieldMemOperand(value, HeapNumber::kMantissaOffset)); in DoCompareMinusZeroAndBranch()
3295 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3299 __ And(at, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber()
3331 __ lw(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3336 __ And(exponent, exponent, Operand(~HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber()
3337 __ sw(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3338 __ lw(tmp2, FieldMemOperand(input, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber()
[all …]
/external/v8/src/crankshaft/x87/
Dlithium-codegen-x87.cc2368 __ fld_d(FieldOperand(reg, HeapNumber::kValueOffset)); in DoBranch()
2534 __ cmp(FieldOperand(value, HeapNumber::kExponentOffset), in DoCompareMinusZeroAndBranch()
2537 __ cmp(FieldOperand(value, HeapNumber::kMantissaOffset), in DoCompareMinusZeroAndBranch()
3572 __ mov(tmp, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3577 __ test(tmp, Immediate(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber()
3593 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3594 __ and_(tmp2, ~HeapNumber::kSignMask); in DoDeferredMathAbsTaggedHeapNumber()
3595 __ mov(FieldOperand(tmp, HeapNumber::kExponentOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber()
3596 __ mov(tmp2, FieldOperand(input_reg, HeapNumber::kMantissaOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3597 __ mov(FieldOperand(tmp, HeapNumber::kMantissaOffset), tmp2); in DoDeferredMathAbsTaggedHeapNumber()
[all …]
/external/v8/src/
Djson-stringifier.h76 INLINE(Result SerializeHeapNumber(Handle<HeapNumber> object)) { in INLINE()
315 return SerializeHeapNumber(Handle<HeapNumber>::cast(object)); in Serialize_()
393 SerializeHeapNumber(Handle<HeapNumber>::cast(value)); in SerializeJSValue()
/external/v8/src/crankshaft/mips64/
Dlithium-codegen-mips64.cc2115 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch()
2205 __ ldc1(dbl_scratch, FieldMemOperand(reg, HeapNumber::kValueOffset)); in DoBranch()
2376 __ lwu(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset)); in DoCompareMinusZeroAndBranch()
2378 __ lwu(scratch, FieldMemOperand(value, HeapNumber::kMantissaOffset)); in DoCompareMinusZeroAndBranch()
3481 __ lwu(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3485 __ And(at, exponent, Operand(HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber()
3517 __ lwu(exponent, FieldMemOperand(input, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3522 __ And(exponent, exponent, Operand(~HeapNumber::kSignMask)); in DoDeferredMathAbsTaggedHeapNumber()
3523 __ sw(exponent, FieldMemOperand(tmp1, HeapNumber::kExponentOffset)); in DoDeferredMathAbsTaggedHeapNumber()
3524 __ lwu(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 mulsd(scratch2, FieldOperand(maybe_number, HeapNumber::kValueOffset)); in StoreNumberToDoubleElements()
1519 Allocate(HeapNumber::kSize, result, scratch1, scratch2, gc_required, in AllocateHeapNumber()
2680 DCHECK(is_uintn(power + HeapNumber::kExponentBias, in LoadPowerOf2()
2681 HeapNumber::kExponentBits)); in LoadPowerOf2()
2682 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); in LoadPowerOf2()
[all …]
/external/v8/src/mips64/
Dcode-stubs-mips64.cc194 HeapNumber::kExponentShift, in Generate()
195 HeapNumber::kExponentBits); in Generate()
198 __ Subu(scratch, result_reg, HeapNumber::kExponentMask); in Generate()
205 Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits + 31)); in Generate()
214 const int kShiftBase = HeapNumber::kNonMantissaBitsInTopWord - 1; in Generate()
216 __ Addu(scratch, result_reg, Operand(kShiftBase + HeapNumber::kMantissaBits)); in Generate()
221 __ And(sign, input_high, Operand(HeapNumber::kSignMask)); in Generate()
234 Operand(1 << HeapNumber::kMantissaBitsInTopWord)); in Generate()
283 __ li(exp_mask_reg, Operand(HeapNumber::kExponentMask)); in EmitIdenticalObjectComparison()
361 __ lwu(a6, FieldMemOperand(a0, HeapNumber::kExponentOffset)); in EmitIdenticalObjectComparison()
[all …]
/external/v8/src/mips/
Dcode-stubs-mips.cc196 HeapNumber::kExponentShift, in Generate()
197 HeapNumber::kExponentBits); in Generate()
200 __ Subu(scratch, result_reg, HeapNumber::kExponentMask); in Generate()
207 Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits + 31)); in Generate()
216 const int kShiftBase = HeapNumber::kNonMantissaBitsInTopWord - 1; in Generate()
218 __ Addu(scratch, result_reg, Operand(kShiftBase + HeapNumber::kMantissaBits)); in Generate()
223 __ And(sign, input_high, Operand(HeapNumber::kSignMask)); in Generate()
236 Operand(1 << HeapNumber::kMantissaBitsInTopWord)); in Generate()
285 __ li(exp_mask_reg, Operand(HeapNumber::kExponentMask)); in EmitIdenticalObjectComparison()
364 __ lw(t2, FieldMemOperand(a0, HeapNumber::kExponentOffset)); in EmitIdenticalObjectComparison()
[all …]
/external/v8/test/cctest/wasm/
Dtest-run-wasm-js.cc67 CHECK_EQ(expected, HeapNumber::cast(*result)->value()); in EXPECT_CALL()
/external/v8/src/ppc/
Dcode-stubs-ppc.cc176 __ ExtractBitMask(scratch, scratch_high, HeapNumber::kExponentMask); in Generate()
179 STATIC_ASSERT(HeapNumber::kExponentBias + 1 == 1024); in Generate()
180 __ subi(scratch, scratch, Operand(HeapNumber::kExponentBias + 1)); in Generate()
203 __ ExtractBitMask(result_reg, scratch_high, HeapNumber::kMantissaMask); in Generate()
205 STATIC_ASSERT(HeapNumber::kMantissaBitsInTopWord >= 16); in Generate()
207 Operand(1 << ((HeapNumber::kMantissaBitsInTopWord) - 16))); in Generate()
341 __ lwz(r5, FieldMemOperand(r3, HeapNumber::kExponentOffset)); in EmitIdenticalObjectComparison()
343 STATIC_ASSERT(HeapNumber::kExponentMask == 0x7ff00000u); in EmitIdenticalObjectComparison()
344 __ ExtractBitMask(r6, r5, HeapNumber::kExponentMask); in EmitIdenticalObjectComparison()
349 __ slwi(r5, r5, Operand(HeapNumber::kNonMantissaBitsInTopWord)); in EmitIdenticalObjectComparison()
[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()
331 __ ldr(r2, FieldMemOperand(r0, HeapNumber::kExponentOffset)); in EmitIdenticalObjectComparison()
333 __ Sbfx(r3, r2, HeapNumber::kExponentShift, HeapNumber::kExponentBits); in EmitIdenticalObjectComparison()
339 __ mov(r2, Operand(r2, LSL, HeapNumber::kNonMantissaBitsInTopWord)); in EmitIdenticalObjectComparison()
341 __ ldr(r3, FieldMemOperand(r0, HeapNumber::kMantissaOffset)); in EmitIdenticalObjectComparison()
397 __ vldr(d6, rhs, HeapNumber::kValueOffset - kHeapObjectTag); in EmitSmiNonsmiComparison()
[all …]

1234