Home
last modified time | relevance | path

Searched refs:GetDouble (Results 1 - 25 of 99) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_date_test.cpp49 [[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 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(), bas in GetBitOPDate()
[all...]
/arkcompiler/toolchain/tooling/base/
H A Dpt_json.cpp332 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 Dpt_json.h92 double GetDouble(double defaultValue = 0.0) const;
105 Result GetDouble(const char *key, double *value) const;
/arkcompiler/ets_runtime/ecmascript/
H A Djs_tagged_number.h60 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 Delement_accessor-inl.h78 base::bit_cast<JSTaggedType>(rawValue.GetDouble())); in FastSet()
H A Dtagged_dictionary.cpp258 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 Dfast_runtime_stub-inl.h51 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 Dliteral.h65 double GetDouble() const;
H A Dliteral.cpp38 double Literal::GetDouble() const in GetDouble() function in panda::es2panda::ir::Literal
/arkcompiler/ets_runtime/ecmascript/containers/
H A Dcontainers_plainarray.cpp69 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 Dcontainers_lightweightmap.cpp177 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 Dcontainers_list.cpp93 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 Dvregister.h140 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 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()
/arkcompiler/ets_frontend/ets2panda/ir/
H A DastDump.cpp148 if (std::isinf(number.GetDouble())) { in SerializeNumber()
151 ss_ << number.GetDouble(); in SerializeNumber()
/arkcompiler/ets_frontend/ets2panda/lexer/token/
H A Dnumber.h140 double GetDouble() const in GetDouble() function
191 return GetDouble();
/arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/
H A DnumberLiteral.cpp56 dumper->Add(number_.GetDouble()); in Dump()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dnumber_helper_test.cpp583 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 Dliterals.h104 double GetDouble() const in GetDouble() function in ark::es2panda::ark::es2panda::ark::es2panda::compiler::Literal
/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A DtypeElaborationContext.cpp105 return checker_->Allocator()->New<NumberLiteralType>(prop->Key()->AsNumberLiteral()->Number().GetDouble()); in NonComputedPropKeyType()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dframe_test.cpp124 EXPECT_EQ(frameHandler.GetVReg(0).GetDouble(), f64); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_number.h187 int64_t bits = base::bit_cast<int64_t>(number.GetDouble()); in GetNumberHash()
H A Dbuiltins_date.cpp41 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 Dhelpers.cpp370 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()

Completed in 19 milliseconds

1234