/third_party/rust/crates/minimal-lexical/src/ |
H A D | heapvec.rs | 6 use crate::bigint; 17 data: Vec<bigint::Limb>, 26 data: Vec::with_capacity(bigint::BIGINT_LIMBS), in new() 32 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from() 49 debug_assert!(len <= bigint::BIGINT_LIMBS); in set_len() 73 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push() 80 pub fn pop(&mut self) -> Option<bigint::Limb> { in pop() 86 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> { in try_extend() 96 pub fn try_resize(&mut self, len: usize, value: bigint::Limb) -> Option<()> { in try_resize() 106 bigint in hi64() [all...] |
H A D | stackvec.rs | 6 use crate::bigint; 13 data: [mem::MaybeUninit<bigint::Limb>; bigint::BIGINT_LIMBS], 25 data: [mem::MaybeUninit::uninit(); bigint::BIGINT_LIMBS], 31 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from() 50 debug_assert!(len <= bigint::BIGINT_LIMBS); in set_len() 69 bigint::BIGINT_LIMBS as usize 78 pub unsafe fn push_unchecked(&mut self, value: bigint::Limb) { in push_unchecked() 89 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push() 105 pub unsafe fn pop_unchecked(&mut self) -> bigint [all...] |
/third_party/rust/crates/minimal-lexical/tests/ |
H A D | vec_tests.rs | 4 use minimal_lexical::bigint; 21 assert_eq!(x.capacity(), bigint::BIGINT_LIMBS); in simple_test() 40 if bigint::LIMB_BITS == 32 { in simple_test() 45 let rview = bigint::rview(&x); in simple_test() 110 let expected: VecType = if bigint::LIMB_BITS == 32 { in math_test() 132 assert_eq!(bigint::scalar_add(5, 5), (10, false)); in scalar_add_test() 133 assert_eq!(bigint::scalar_add(LIMB_MAX, 1), (0, true)); in scalar_add_test() 138 assert_eq!(bigint::scalar_mul(5, 5, 0), (25, 0)); in scalar_mul_test() 139 assert_eq!(bigint::scalar_mul(5, 5, 1), (26, 0)); in scalar_mul_test() 140 assert_eq!(bigint in scalar_mul_test() [all...] |
H A D | stackvec.rs | 1 use minimal_lexical::bigint; 12 vec.try_push(xi as bigint::Limb).unwrap(); in vec_from_u32() 20 1 => vec.try_push(xi[0] as bigint::Limb).unwrap(), in vec_from_u32() 22 let xi0 = xi[0] as bigint::Limb; in vec_from_u32() 23 let xi1 = xi[1] as bigint::Limb; in vec_from_u32()
|
/third_party/node/deps/v8/src/objects/ |
H A D | bigint.cc | 20 #include "src/objects/bigint.h" 23 #include "src/bigint/bigint.h" 71 static Handle<MutableBigInt> Cast(Handle<FreshlyAllocatedBigInt> bigint) { in Cast() argument 72 SLOW_DCHECK(bigint->IsBigInt()); in Cast() 73 return Handle<MutableBigInt>::cast(bigint); in Cast() 138 static_assert(std::is_same<bigint::digit_t, BigIntBase::digit_t>::value, 152 bigint::Digits GetDigits(BigIntBase bigint) { in GetDigits() argument 153 return bigint in GetDigits() 158 GetDigits(Handle<BigIntBase> bigint) GetDigits() argument 162 GetRWDigits(MutableBigInt bigint) GetRWDigits() argument 168 GetRWDigits(Handle<MutableBigInt> bigint) GetRWDigits() argument 924 ToString(Isolate* isolate, Handle<BigInt> bigint, int radix, ShouldThrow should_throw) ToString() argument [all...] |
H A D | bigint.h | 18 namespace bigint { namespace 20 } // namespace bigint 34 #include "torque-generated/src/objects/bigint-tq.inc" 153 // https://tc39.github.io/proposal-bigint/#sec-numeric-types 232 static MaybeHandle<String> ToString(Isolate* isolate, Handle<BigInt> bigint, 261 IsolateT* isolate, bigint::FromStringAccumulator* accumulator,
|
/third_party/node/test/parallel/ |
H A D | test-fs-stat-bigint.js | 98 const startTime = process.hrtime.bigint(); 99 const bigintStats = func(arg, common.mustNotMutateObjectDeep({ bigint: true })); 101 const endTime = process.hrtime.bigint(); 153 const startTime = process.hrtime.bigint(); 154 func(arg, common.mustNotMutateObjectDeep({ bigint: true }), common.mustCall((err, bigintStats) => { 156 const endTime = process.hrtime.bigint(); 185 const startTime = process.hrtime.bigint(); 186 const bigintStats = await func(arg, common.mustNotMutateObjectDeep({ bigint: true })); 188 const endTime = process.hrtime.bigint(); 208 const startTime = process.hrtime.bigint(); [all...] |
H A D | test-fs-statfs.js | 7 const valueType = isBigint ? 'bigint' : 'number'; 23 fs.statfs(__filename, { bigint: true }, function(err, stats) { 37 const statFsBigIntObj = fs.statfsSync(__filename, { bigint: true });
|
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-bigint.cc | 51 Handle<BigInt> bigint; in BUILTIN() local 52 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in BUILTIN() 56 BigInt::AsUintN(isolate, bits->Number(), bigint)); in BUILTIN() 69 Handle<BigInt> bigint; in BUILTIN() local 70 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in BUILTIN() 73 return *BigInt::AsIntN(isolate, bits->Number(), bigint); in BUILTIN()
|
H A D | builtins-bigint-gen.cc | 5 #include "src/builtins/builtins-bigint-gen.h" 13 // https://tc39.github.io/proposal-bigint/#sec-to-big-int64 31 // https://tc39.github.io/proposal-bigint/#sec-to-big-int64 40 TNode<BigInt> bigint = ToBigInt(context, value); in TF_BUILTIN() local 45 BigIntToRawBytes(bigint, &var_low, &var_high); in TF_BUILTIN() 49 // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value 61 // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value
|
H A D | builtins-bigint-gen.h | 9 #include "src/objects/bigint.h" 30 void WriteBigIntSignAndLength(TNode<BigInt> bigint, TNode<Uint32T> sign, in WriteBigIntSignAndLength() argument 37 StoreBigIntBitfield(bigint, bitfield); in WriteBigIntSignAndLength()
|
/third_party/node/benchmark/diagnostics_channel/ |
H A D | http.js | 47 start: process.hrtime.bigint(), 54 end: process.hrtime.bigint(), 77 start: process.hrtime.bigint(), 85 end: process.hrtime.bigint(),
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-atomics.cc | 250 inline uint64_t FromObject<uint64_t>(Handle<Object> bigint) { in FromObject() argument 251 return Handle<BigInt>::cast(bigint)->AsUint64(); in FromObject() 255 inline int64_t FromObject<int64_t>(Handle<Object> bigint) { in FromObject() argument 256 return Handle<BigInt>::cast(bigint)->AsInt64(); in FromObject() 408 Handle<BigInt> bigint; in GetModifySetValueInBuffer() local 409 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in GetModifySetValueInBuffer() 416 return Op<int64_t>::Do(isolate, source, index, bigint); in GetModifySetValueInBuffer() 419 return Op<uint64_t>::Do(isolate, source, index, bigint); in GetModifySetValueInBuffer() 475 Handle<BigInt> bigint; in RUNTIME_FUNCTION() local 476 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in RUNTIME_FUNCTION() [all...] |
/third_party/node/benchmark/process/ |
H A D | bench-hrtime.js | 8 type: ['raw', 'diff', 'bigint'], 13 let noDead = type === 'bigint' ? hrtime.bigint() : hrtime(); 30 case 'bigint': 33 noDead = hrtime.bigint(); 39 assert.ok(Array.isArray(noDead) || typeof noDead === 'bigint');
|
/third_party/node/deps/v8/src/execution/ |
H A D | local-isolate.h | 20 namespace bigint { namespace 118 bigint::Processor* bigint_processor() { in bigint_processor() 162 bigint::Processor* bigint_processor_{nullptr};
|
H A D | local-isolate.cc | 7 #include "src/bigint/bigint.h" 68 bigint_processor_ = bigint::Processor::New(new bigint::Platform()); in InitializeBigIntProcessor()
|
/third_party/node/lib/internal/crypto/ |
H A D | random.js | 422 bigint = false, 430 validateBoolean(bigint, 'options.bigint'); 433 if (typeof add === 'bigint') { 443 'bigint', 450 if (typeof rem === 'bigint') { 460 'bigint', 467 job.result = bigint ? arrayBufferToUnsignedBigInt : (p) => p; 513 * @return {bigint} 529 function unsignedBigIntToBuffer(bigint, nam [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | bigintIndex.js | 5 [index: bigint]: E; // should error 19 // Show correct usage of bigint index: explicitly convert to string 20 const bigNum: bigint = 0n; 45 // Show correct usage of bigint index: explicitly convert to string
|
H A D | nullPropertyName.js | 82 foo.bigint = 1; 166 foo.bigint = 1;
249 export var bigint: number;
|
H A D | jsDeclarationsFunctionKeywordPropExhaustive.js | 82 foo.bigint = 1; 165 foo.bigint = 1;
293 export const bigint: number;
|
H A D | numericStringLiteralTypes.js | 4 type T2 = string & `${bigint}`; // `${bigint} 60 type T2 = string & `${bigint}`;
|
/third_party/node/benchmark/ |
H A D | common.js | 242 this._time = process.hrtime.bigint(); 247 const time = process.hrtime.bigint(); 288 function nanoSecondsToString(bigint) { 289 const str = bigint.toString();
|
/third_party/node/deps/v8/src/interpreter/ |
H A D | constant-array-builder.h | 74 size_t Insert(AstBigInt bigint); 124 explicit Entry(AstBigInt bigint) : bigint_(bigint), tag_(Tag::kBigInt) {} in Entry() argument
|
/third_party/node/lib/ |
H A D | fs.js | 213 if (typeof mode === 'bigint') 606 * @param {number | bigint | null} position 697 * position?: number | bigint | null; 1533 * @param {{ bigint?: boolean; }} [options] 1540 function fstat(fd, options = { bigint: false }, callback) { 1548 const req = new FSReqCallback(options.bigint); 1550 binding.fstat(fd, options.bigint, req); 1557 * @param {{ bigint?: boolean; }} [options] 1564 function lstat(path, options = { bigint: false }, callback) { 1572 const req = new FSReqCallback(options.bigint); [all...] |
/third_party/node/lib/internal/fs/ |
H A D | promises.js | 863 async function fstat(handle, options = { bigint: false }) { 864 const result = await binding.fstat(handle.fd, options.bigint, kUsePromises); 868 async function lstat(path, options = { bigint: false }) { 871 options.bigint, kUsePromises); 875 async function stat(path, options = { bigint: false }) { 878 options.bigint, kUsePromises); 882 async function statfs(path, options = { bigint: false }) { 885 options.bigint, kUsePromises);
|