/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_number.h | 54 inline int32_t ToInt32() const in ToInt32() function 64 return ToInt32(); in ToUint32()
|
D | js_tagged_value-inl.h | 207 inline int32_t JSTaggedValue::ToInt32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) in ToInt32() function 216 return ToInt32(thread, tagged); in ToUint32()
|
D | js_tagged_value.h | 418 static int32_t ToInt32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged);
|
D | js_typed_array.cpp | 412 uint32_t k = static_cast<uint32_t>(JSTaggedValue::ToInteger(thread, indexHandle).ToInt32()); in IntegerIndexedElementGet()
|
D | js_object.cpp | 2251 return JSTaggedValue::ToInt32(thread, valueHandle); in GetHash()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_vector.cpp | 93 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Insert() 169 JSTaggedValue::ToInt32(thread, newCapacity)); in IncreaseCapacityTo() 194 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Get() 243 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in GetIndexFrom() 333 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in GetLastIndexFrom() 383 …r::RemoveByIndex(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToInt32(thread, index)); in RemoveByIndex() 410 JSTaggedValue::ToInt32(thread, fromIndex), in RemoveByRange() 411 JSTaggedValue::ToInt32(thread, toIndex)); in RemoveByRange() 437 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Set() 469 … JSTaggedValue::ToInt32(thread, fromIndex), in SubVector() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | tagged_value_test.cpp | 406 HWTEST_F_L0(JSTaggedValueTest, ToInt32) in HWTEST_F_L0() argument 411 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, intV)); in HWTEST_F_L0() 415 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, doubleV1)); in HWTEST_F_L0() 419 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, doubleV2)); in HWTEST_F_L0() 424 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, doubleV3)); in HWTEST_F_L0() 429 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, doubleV4)); in HWTEST_F_L0() 434 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, doubleV5)); in HWTEST_F_L0() 438 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, undefinedV)); in HWTEST_F_L0() 442 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, holeV)); in HWTEST_F_L0() 446 result = JSTaggedValue::ToInt32(thread, JSHandle<JSTaggedValue>(thread, nullV)); in HWTEST_F_L0() [all …]
|
D | js_serializer_test.cpp | 433 EXPECT_TRUE(JSTaggedValue::ToInt32(thread, resA) == a) << "Not Same Value"; in Int32Test() 434 EXPECT_TRUE(JSTaggedValue::ToInt32(thread, resMin) == min) << "Not Same Value"; in Int32Test() 435 EXPECT_TRUE(JSTaggedValue::ToInt32(thread, resB) == b) << "Not Same Value"; in Int32Test() 486 … EXPECT_TRUE(JSTaggedValue::ToInt32(thread, resValue) == JSTaggedValue::ToInt32(thread, value)) in JSMapTest() 683 int32_t byteArrayVal = JSTaggedValue::ToInt32(thread, taggedVal); in TypedArrayTest2()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_arraylist.cpp | 217 int32_t startIndex = JSTaggedValue::ToInt32(thread, value1); in RemoveByRange() 218 int32_t endIndex = JSTaggedValue::ToInt32(thread, value2); in RemoveByRange() 297 int fromIndex = JSTaggedValue::ToInt32(thread, value1); in SubArrayList() 298 int toIndex = JSTaggedValue::ToInt32(thread, value2); in SubArrayList()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_atomics.cpp | 139 BytesSize size = BytesSize(JSTaggedValue::ToInt32(thread, sizeTag)); in IsLockFree() 191 v = static_cast<int64_t>(JSTaggedValue::ToInt32(thread, value)); in Wait() 451 int32_t tag = JSTaggedValue::ToInt32(thread, value); in HandleWithInt32() 457 int32_t newTag = JSTaggedValue::ToInt32(thread, newValue); in HandleWithInt32()
|
D | builtins_string.cpp | 148 int32_t cp = nextCpVal.ToInt32(); in FromCodePoint() 264 pos = posVal.ToInt32(); in CharAt() 295 pos = posVal.ToInt32(); in CharCodeAt() 406 pos = static_cast<uint32_t>(posVal.ToInt32()); in EndsWith() 481 pos = posVal.ToInt32(); in IndexOf() 516 pos = posVal.ToInt32(); in LastIndexOf() 1492 pos = posVal.ToInt32(); in StartsWith() 1813 int32_t start = numStart.ToInt32(); in SubStr() 1823 end = lengthNumber.ToInt32(); in SubStr()
|
D | builtins_math.cpp | 417 value1 = numberValue1.ToInt32(); in Imul() 418 value2 = numberValue2.ToInt32(); in Imul()
|
D | builtins_number.cpp | 195 radix = JSTaggedValue::ToInt32(thread, arg2); in ParseInt()
|
D | builtins_dataview.cpp | 82 viewByteLen = static_cast<uint32_t>(byteLen.ToInt32()); in DataViewConstructor()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_reflect_test.cpp | 493 ASSERT_EQ(JSTaggedValue::ToInt32(thread, ruler), 106); in HWTEST_F_L0()
|
D | builtins_json_test.cpp | 270 int32_t number = JSTaggedValue::ToInt32(thread, value); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 763 int32_t number = JSTaggedValue::ToInt32(thread, inputVal); in RuntimeNot() 1784 int32_t res = JSTaggedValue::ToInt32(thread, value); in RuntimeToJSTaggedValueWithInt32()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 2966 int32_t number = JSTaggedValue::ToInt32(thread, JSNApiHelper::ToJSHandle(this)); in Int32Value()
|