/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 238 EXPECT_EQ(NumberHelper::DoubleToInt(9.0, INT8_BITS), 9); in HWTEST_F_L0() 239 EXPECT_EQ(NumberHelper::DoubleToInt(9.5555555555555559, INT8_BITS), 9); in HWTEST_F_L0() 240 EXPECT_EQ(NumberHelper::DoubleToInt(9.9999999999999999, INT8_BITS), 10); in HWTEST_F_L0() 241 EXPECT_EQ(NumberHelper::DoubleToInt(128.123456, INT8_BITS), 128); in HWTEST_F_L0() 242 EXPECT_EQ(NumberHelper::DoubleToInt(-128.987654321, INT8_BITS), -128); in HWTEST_F_L0() 245 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT8_BITS), 0); in HWTEST_F_L0() 246 EXPECT_EQ(NumberHelper::DoubleToInt(-256.0, INT8_BITS), 0); in HWTEST_F_L0() 249 EXPECT_EQ(NumberHelper::DoubleToInt(nanDouble, INT8_BITS), 0); in HWTEST_F_L0() 251 EXPECT_EQ(NumberHelper::DoubleToInt(infDouble, INT8_BITS), 0); in HWTEST_F_L0() 256 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT16_BITS), 256); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_number.h | 59 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32() 69 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT16_BITS); in ToInt16() 79 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT8_BITS); in ToInt8()
|
D | js_tagged_value-inl.h | 211 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT32_BITS); in ToInt32() 224 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT16_BITS); in ToInt16() 237 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT8_BITS); in ToInt8() 1457 … uint32_t index = static_cast<uint32_t>(base::NumberHelper::DoubleToInt(d, base::INT32_BITS)); in ToElementIndex()
|
D | js_tagged_value.cpp | 115 int32_t intvalue = base::NumberHelper::DoubleToInt(doubleValue, base::INT32_BITS); in WithinInt32()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | operations_stub_builder.cpp | 689 opNumber1 = DoubleToInt(glue, rightDouble); in Shl() 702 opNumber0 = DoubleToInt(glue, leftDouble); in Shl() 711 opNumber0 = DoubleToInt(glue, leftDouble); in Shl() 712 opNumber1 = DoubleToInt(glue, rightDouble); in Shl() 782 opNumber1 = DoubleToInt(glue, rightDouble); in Shr() 795 opNumber0 = DoubleToInt(glue, leftDouble); in Shr() 804 opNumber0 = DoubleToInt(glue, leftDouble); in Shr() 805 opNumber1 = DoubleToInt(glue, rightDouble); in Shr() 884 opNumber1 = DoubleToInt(glue, rightDouble); in Ashr() 897 opNumber0 = DoubleToInt(glue, leftDouble); in Ashr() [all …]
|
D | call_signature.h | 426 V(DoubleToInt) \
|
D | lcr_lowering.cpp | 495 return builder_.DoubleToInt(gate, exit); in ConvertFloat64ToInt32() 522 return builder_.DoubleToInt(builder_.GetDoubleOfTDouble(gate), exit); in ConvertTaggedDoubleToInt32()
|
D | circuit_builder-inl.h | 164 GateRef CircuitBuilder::DoubleToInt(GateRef x, Label *exit) in DoubleToInt() function 182 result = CallNGCRuntime(acc_.GetGlueFromArgList(), RTSTUB_ID(DoubleToInt), in DoubleToInt()
|
D | stub_builder.h | 473 GateRef DoubleToInt(GateRef glue, GateRef x);
|
D | circuit_builder.h | 451 inline GateRef DoubleToInt(GateRef x, Label *exit);
|
D | call_signature.cpp | 1666 DEF_CALL_SIGNATURE(DoubleToInt) in DEF_CALL_SIGNATURE() argument
|
D | stub_builder.cpp | 5013 GateRef StubBuilder::DoubleToInt(GateRef glue, GateRef x) in DoubleToInt() function in panda::ecmascript::kungfu::StubBuilder 5039 result = CallNGCRuntime(glue, RTSTUB_ID(DoubleToInt), { x }); in DoubleToInt() 6192 result = DoubleToInt(glue, GetDoubleOfTDouble(len)); in GetLengthOfJsArray() 6258 GateRef int32Len = DoubleToInt(glue, doubleLen); in CreateListFromArrayLike()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 105 static int32_t DoubleToInt(double d, size_t bits);
|
D | number_helper.cpp | 664 int32_t NumberHelper::DoubleToInt(double d, size_t bits) in DoubleToInt() function in panda::ecmascript::base::NumberHelper 697 return base::NumberHelper::DoubleToInt(d, base::INT32_BITS); in DoubleInRangeInt32()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_stubs.cpp | 188 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS() 267 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS() 383 start = DoubleToInt(glue, GetDoubleOfTDouble(startTag)); in DECLARE_BUILTINS() 404 end = DoubleToInt(glue, GetDoubleOfTDouble(endTag)); in DECLARE_BUILTINS() 530 pos = DoubleToInt(glue, GetDoubleOfTDouble(posTag)); in DECLARE_BUILTINS() 1153 GateRef doubleToInt = DoubleToInt(glue, doubleLength); in DECLARE_BUILTINS()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_binary_op.h | 265 … base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in GetBitOPDate() 268 … base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BITS); in GetBitOPDate()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.h | 110 V(DoubleToInt) \ 371 static int32_t DoubleToInt(double x);
|
D | runtime_stubs.cpp | 2182 int32_t RuntimeStubs::DoubleToInt(double x) in DoubleToInt() function in panda::ecmascript::RuntimeStubs 2184 return base::NumberHelper::DoubleToInt(x, base::INT32_BITS); in DoubleToInt()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter-inl.h | 1914 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal() 1916 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal() 1951 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal() 1953 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal() 1986 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal() 1988 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal() 2018 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal() 2020 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal() 2049 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in RunInternal() 2051 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in RunInternal() [all …]
|
D | interpreter_assembly.cpp | 709 number = base::NumberHelper::DoubleToInt(value.GetDouble(), base::INT32_BITS); in HandleNotImm8() 1264 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleShl2Imm8V8() 1266 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleShl2Imm8V8() 1304 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleShr2Imm8V8() 1306 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleShr2Imm8V8() 1342 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleAshr2Imm8V8() 1344 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleAshr2Imm8V8() 1378 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleAnd2Imm8V8() 1380 …right.IsInt() ? right.GetInt() : base::NumberHelper::DoubleToInt(right.GetDouble(), base::INT32_BI… in HandleAnd2Imm8V8() 1413 …left.IsInt() ? left.GetInt() : base::NumberHelper::DoubleToInt(left.GetDouble(), base::INT32_BITS); in HandleOr2Imm8V8() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 1969 return base::NumberHelper::DoubleToInt(d, base::INT32_BITS); in ConvertDoubleToInt()
|