/arkcompiler/ets_runtime/test/fuzztest/biginttoint64_fuzzer/ |
H A D | biginttoint64_fuzzer.cpp | 45 bool lossless = false;
in BigIntToInt64FuzzTest() local 46 bigint->BigIntToInt64(vm, &cValue, &lossless);
in BigIntToInt64FuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/biginttouint64_fuzzer/ |
H A D | biginttouint64_fuzzer.cpp | 45 bool lossless = false;
in BigIntToUint64FuzzTest() local 46 bigint->BigIntToUint64(vm, &cValue, &lossless);
in BigIntToUint64FuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_bigint_test.cpp | 656 bool lossless = false; in HWTEST_F_L0() local 657 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint1), &cValue, &lossless); in HWTEST_F_L0() 659 EXPECT_TRUE(lossless); in HWTEST_F_L0() 660 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint2), &cValue, &lossless); in HWTEST_F_L0() 662 EXPECT_TRUE(lossless); in HWTEST_F_L0() 663 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint3), &cValue, &lossless); in HWTEST_F_L0() 665 EXPECT_TRUE(lossless); in HWTEST_F_L0() 666 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint4), &cValue, &lossless); in HWTEST_F_L0() 668 EXPECT_TRUE(lossless); in HWTEST_F_L0() 669 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint5), &cValue, &lossless); in HWTEST_F_L0() 702 bool lossless = false; HWTEST_F_L0() local [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | interop_common.cpp | 52 bool lossless; in GetBigInt() local 55 NAPI_ASSERT_OK(napi_get_value_bigint_uint64(env, jsVal, &words[0], &lossless)); in GetBigInt()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_atomics.cpp | 356 bool lossless = true; in AtomicReadModifyWriteCase() local 357 BigInt::BigIntToInt64(thread, value, &val, &lossless); in AtomicReadModifyWriteCase() 359 return HandleWithBigInt64(thread, size, block, indexedPosition, argv, op, val, lossless); in AtomicReadModifyWriteCase() 363 bool lossless = true; in AtomicReadModifyWriteCase() local 364 BigInt::BigIntToUint64(thread, value, &val, &lossless); in AtomicReadModifyWriteCase() 366 return HandleWithBigUint64(thread, size, block, indexedPosition, argv, op, val, lossless); in AtomicReadModifyWriteCase() 517 int64_t &tag, bool &lossless) in HandleWithBigInt64() 531 BigInt::BigIntToInt64(thread, newValue, &newVal, &lossless); in HandleWithBigInt64() 544 uint64_t &tag, bool &lossless) in HandleWithBigUint64() 558 BigInt::BigIntToUint64(thread, newValue, &newVal, &lossless); in HandleWithBigUint64() 514 HandleWithBigInt64(JSThread *thread, uint32_t size, uint8_t *block, uint32_t indexedPosition, EcmaRuntimeCallInfo *argv, const callbackfun &op, int64_t &tag, bool &lossless) HandleWithBigInt64() argument 541 HandleWithBigUint64(JSThread *thread, uint32_t size, uint8_t *block, uint32_t indexedPosition, EcmaRuntimeCallInfo *argv, const callbackfun &op, uint64_t &tag, bool &lossless) HandleWithBigUint64() argument [all...] |
H A D | builtins_atomics.h | 131 EcmaRuntimeCallInfo *argv, const callbackfun &op, int64_t &tag, bool &lossless);
134 EcmaRuntimeCallInfo *argv, const callbackfun &op, uint64_t &tag, bool &lossless);
|
H A D | builtins_arraybuffer.cpp | 677 bool lossless = true; in SetValueInBufferForBigInt() local 679 BigInt::BigIntToUint64(thread, val, reinterpret_cast<uint64_t *>(&value), &lossless); in SetValueInBufferForBigInt() 681 BigInt::BigIntToInt64(thread, val, reinterpret_cast<int64_t *>(&value), &lossless); in SetValueInBufferForBigInt() 699 bool lossless = true; in SetValueInBufferForBigInt() local 703 BigInt::BigIntToUint64(thread, valHandle, reinterpret_cast<uint64_t *>(&value), &lossless); in SetValueInBufferForBigInt() 705 BigInt::BigIntToInt64(thread, valHandle, reinterpret_cast<int64_t *>(&value), &lossless); in SetValueInBufferForBigInt() 914 bool lossless = true; in FastSetValueInBufferForBigInt() local 918 BigInt::BigIntToUint64(thread, valHandle, reinterpret_cast<uint64_t *>(&value), &lossless); in FastSetValueInBufferForBigInt() 920 BigInt::BigIntToInt64(thread, valHandle, reinterpret_cast<int64_t *>(&value), &lossless); in FastSetValueInBufferForBigInt()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_bigint.h | 112 static void BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool *lossless); 113 static void BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, bool *lossless);
|
H A D | js_bigint.cpp | 618 void BigInt::BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool *lossless) in BigIntToInt64() argument 621 ASSERT(lossless != nullptr); in BigIntToInt64() 634 *lossless = true; in BigIntToInt64() 636 *lossless = false; in BigIntToInt64() 641 void BigInt::BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, bool *lossless) in BigIntToUint64() argument 644 ASSERT(lossless != nullptr); in BigIntToUint64() 657 *lossless = true; in BigIntToUint64() 659 *lossless = false; in BigIntToUint64()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/napi_impl/detail/ |
H A D | enumerate_napi.h | 114 FN_MACRO(napi_get_value_bigint_uint64, napi_env, env, napi_value, value, uint64_t *, result, bool *, lossless) \
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_first_tests.cpp | 1847 * handle lossless conversions correctly. 1859 bool lossless = true; in HWTEST_F_L0() local 1860 maxBigintUint64->BigIntToInt64(vm_, &num, &lossless); in HWTEST_F_L0() 1867 * @tc.desc:Is the method for converting BigInt objects to 64 bit unsigned integers correct and can lossless 1880 bool lossless = true; in HWTEST_F_L0() local 1881 maxBigintUint64->BigIntToUint64(vm_, &num, &lossless); in HWTEST_F_L0()
|
H A D | ffi_workload.cpp | 7684 bool lossless = true; in HWTEST_F_L0() local 7687 maxBigintUint64->BigIntToInt64(vm_, &toNum, &lossless); in HWTEST_F_L0() 7700 bool lossless = true; in HWTEST_F_L0() local 7703 maxBigintUint64->BigIntToUint64(vm_, &toNum, &lossless); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
H A D | jsnapi_expo.h | 1011 void BigIntToInt64(const EcmaVM *vm, int64_t *value, bool *lossless); 1012 void BigIntToUint64(const EcmaVM *vm, uint64_t *value, bool *lossless);
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi_expo.cpp | 2290 void BigIntRef::BigIntToInt64(const EcmaVM *vm, int64_t *value, bool *lossless) in BigIntToInt64() argument 2298 BigInt::BigIntToInt64(thread, bigintVal, value, lossless); in BigIntToInt64() 2301 void BigIntRef::BigIntToUint64(const EcmaVM *vm, uint64_t *value, bool *lossless) in BigIntToUint64() argument 2309 BigInt::BigIntToUint64(thread, bigintVal, value, lossless); in BigIntToUint64()
|