/external/v8/src/runtime/ |
D | runtime-maths.cc | 189 Handle<HeapNumber> number = Handle<HeapNumber>::cast(input); in RUNTIME_FUNCTION() 247 HeapNumber* number = HeapNumber::cast(obj); in RUNTIME_FUNCTION()
|
/external/v8/test/cctest/compiler/ |
D | test-changes-lowering.cc | 166 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()
|
D | test-code-stub-assembler.cc | 62 CHECK_EQ(0.5, Handle<HeapNumber>::cast(result.ToHandleChecked())->value()); in TEST()
|
/external/v8/src/crankshaft/ |
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 */ \
|
/external/v8/test/cctest/ |
D | test-identity-map.cc | 374 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()
|
D | test-hydrogen-types.cc | 132 CHECK(HType::HeapNumber().IsHeapObject()); in TEST() 147 CHECK(HType::HeapNumber().IsHeapPrimitive()); in TEST()
|
D | test-code-stubs.cc | 51 HeapNumber::kExponentBias); in ConvertDToICVersion()
|
D | test-code-stubs-x87.cc | 57 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
D | test-code-stubs-x64.cc | 57 source_reg.is(rsp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
D | test-code-stubs-ia32.cc | 57 source_reg.is(esp) ? 0 : (HeapNumber::kValueOffset - kSmiTagSize); in MakeConvertDToIFuncTrampoline()
|
D | types-fuzz.h | 57 HEAP_NUMBER_TYPE, HeapNumber::kSize); in Types() 128 Handle<i::HeapNumber> signed32;
|
/external/v8/test/unittests/runtime/ |
D | runtime-interpreter-unittest.cc | 59 CHECK_EQ(HeapNumber::cast(*x)->value(), lhs); in TestOperator() 60 CHECK_EQ(HeapNumber::cast(*y)->value(), rhs); in TestOperator()
|
/external/v8/src/compiler/ |
D | type-hint-analyzer.cc | 63 ASSERT_COMPATIBLE(HEAP_NUMBER, HeapNumber); in GetToBooleanHints()
|
/external/v8/test/unittests/compiler/ |
D | change-lowering-unittest.cc | 75 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/ |
D | lithium-codegen-mips.cc | 1997 __ 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/ |
D | lithium-codegen-x87.cc | 2368 __ 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/ |
D | json-stringifier.h | 76 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/ |
D | lithium-codegen-mips64.cc | 2115 __ 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/ |
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 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/ |
D | code-stubs-mips64.cc | 194 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/ |
D | code-stubs-mips.cc | 196 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/ |
D | test-run-wasm-js.cc | 67 CHECK_EQ(expected, HeapNumber::cast(*result)->value()); in EXPECT_CALL()
|
/external/v8/src/ppc/ |
D | code-stubs-ppc.cc | 176 __ 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/ |
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() 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 …]
|