/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_test.cpp | 73 [[maybe_unused]] double temp = jsDate->GetTimeValue().GetDouble(); in HWTEST_F_L0() 95 EXPECT_EQ(ms.GetDouble(), 1605788298132.0); in HWTEST_F_L0() 99 EXPECT_EQ(ms.GetDouble(), -2808633901000.0); in HWTEST_F_L0() 103 EXPECT_EQ(ms.GetDouble(), 1605744000000.0); in HWTEST_F_L0() 107 EXPECT_EQ(ms.GetDouble(), 1604188800000.0); in HWTEST_F_L0() 111 EXPECT_EQ(ms.GetDouble(), 1673366400000.0); in HWTEST_F_L0() 115 EXPECT_EQ(ms.GetDouble(), 8640000000000000.0); in HWTEST_F_L0() 119 EXPECT_EQ(ms.GetDouble(), -8640000000000000.0); in HWTEST_F_L0() 123 EXPECT_EQ(ms.GetDouble(), 1577881080000.0); in HWTEST_F_L0() 127 EXPECT_EQ(ms.GetDouble(), 1577881097231.0); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
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(), base::INT32_BITS); in GetBitOPDate()
|
D | ic_compare_op.cpp | 231 leftDouble = left.IsInt() ? static_cast<double>(left.GetInt()) : left.GetDouble(); in Compare() 232 rightDouble = right.IsInt() ? static_cast<double>(right.GetInt()) : right.GetDouble(); in Compare()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | fast_runtime_stub-inl.h | 50 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv() 51 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastDiv() 76 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastMod() 77 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastMod() 93 return JSTaggedValue(!std::isnan(left.GetDouble())); in FastEqual() 125 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastStrictEqual() 126 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastStrictEqual()
|
D | interpreter-inl.h | 1064 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in RunInternal() 1076 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in RunInternal() 1088 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in RunInternal() 1100 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in RunInternal() 1112 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in RunInternal() 1124 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in RunInternal() 1656 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in RunInternal() 1657 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in RunInternal() 1687 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in RunInternal() 1688 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in RunInternal() [all …]
|
D | interpreter_assembly.cpp | 363 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in HandleJeqzImm8() 379 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in HandleJeqzImm16() 395 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in HandleJeqzImm32() 411 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in HandleJnezImm8() 427 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in HandleJnezImm16() 443 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in HandleJnezImm32() 687 SET_ACC(JSTaggedValue(-value.GetDouble())); in HandleNegImm8() 709 number = base::NumberHelper::DoubleToInt(value.GetDouble(), base::INT32_BITS); in HandleNotImm8() 737 SET_ACC(JSTaggedValue(value.GetDouble() + 1.0)); in HandleIncImm8() 764 SET_ACC(JSTaggedValue(value.GetDouble() - 1.0)); in HandleDecImm8() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_number.h | 59 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32() 132 return JSTaggedNumber(GetDouble() + 1.0); 144 return JSTaggedNumber(GetDouble() - 1.0);
|
D | tagged_dictionary.cpp | 189 int32_t keyValue = static_cast<int32_t>(static_cast<uint32_t>(key.GetDouble())); in Hash() 212 int32_t keyValue = static_cast<int32_t>(static_cast<uint32_t>(key.GetDouble())); in IsMatch() 216 return key.GetDouble() == other.GetDouble(); in IsMatch()
|
D | js_tagged_value-inl.h | 50 double d = GetDouble(); in ToBoolean() 419 return StrictNumberEquals(x.GetDouble(), y.GetDouble()); in StrictEqual() 1440 ASSERT(GetDouble() <= TaggedArray::MAX_ARRAY_INDEX); in GetArrayLength() 1441 return static_cast<uint32_t>(GetDouble()); in GetArrayLength() 1456 double d = key.GetDouble(); in ToElementIndex()
|
D | ecma_macros.h | 247 if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { \ 263 …if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { … 280 double result = jsDate->GetDateValue(jsDate->GetTimeValue().GetDouble(), code, isLocal); \
|
D | js_date.cpp | 247 double localOffset = this->GetLocalOffset().GetDouble(); in GetLocalOffsetInMin() 634 double timeMs = this->GetTimeValue().GetDouble(); in GetThisDateValues() 737 localMin = GetLocalOffsetFromOS(static_cast<int64_t>(this->GetTimeValue().GetDouble()), true); in ToString() 768 localMin = GetLocalOffsetFromOS(static_cast<int64_t>(this->GetTimeValue().GetDouble()), true); in ToTimeString() 853 double timeMs = this->GetTimeValue().GetDouble(); in SetDateValue()
|
D | tagged_node.h | 54 if (key.IsDouble() && key.GetDouble() == 0.0) { in Hash()
|
D | js_tagged_value.h | 253 ARK_INLINE double GetDouble() const in GetDouble() function 377 return IsInt() ? GetInt() : GetDouble(); in GetNumber()
|
D | linked_hash_table.cpp | 254 key = JSTaggedValue::TryCastDoubleToInt32(key.GetDouble()); in Hash()
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_json.cpp | 323 double PtJson::GetDouble(double defaultValue) const in GetDouble() function in panda::ecmascript::tooling::PtJson 368 Result ret = GetDouble(key, &result); in GetInt() 378 Result ret = GetDouble(key, &result); in GetInt64() 388 Result ret = GetDouble(key, &result); in GetUInt() 395 Result PtJson::GetDouble(const char *key, double *value) const in GetDouble() function in panda::ecmascript::tooling::PtJson
|
D | pt_json.h | 90 double GetDouble(double defaultValue = 0.0) const; 102 Result GetDouble(const char *key, double *value) const;
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 439 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), -5); in HWTEST_F_L0() 445 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 27); in HWTEST_F_L0() 449 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 27); in HWTEST_F_L0() 454 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 255); in HWTEST_F_L0() 458 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 16); in HWTEST_F_L0() 462 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 4660); in HWTEST_F_L0() 466 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 18); in HWTEST_F_L0() 470 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix).GetDouble(), 4660); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | literal.h | 63 double GetDouble() const;
|
D | literal.cpp | 38 double Literal::GetDouble() const in GetDouble() function in panda::es2panda::ir::Literal
|
/arkcompiler/toolchain/tooling/test/ |
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()
|
D | debugger_returns_test.cpp | 314 ASSERT_EQ(getHeapUsageReturns->ToJson()->GetDouble("usedSize", &pUsedSize), Result::SUCCESS); in HWTEST_F_L0() 318 ASSERT_EQ(getHeapUsageReturns->ToJson()->GetDouble("totalSize", &pTotalSize), Result::SUCCESS); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 92 return number.IsInt() || (number.IsDouble() && std::isfinite(number.GetDouble())); in IsFinite() 96 return number.IsDouble() && std::isnan(number.GetDouble()); in IsNaN()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_date.cpp | 46 double now = JSDate::Now().GetDouble(); in DateConstructor() 72 timeValue = JSTaggedValue(JSDate::TimeClip(timeValue.GetDouble())); in DateConstructor() 166 if (tv->IsDouble() && !std::isfinite(tv->GetDouble())) { in ToJSON()
|
D | builtins_bigint.cpp | 142 std::string result = numberFormatter->Format(x->GetDouble()); in ToLocaleString()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_date_test.cpp | 870 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*jsDate)->GetTimeValue().GetDouble()), true); in HWTEST_F_L0() 895 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*js_date1)->GetTimeValue().GetDouble()), tru… in HWTEST_F_L0() 920 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*js_date2)->GetTimeValue().GetDouble()), tru… in HWTEST_F_L0() 951 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*jsDate)->GetTimeValue().GetDouble()), true); in HWTEST_F_L0() 975 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*js_date1)->GetTimeValue().GetDouble()), tru… in HWTEST_F_L0() 998 …localMin = GetLocalOffsetFromOS(static_cast<int64_t>((*js_date2)->GetTimeValue().GetDouble()), tru… in HWTEST_F_L0()
|