Home
last modified time | relevance | path

Searched refs:GetDouble (Results 1 – 25 of 52) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_date_test.cpp73 [[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/
Dic_binary_op.h44 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()
Dic_compare_op.cpp231 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/
Dfast_runtime_stub-inl.h50 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()
Dinterpreter-inl.h1064 (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 …]
Dinterpreter_assembly.cpp363 (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/
Djs_tagged_number.h59 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32()
132 return JSTaggedNumber(GetDouble() + 1.0);
144 return JSTaggedNumber(GetDouble() - 1.0);
Dtagged_dictionary.cpp189 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()
Djs_tagged_value-inl.h50 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()
Decma_macros.h247 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); \
Djs_date.cpp247 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()
Dtagged_node.h54 if (key.IsDouble() && key.GetDouble() == 0.0) { in Hash()
Djs_tagged_value.h253 ARK_INLINE double GetDouble() const in GetDouble() function
377 return IsInt() ? GetInt() : GetDouble(); in GetNumber()
Dlinked_hash_table.cpp254 key = JSTaggedValue::TryCastDoubleToInt32(key.GetDouble()); in Hash()
/arkcompiler/toolchain/tooling/base/
Dpt_json.cpp323 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
Dpt_json.h90 double GetDouble(double defaultValue = 0.0) const;
102 Result GetDouble(const char *key, double *value) const;
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp439 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/
Dliteral.h63 double GetDouble() const;
Dliteral.cpp38 double Literal::GetDouble() const in GetDouble() function in panda::es2panda::ir::Literal
/arkcompiler/toolchain/tooling/test/
Dpt_json_test.cpp88 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()
Ddebugger_returns_test.cpp314 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/
Dnumber_helper.h92 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/
Dbuiltins_date.cpp46 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()
Dbuiltins_bigint.cpp142 std::string result = numberFormatter->Format(x->GetDouble()); in ToLocaleString()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_date_test.cpp870 …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()

123