Home
last modified time | relevance | path

Searched refs:bigint (Results 1 – 25 of 147) sorted by relevance

123456

/arkcompiler/ets_runtime/ecmascript/
Djs_bigint.cpp70 JSHandle<BigInt> bigint = CreateBigint(thread, 3); in GetUint64MaxBigint() local
72 bigint->SetDigit(0, 0); in GetUint64MaxBigint()
73 bigint->SetDigit(1, 0); in GetUint64MaxBigint()
74 bigint->SetDigit(2, 1); in GetUint64MaxBigint()
75 return bigint; in GetUint64MaxBigint()
80 JSHandle<BigInt> bigint = CreateBigint(thread, 2); in GetInt64MaxBigint() local
82 bigint->SetDigit(0, 0); in GetInt64MaxBigint()
83 bigint->SetDigit(1, 0x80000000); // 0x80000000:Int MAX in GetInt64MaxBigint()
84 return bigint; in GetInt64MaxBigint()
101 JSHandle<BigInt> bigint; in SetBigInt() local
[all …]
Djs_bigint.h57 … static JSHandle<BigInt> BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen);
58 static JSHandle<BigInt> BitwiseAddOne(JSThread *thread, JSHandle<BigInt> bigint);
59 static JSHandle<EcmaString> ToString(JSThread *thread, JSHandle<BigInt> bigint,
69 … static JSHandle<BigInt> FormatLeftShift(JSThread *thread, uint32_t shift, JSHandle<BigInt> bigint,
71 static void UnformattedRightShift(JSHandle<BigInt> bigint, uint32_t shift);
94 …static void RightShift(JSHandle<BigInt> bigint, JSHandle<BigInt> x, uint32_t digitMove, uint32_t b…
111 …static void BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool …
112 …static void BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, boo…
115 static JSTaggedValue AsUintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint);
116 static JSTaggedValue AsintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint);
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_bigint_test.cpp453 JSHandle<JSTaggedValue> bigint(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() local
456 bigint = JSHandle<JSTaggedValue>(thread, BigInt::NumberToBigInt(thread, number)); in HWTEST_F_L0()
457 ASSERT_TRUE(bigint->IsBigInt()); in HWTEST_F_L0()
458 bool compareRes = JSTaggedValue::Equal(thread, number, bigint); in HWTEST_F_L0()
462 bigint = JSHandle<JSTaggedValue>(thread, BigInt::NumberToBigInt(thread, number)); in HWTEST_F_L0()
463 ASSERT_TRUE(bigint->IsBigInt()); in HWTEST_F_L0()
464 compareRes = JSTaggedValue::Equal(thread, number, bigint); in HWTEST_F_L0()
465 ASSERT_TRUE(JSHandle<BigInt>::Cast(bigint)->GetSign()); in HWTEST_F_L0()
469 bigint = JSHandle<JSTaggedValue>(thread, BigInt::NumberToBigInt(thread, number)); in HWTEST_F_L0()
470 ASSERT_TRUE(bigint->IsBigInt()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/biginttouint64_fuzzer/
Dbiginttouint64_fuzzer.cpp42 Local<BigIntRef> bigint = BigIntRef::New(vm, input); in BigIntToUint64FuzzTest() local
46 bigint->BigIntToUint64(vm, &cValue, &lossless); in BigIntToUint64FuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/biginttoint64_fuzzer/
Dbiginttoint64_fuzzer.cpp42 Local<BigIntRef> bigint = BigIntRef::New(vm, input); in BigIntToInt64FuzzTest() local
46 bigint->BigIntToInt64(vm, &cValue, &lossless); in BigIntToInt64FuzzTest()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_bigint.cpp58 JSHandle<JSTaggedValue> bigint = GetCallArg(argv, 1); in AsUintN() local
62 JSTaggedValue jsBigint = JSTaggedValue::ToBigInt(thread, bigint); in AsUintN()
76 JSHandle<JSTaggedValue> bigint = GetCallArg(argv, 1); in AsIntN() local
80 JSTaggedValue jsBigint = JSTaggedValue::ToBigInt(thread, bigint); in AsIntN()
/arkcompiler/ets_runtime/test/moduletest/
DBUILD.gn30 "bigint",
155 "bigint",
261 "bigint",
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt10 built-ins/Atomics/add/bigint/bad-range.js
11 built-ins/Atomics/add/bigint/good-views.js
12 built-ins/Atomics/add/bigint/non-shared-bufferdata.js
13 built-ins/Atomics/and/bigint/bad-range.js
14 built-ins/Atomics/and/bigint/good-views.js
15 built-ins/Atomics/and/bigint/non-shared-bufferdata.js
16 built-ins/Atomics/compareExchange/bigint/bad-range.js
17 built-ins/Atomics/compareExchange/bigint/good-views.js
18 built-ins/Atomics/compareExchange/bigint/non-shared-bufferdata.js
19 built-ins/Atomics/exchange/bigint/bad-range.js
[all …]
/arkcompiler/ets_frontend/test262/
Des2015_tests.txt2859 built-ins/Atomics/notify/bigint/null-bufferdata-throws.js
2860 built-ins/Atomics/notify/bigint/non-shared-bufferdata-index-evaluation-throws.js
2861 built-ins/Atomics/notify/bigint/non-shared-bufferdata-non-shared-int-views-throws.js
2862 built-ins/Atomics/notify/bigint/non-bigint64-typedarray-throws.js
2863 built-ins/Atomics/notify/bigint/bad-range.js
2864 built-ins/Atomics/notify/bigint/non-shared-bufferdata-count-evaluation-throws.js
2865 built-ins/Atomics/notify/bigint/non-shared-bufferdata-returns-0.js
2866 built-ins/Atomics/notify/bigint/notify-all-on-loc.js
2919 built-ins/Atomics/wait/bigint/null-bufferdata-throws.js
2920 built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
Dfunction_declaration_7-expected.txt115 TypeError: Type 'number' is not assignable to type 'bigint'. [function_declaration_7.ts:18:1]
Dfunction_declaration_8-expected.txt115 TypeError: Type 'boolean' is not assignable to type 'bigint'. [function_declaration_8.ts:18:1]
Darray_16-expected.txt170 TypeError: Type 'number' is not assignable to type 'bigint'. [array_16.ts:18:6]
Darray_12-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'number'. [array_12.ts:18:6]
Darray_15-expected.txt170 TypeError: Type 'number' is not assignable to type 'bigint'. [array_15.ts:18:9]
Darray_24-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'boolean'. [array_24.ts:18:6]
Darray_17-expected.txt170 TypeError: Type 'boolean' is not assignable to type 'bigint'. [array_17.ts:18:9]
Darray_18-expected.txt170 TypeError: Type 'boolean' is not assignable to type 'bigint'. [array_18.ts:18:6]
Darray_14-expected.txt170 TypeError: Type 'string' is not assignable to type 'bigint'. [array_14.ts:18:6]
Darithmetic_operators_46-expected.txt170 TypeError: Type 'number' is not assignable to type 'bigint'. [arithmetic_operators_46.ts:18:1]
Darray_11-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'number'. [array_11.ts:18:8]
Darray_5-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'string'. [array_5.ts:18:12]
Darithmetic_operators_47-expected.txt170 TypeError: Type 'number' is not assignable to type 'bigint'. [arithmetic_operators_47.ts:18:1]
Darray_23-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'boolean'. [array_23.ts:18:12]
Darray_6-expected.txt170 TypeError: Type 'bigint' is not assignable to type 'string'. [array_6.ts:18:6]
/arkcompiler/ets_runtime/test/moduletest/bigint/
DBUILD.gn16 host_moduletest_action("bigint") {

123456