/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_date_test.cpp | 49 [[maybe_unused]] double temp = jsDate->GetTimeValue().GetDouble(); in HWTEST_F_L0() 71 EXPECT_EQ(ms.GetDouble(), 1605788298132.0); in HWTEST_F_L0() 75 EXPECT_EQ(ms.GetDouble(), -2808633901000.0); in HWTEST_F_L0() 79 EXPECT_EQ(ms.GetDouble(), 1605744000000.0); in HWTEST_F_L0() 83 EXPECT_EQ(ms.GetDouble(), 1604188800000.0); in HWTEST_F_L0() 87 EXPECT_EQ(ms.GetDouble(), 1673366400000.0); in HWTEST_F_L0() 91 EXPECT_EQ(ms.GetDouble(), 8640000000000000.0); in HWTEST_F_L0() 95 EXPECT_EQ(ms.GetDouble(), -8640000000000000.0); in HWTEST_F_L0() 99 EXPECT_EQ(ms.GetDouble(), 1577881080000.0); in HWTEST_F_L0() 103 EXPECT_EQ(ms.GetDouble(), 1577881097231. in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_binary_op.h | 44 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in AddWithTSType() 45 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in AddWithTSType() 114 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in SubWithTSType() 115 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in SubWithTSType() 182 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in DivWithTSType() 183 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in DivWithTSType() 218 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in ModWithTSType() 219 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in ModWithTSType() 265 base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in GetBitOPDate() 268 base::NumberHelper::DoubleToInt(right.GetDouble(), bas in GetBitOPDate() [all...] |
/arkcompiler/toolchain/tooling/base/ |
H A D | pt_json.cpp | 332 double PtJson::GetDouble(double defaultValue) const in GetDouble() function in panda::ecmascript::tooling::PtJson 377 Result ret = GetDouble(key, &result); in GetInt() 387 Result ret = GetDouble(key, &result); in GetInt64() 397 Result ret = GetDouble(key, &result); in GetUInt() 407 Result ret = GetDouble(key, &result); in GetUInt64() 414 Result PtJson::GetDouble(const char *key, double *value) const in GetDouble() function in panda::ecmascript::tooling::PtJson
|
H A D | pt_json.h | 92 double GetDouble(double defaultValue = 0.0) const; 105 Result GetDouble(const char *key, double *value) const;
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_tagged_number.h | 60 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32() 133 return JSTaggedNumber(GetDouble() + 1.0); in operator ++() 145 return JSTaggedNumber(GetDouble() - 1.0); in operator --()
|
H A D | element_accessor-inl.h | 78 base::bit_cast<JSTaggedType>(rawValue.GetDouble())); in FastSet()
|
H A D | tagged_dictionary.cpp | 258 int32_t keyValue = static_cast<int32_t>(static_cast<uint32_t>(key.GetDouble())); in Hash() 281 int32_t keyValue = static_cast<int32_t>(static_cast<uint32_t>(key.GetDouble())); in IsMatch() 285 return key.GetDouble() == other.GetDouble(); in IsMatch()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | fast_runtime_stub-inl.h | 51 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv() 52 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastDiv() 77 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastMod() 78 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastMod() 94 return JSTaggedValue(!std::isnan(left.GetDouble())); in FastEqual() 127 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastStrictEqual() 128 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastStrictEqual()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | literal.h | 65 double GetDouble() const;
|
H A D | literal.cpp | 38 double Literal::GetDouble() const in GetDouble() function in panda::es2panda::ir::Literal
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
H A D | containers_plainarray.cpp | 69 key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Add() 143 value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in Has() 177 key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Get() 278 value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in GetIndexOfKey() 352 value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in GetKeyAt() 385 key = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(key->GetDouble())); in Remove() 417 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveAt() 450 valueIndex = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(valueIndex->GetDouble())); in RemoveRangeFrom() 453 valueSize = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(valueSize->GetDouble())); in RemoveRangeFrom() 497 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in SetValueAt() [all...] |
H A D | containers_lightweightmap.cpp | 177 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in IncreaseCapacityTo() 319 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetKeyAt() 454 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveAt() 512 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in SetValueAt() 624 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt() 636 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt()
|
H A D | containers_list.cpp | 93 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in Insert() 209 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in Get() 283 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in Set() 391 index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveByIndex() 563 fromIndex = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(fromIndex->GetDouble())); in GetSubList() 579 toIndex = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(toIndex->GetDouble())); in GetSubList()
|
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | vregister.h | 140 ALWAYS_INLINE inline double GetDouble() const in GetDouble() function in ark::interpreter::VRegisterIface 339 ALWAYS_INLINE inline double GetDouble() const in GetDouble() function in ark::interpreter::VRegisterRef 341 return payload_->GetDouble(); in GetDouble() 364 << "(f64) " << GetDouble() << " | " in DumpVReg()
|
/arkcompiler/toolchain/tooling/test/ |
H A D | pt_json_test.cpp | 88 EXPECT_EQ(json->GetDouble(), 12345.6789); in HWTEST_F_L0() 125 EXPECT_EQ(json->Get(3)->GetDouble(), 10.5); in HWTEST_F_L0() 164 ASSERT_EQ(root->GetDouble("c", &d), Result::SUCCESS); in HWTEST_F_L0() 231 double result3 = str.GetDouble(0.1); // 0.1:num in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astDump.cpp | 148 if (std::isinf(number.GetDouble())) { in SerializeNumber() 151 ss_ << number.GetDouble(); in SerializeNumber()
|
/arkcompiler/ets_frontend/ets2panda/lexer/token/ |
H A D | number.h | 140 double GetDouble() const in GetDouble() function 191 return GetDouble();
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/ |
H A D | numberLiteral.cpp | 56 dumper->Add(number_.GetDouble()); in Dump()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | number_helper_test.cpp | 583 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), -5); in HWTEST_F_L0() 590 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0() 595 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0() 601 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 255); in HWTEST_F_L0() 606 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 16); in HWTEST_F_L0() 611 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 4660); in HWTEST_F_L0() 616 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 18); in HWTEST_F_L0() 621 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 4660); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | literals.h | 104 double GetDouble() const in GetDouble() function in ark::es2panda::ark::es2panda::ark::es2panda::compiler::Literal
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | typeElaborationContext.cpp | 105 return checker_->Allocator()->New<NumberLiteralType>(prop->Key()->AsNumberLiteral()->Number().GetDouble()); in NonComputedPropKeyType()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | frame_test.cpp | 124 EXPECT_EQ(frameHandler.GetVReg(0).GetDouble(), f64); in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_number.h | 187 int64_t bits = base::bit_cast<int64_t>(number.GetDouble()); in GetNumberHash()
|
H A D | builtins_date.cpp | 41 double now = JSDate::Now().GetDouble(); in DateConstructor() 67 timeValue = JSTaggedValue(JSDate::TimeClip(timeValue.GetDouble())); in DateConstructor() 161 if (tv->IsDouble() && !std::isfinite(tv->GetDouble())) { in ToJSON()
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | helpers.cpp | 370 if (util::Helpers::IsInteger<uint32_t>(lit->Number().GetDouble())) { in ToConstantLiteral() 371 return compiler::Literal(static_cast<uint32_t>(lit->Number().GetDouble())); in ToConstantLiteral() 373 return compiler::Literal(lit->Number().GetDouble()); in ToConstantLiteral()
|