Home
last modified time | relevance | path

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

12

/ark/js_runtime/ecmascript/tests/
Djs_date_test.cpp73 [[maybe_unused]] double temp = jsDate->GetTimeValue().GetDouble(); in HWTEST_F_L0()
94 EXPECT_EQ(ms.GetDouble(), 1605788298132.0); in HWTEST_F_L0()
98 EXPECT_EQ(ms.GetDouble(), 1605744000000.0); in HWTEST_F_L0()
102 EXPECT_EQ(ms.GetDouble(), 1604188800000.0); in HWTEST_F_L0()
106 EXPECT_EQ(ms.GetDouble(), 8640000000000000.0); in HWTEST_F_L0()
110 EXPECT_EQ(ms.GetDouble(), -8640000000000000.0); in HWTEST_F_L0()
114 EXPECT_EQ(ms.GetDouble(), 1577881080000.0); in HWTEST_F_L0()
118 EXPECT_EQ(ms.GetDouble(), 1577881097231.0); in HWTEST_F_L0()
122 EXPECT_EQ(ms.GetDouble(), 1604233097231.0); in HWTEST_F_L0()
126 EXPECT_EQ(ms.GetDouble(), -10229658102769.0); in HWTEST_F_L0()
[all …]
Dtagged_value_test.cpp67 ASSERT_DOUBLE_EQ(td.GetDouble(), d); in HWTEST_F_L0()
74 EXPECT_EQ(ReinterpretDoubleToTaggedType(tNan.GetDouble()), ReinterpretDoubleToTaggedType(nan)); in HWTEST_F_L0()
154 EXPECT_EQ(result.GetDouble(), (double)100.0); in HWTEST_F_L0()
838 EXPECT_EQ(result.GetDouble(), -0.0); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/ic/
Dic_binary_op-inl.h37 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in AddWithTSType()
38 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in AddWithTSType()
101 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in SubWithTSType()
102 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in SubWithTSType()
168 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in DivWithTSType()
169 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in DivWithTSType()
202 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in ModWithTSType()
203 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in ModWithTSType()
247 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in GetBitOPDate()
249 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in GetBitOPDate()
Dic_compare_op.cpp232 leftDouble = left.IsInt() ? static_cast<double>(left.GetInt()) : left.GetDouble(); in Compare()
233 rightDouble = right.IsInt() ? static_cast<double>(right.GetInt()) : right.GetDouble(); in Compare()
/ark/js_runtime/ecmascript/
Djs_tagged_number.h58 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32()
128 return JSTaggedNumber(GetDouble() + 1.0);
140 return JSTaggedNumber(GetDouble() - 1.0);
Decma_macros.h269 if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { \
285 …if (std::isnan(JSDate::Cast(msg->GetTaggedObject())->GetTimeValue().GetDouble())) { …
302 double result = jsDate->GetDateValue(jsDate->GetTimeValue().GetDouble(), code, isLocal); \
Djs_tagged_value-inl.h50 double d = GetDouble(); in ToBoolean()
1026 ASSERT(GetDouble() <= TaggedArray::MAX_ARRAY_INDEX); in GetArrayLength()
1027 return static_cast<uint32_t>(GetDouble()); in GetArrayLength()
1041 double d = key.GetDouble(); in ToElementIndex()
Djs_array.cpp67 …rrayLength = JSTaggedValue::ToInteger(thread, JSHandle<JSTaggedValue>(thread, length)).GetDouble(); in ArrayCreate()
97 …rrayLength = JSTaggedValue::ToInteger(thread, JSHandle<JSTaggedValue>(thread, length)).GetDouble(); in ArraySpeciesCreate()
Djs_date.cpp228 double localOffset = this->GetLocalOffset().GetDouble(); in GetLocalOffsetInMin()
636 double timeMs = this->GetTimeValue().GetDouble(); in GetThisDateValues()
810 if (static_cast<int64_t>(this->GetTimeValue().GetDouble()) < CHINA_BEFORE_1900_MS && in ToString()
845 if (static_cast<int64_t>(this->GetTimeValue().GetDouble()) < CHINA_BEFORE_1900_MS && in ToTimeString()
951 double timeMs = this->GetTimeValue().GetDouble(); in SetDateValue()
Druntime_trampolines.cpp225 double result = std::fmod(left.GetDouble(), right.GetDouble()); in DEF_RUNTIME_TRAMPOLINES()
415 double doubleBase = baseValue.IsInt() ? baseValue.GetInt() : baseValue.GetDouble(); in DEF_RUNTIME_TRAMPOLINES()
416 …double doubleExponent = exponentValue.IsInt() ? exponentValue.GetInt() : exponentValue.GetDouble(); in DEF_RUNTIME_TRAMPOLINES()
Djs_serializer.cpp78 return WriteDouble(value->GetDouble()); in WritePrimitiveValue()
351 double timeValue = date->GetTimeValue().GetDouble(); in WriteJSDate()
356 double localOffset = date->GetLocalOffset().GetDouble(); in WriteJSDate()
Dlinked_hash_table.cpp273 if (key.IsDouble() && key.GetDouble() == 0.0) { in Hash()
/ark/js_runtime/ecmascript/tooling/base/
Dpt_json.h87 double GetDouble(double defaultValue = 0.0) const;
98 Result GetDouble(const char *key, double *value) const;
Dpt_json.cpp304 double PtJson::GetDouble(double defaultValue) const in GetDouble() function in panda::ecmascript::tooling::PtJson
349 Result ret = GetDouble(key, &result); in GetInt()
359 Result ret = GetDouble(key, &result); in GetInt64()
366 Result PtJson::GetDouble(const char *key, double *value) const in GetDouble() function in panda::ecmascript::tooling::PtJson
/ark/js_runtime/ecmascript/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()
/ark/js_runtime/ecmascript/base/
Dnumber_helper.h79 return number.IsInt() || (number.IsDouble() && std::isfinite(number.GetDouble())); in IsFinite()
83 return number.IsDouble() && std::isnan(number.GetDouble()); in IsNaN()
/ark/runtime_core/runtime/interpreter/
Dvregister.h214 ALWAYS_INLINE inline double GetDouble() const in GetDouble() function
263 << "(f64) " << GetDouble() << " | " in DumpVReg()
Dvregister-inl.h109 return vreg.GetDouble();
/ark/js_runtime/ecmascript/interpreter/
Dinterpreter-inl.h773 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in RunInternal()
785 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in RunInternal()
797 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in RunInternal()
809 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in RunInternal()
1213 SET_ACC(JSTaggedValue(-value.GetDouble())); in RunInternal()
1234 number = base::NumberHelper::DoubleToInt(value.GetDouble(), base::INT32_BITS); in RunInternal()
1262 SET_ACC(JSTaggedValue(value.GetDouble() + 1.0)) in RunInternal()
1288 SET_ACC(JSTaggedValue(value.GetDouble() - 1.0)) in RunInternal()
1431 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in RunInternal()
1432 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in RunInternal()
[all …]
Dinterpreter_assembly.cpp511 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in HandleJeqzImm8()
527 (GET_ACC().IsDouble() && GET_ACC().GetDouble() == 0)) { in HandleJeqzImm16()
543 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in HandleJnezImm8()
559 (GET_ACC().IsDouble() && GET_ACC().GetDouble() != 0)) { in HandleJnezImm16()
970 SET_ACC(JSTaggedValue(-value.GetDouble())); in HandleNegDynPrefV8()
994 number = base::NumberHelper::DoubleToInt(value.GetDouble(), base::INT32_BITS); in HandleNotDynPrefV8()
1025 SET_ACC(JSTaggedValue(value.GetDouble() + 1.0)) in HandleIncDynPrefV8()
1054 SET_ACC(JSTaggedValue(value.GetDouble() - 1.0)) in HandleDecDynPrefV8()
1232 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in HandleAdd2DynPrefV8()
1233 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in HandleAdd2DynPrefV8()
[all …]
Dfast_runtime_stub-inl.h65 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv()
66 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastDiv()
89 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastMod()
90 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastMod()
106 return JSTaggedValue(!std::isnan(left.GetDouble())); in FastEqual()
138 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastStrictEqual()
139 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastStrictEqual()
192 double number = key.GetDouble(); in TryToElementsIndex()
/ark/runtime_core/runtime/tests/
Dframe_test.cpp95 EXPECT_EQ(f->GetVReg(0).GetDouble(), f64); in TEST()
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_date.cpp37 double now = JSDate::Now().GetDouble(); in DateConstructor()
62 timeValue = JSTaggedValue(JSDate::TimeClip(timeValue.GetDouble())); in DateConstructor()
173 if (tv->IsDouble() && !std::isfinite(tv->GetDouble())) { in ToJSON()
/ark/runtime_core/runtime/include/coretypes/
Dtagged_value.h192 inline double GetDouble() const in GetDouble() function
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_date_test.cpp832 …ast<int64_t>(JSDate::Cast(jsDate.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()
862 …t<int64_t>(JSDate::Cast(js_date1.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()
892 …ast<int64_t>(JSDate::Cast(jsDate.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()
928 …ast<int64_t>(JSDate::Cast(jsDate.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()
956 …t<int64_t>(JSDate::Cast(js_date1.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()
983 …ast<int64_t>(JSDate::Cast(jsDate.GetTaggedValue().GetTaggedObject())->GetTimeValue().GetDouble()) < in HWTEST_F_L0()

12