Home
last modified time | relevance | path

Searched refs:lossless (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/test/fuzztest/biginttouint64_fuzzer/
Dbiginttouint64_fuzzer.cpp45 bool lossless = false; in BigIntToUint64FuzzTest() local
46 bigint->BigIntToUint64(vm, &cValue, &lossless); in BigIntToUint64FuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/biginttoint64_fuzzer/
Dbiginttoint64_fuzzer.cpp45 bool lossless = false; in BigIntToInt64FuzzTest() local
46 bigint->BigIntToInt64(vm, &cValue, &lossless); in BigIntToInt64FuzzTest()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_bigint_test.cpp680 bool lossless = false; in HWTEST_F_L0() local
681 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint1), &cValue, &lossless); in HWTEST_F_L0()
683 EXPECT_TRUE(lossless); in HWTEST_F_L0()
684 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint2), &cValue, &lossless); in HWTEST_F_L0()
686 EXPECT_TRUE(lossless); in HWTEST_F_L0()
687 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint3), &cValue, &lossless); in HWTEST_F_L0()
689 EXPECT_TRUE(lossless); in HWTEST_F_L0()
690 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint4), &cValue, &lossless); in HWTEST_F_L0()
692 EXPECT_TRUE(lossless); in HWTEST_F_L0()
693 BigInt::BigIntToInt64(thread, JSHandle<JSTaggedValue>(resBigint5), &cValue, &lossless); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.cpp632 bool lossless = true; in SetValueInBufferForBigInt() local
634 BigInt::BigIntToUint64(thread, val, reinterpret_cast<uint64_t *>(&value), &lossless); in SetValueInBufferForBigInt()
636 BigInt::BigIntToInt64(thread, val, reinterpret_cast<int64_t *>(&value), &lossless); in SetValueInBufferForBigInt()
654 bool lossless = true; in SetValueInBufferForBigInt() local
658 BigInt::BigIntToUint64(thread, valHandle, reinterpret_cast<uint64_t *>(&value), &lossless); in SetValueInBufferForBigInt()
660 BigInt::BigIntToInt64(thread, valHandle, reinterpret_cast<int64_t *>(&value), &lossless); in SetValueInBufferForBigInt()
Dbuiltins_atomics.cpp473 bool lossless = true; in HandleWithBigInt64() local
474 BigInt::BigIntToInt64(thread, value, &val, &lossless); in HandleWithBigInt64()
482 BigInt::BigIntToInt64(thread, newValue, &newVal, &lossless); in HandleWithBigInt64()
499 bool lossless = true; in HandleWithBigUint64() local
500 BigInt::BigIntToUint64(thread, value, &val, &lossless); in HandleWithBigUint64()
507 BigInt::BigIntToUint64(thread, newValue, &newVal, &lossless); in HandleWithBigUint64()
/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.h111 …d BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool *lossless);
112 …BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, bool *lossless);
Djs_bigint.cpp587 …t::BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool *lossless) in BigIntToInt64() argument
590 ASSERT(lossless != nullptr); in BigIntToInt64()
597 *lossless = true; in BigIntToInt64()
599 *lossless = false; in BigIntToInt64()
604 …:BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, bool *lossless) in BigIntToUint64() argument
607 ASSERT(lossless != nullptr); in BigIntToUint64()
614 *lossless = true; in BigIntToUint64()
616 *lossless = false; in BigIntToUint64()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp1356 bool lossless = true; in HWTEST_F_L0() local
1357 maxBigintUint64->BigIntToInt64(vm_, &num, &lossless); in HWTEST_F_L0()
1369 bool lossless = true; in HWTEST_F_L0() local
1370 maxBigintUint64->BigIntToUint64(vm_, &num, &lossless); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h535 void BigIntToInt64(const EcmaVM *vm, int64_t *cValue, bool *lossless);
536 void BigIntToUint64(const EcmaVM *vm, uint64_t *cValue, bool *lossless);
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp1134 void BigIntRef::BigIntToInt64(const EcmaVM *vm, int64_t *cValue, bool *lossless) in BigIntToInt64() argument
1140 BigInt::BigIntToInt64(thread, bigintVal, cValue, lossless); in BigIntToInt64()
1143 void BigIntRef::BigIntToUint64(const EcmaVM *vm, uint64_t *cValue, bool *lossless) in BigIntToUint64() argument
1149 BigInt::BigIntToUint64(thread, bigintVal, cValue, lossless); in BigIntToUint64()