Home
last modified time | relevance | path

Searched refs:ToInt32 (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_number.h54 inline int32_t ToInt32() const in ToInt32() function
64 return ToInt32(); in ToUint32()
Djs_tagged_value-inl.h207 inline int32_t JSTaggedValue::ToInt32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) in ToInt32() function
216 return ToInt32(thread, tagged); in ToUint32()
Djs_tagged_value.h418 static int32_t ToInt32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged);
Djs_typed_array.cpp412 uint32_t k = static_cast<uint32_t>(JSTaggedValue::ToInteger(thread, indexHandle).ToInt32()); in IntegerIndexedElementGet()
Djs_object.cpp2251 return JSTaggedValue::ToInt32(thread, valueHandle); in GetHash()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.cpp93 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/
Dtagged_value_test.cpp406 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 …]
Djs_serializer_test.cpp433 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/
Djs_api_arraylist.cpp217 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/
Dbuiltins_atomics.cpp139 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()
Dbuiltins_string.cpp148 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()
Dbuiltins_math.cpp417 value1 = numberValue1.ToInt32(); in Imul()
418 value2 = numberValue2.ToInt32(); in Imul()
Dbuiltins_number.cpp195 radix = JSTaggedValue::ToInt32(thread, arg2); in ParseInt()
Dbuiltins_dataview.cpp82 viewByteLen = static_cast<uint32_t>(byteLen.ToInt32()); in DataViewConstructor()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_reflect_test.cpp493 ASSERT_EQ(JSTaggedValue::ToInt32(thread, ruler), 106); in HWTEST_F_L0()
Dbuiltins_json_test.cpp270 int32_t number = JSTaggedValue::ToInt32(thread, value); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h763 int32_t number = JSTaggedValue::ToInt32(thread, inputVal); in RuntimeNot()
1784 int32_t res = JSTaggedValue::ToInt32(thread, value); in RuntimeToJSTaggedValueWithInt32()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp2966 int32_t number = JSTaggedValue::ToInt32(thread, JSNApiHelper::ToJSHandle(this)); in Int32Value()