/arkcompiler/ets_runtime/ecmascript/ |
D | js_bigint.cpp | 70 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 …]
|
D | js_bigint.h | 57 … 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/ |
D | builtins_bigint_test.cpp | 453 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/ |
D | biginttouint64_fuzzer.cpp | 42 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/ |
D | biginttoint64_fuzzer.cpp | 42 Local<BigIntRef> bigint = BigIntRef::New(vm, input); in BigIntToInt64FuzzTest() local 46 bigint->BigIntToInt64(vm, &cValue, &lossless); in BigIntToInt64FuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_bigint.cpp | 58 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/ |
D | BUILD.gn | 30 "bigint", 155 "bigint", 261 "bigint",
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist.txt | 10 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/ |
D | es2015_tests.txt | 2859 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/ |
D | function_declaration_7-expected.txt | 115 TypeError: Type 'number' is not assignable to type 'bigint'. [function_declaration_7.ts:18:1]
|
D | function_declaration_8-expected.txt | 115 TypeError: Type 'boolean' is not assignable to type 'bigint'. [function_declaration_8.ts:18:1]
|
D | array_16-expected.txt | 170 TypeError: Type 'number' is not assignable to type 'bigint'. [array_16.ts:18:6]
|
D | array_12-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'number'. [array_12.ts:18:6]
|
D | array_15-expected.txt | 170 TypeError: Type 'number' is not assignable to type 'bigint'. [array_15.ts:18:9]
|
D | array_24-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'boolean'. [array_24.ts:18:6]
|
D | array_17-expected.txt | 170 TypeError: Type 'boolean' is not assignable to type 'bigint'. [array_17.ts:18:9]
|
D | array_18-expected.txt | 170 TypeError: Type 'boolean' is not assignable to type 'bigint'. [array_18.ts:18:6]
|
D | array_14-expected.txt | 170 TypeError: Type 'string' is not assignable to type 'bigint'. [array_14.ts:18:6]
|
D | arithmetic_operators_46-expected.txt | 170 TypeError: Type 'number' is not assignable to type 'bigint'. [arithmetic_operators_46.ts:18:1]
|
D | array_11-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'number'. [array_11.ts:18:8]
|
D | array_5-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'string'. [array_5.ts:18:12]
|
D | arithmetic_operators_47-expected.txt | 170 TypeError: Type 'number' is not assignable to type 'bigint'. [arithmetic_operators_47.ts:18:1]
|
D | array_23-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'boolean'. [array_23.ts:18:12]
|
D | array_6-expected.txt | 170 TypeError: Type 'bigint' is not assignable to type 'string'. [array_6.ts:18:6]
|
/arkcompiler/ets_runtime/test/moduletest/bigint/ |
D | BUILD.gn | 16 host_moduletest_action("bigint") {
|