Home
last modified time | relevance | path

Searched refs:BigInt (Results 1 - 25 of 120) sorted by relevance

12345

/third_party/node/deps/v8/src/objects/
H A Dbigint.h30 class BigInt;
36 // BigIntBase is just the raw data object underlying a BigInt. Use with care!
87 friend class ::v8::internal::BigInt; // MSVC wants full namespace.
122 // - MutableBigInt can be cast/converted explicitly to BigInt
124 // - No accidental implicit casting is possible from BigInt to MutableBigInt
150 class BigInt : public BigIntBase {
155 static Handle<BigInt> UnaryMinus(Isolate* isolate, Handle<BigInt> x);
156 static MaybeHandle<BigInt> BitwiseNot(Isolate* isolate, Handle<BigInt>
[all...]
H A Dbigint.cc37 // accidental mutation of a BigInt after its construction. Step-by-step
38 // construction of a BigInt must happen in terms of MutableBigInt, the
43 // {BigInt} and {MutableBigInt} objects can be passed in.
47 static MaybeHandle<BigInt> MakeImmutable(MaybeHandle<MutableBigInt> maybe);
49 static Handle<BigInt> MakeImmutable(Handle<MutableBigInt> result);
58 static Handle<BigInt> NewFromInt(Isolate* isolate, int value);
59 static Handle<BigInt> NewFromDouble(Isolate* isolate, double value);
64 static Handle<BigInt> Zero( in Zero()
66 // TODO(jkummerow): Consider caching a canonical zero-BigInt. in Zero()
91 static MaybeHandle<BigInt> LeftShiftByAbsolut
[all...]
H A Djs-temporal-objects.cc154 V8_WARN_UNUSED_RESULT MaybeHandle<BigInt> ParseTemporalInstant(
162 V8_WARN_UNUSED_RESULT MaybeHandle<BigInt> AddInstant(
163 Isolate* isolate, Handle<BigInt> epoch_nanoseconds, int64_t hours,
189 V8_WARN_UNUSED_RESULT MaybeHandle<BigInt> AddZonedDateTime(
190 Isolate* isolate, Handle<BigInt> eopch_nanoseconds,
194 V8_WARN_UNUSED_RESULT MaybeHandle<BigInt> AddZonedDateTime(
195 Isolate* isolate, Handle<BigInt> eopch_nanoseconds,
202 Handle<BigInt> epoch_nanoseconds);
209 Isolate* isolate, Handle<BigInt> nanoseconds,
223 MaybeHandle<BigInt> GetEpochFromISOPart
[all...]
H A Dvalue-serializer.h23 class BigInt;
111 void WriteBigIntContents(BigInt bigint);
118 void WriteBigInt(BigInt bigint);
276 MaybeHandle<BigInt> ReadBigInt() V8_WARN_UNUSED_RESULT;
/third_party/node/deps/v8/src/runtime/
H A Druntime-bigint.cc18 Handle<BigInt> lhs = args.at<BigInt>(1); in RUNTIME_FUNCTION()
19 Handle<BigInt> rhs = args.at<BigInt>(2); in RUNTIME_FUNCTION()
21 BigInt::CompareToBigInt(lhs, rhs)); in RUNTIME_FUNCTION()
29 Handle<BigInt> lhs = args.at<BigInt>(1); in RUNTIME_FUNCTION()
32 BigInt::CompareToNumber(lhs, rhs)); in RUNTIME_FUNCTION()
40 Handle<BigInt> lhs = args.at<BigInt>( in RUNTIME_FUNCTION()
[all...]
H A Druntime-atomics.cc251 return Handle<BigInt>::cast(bigint)->AsUint64(); in FromObject()
256 return Handle<BigInt>::cast(bigint)->AsInt64(); in FromObject()
276 return *BigInt::FromInt64(isolate, t); in ToObject()
280 return *BigInt::FromUint64(isolate, t); in ToObject()
408 Handle<BigInt> bigint; in GetModifySetValueInBuffer()
410 BigInt::FromObject(isolate, value_obj)); in GetModifySetValueInBuffer()
475 Handle<BigInt> bigint; in RUNTIME_FUNCTION()
477 BigInt::FromObject(isolate, value_obj)); in RUNTIME_FUNCTION()
510 Handle<BigInt> old_bigint; in RUNTIME_FUNCTION()
511 Handle<BigInt> new_bigin in RUNTIME_FUNCTION()
[all...]
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-bigint.cc35 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromNumber(isolate, value)); in BUILTIN()
37 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromObject(isolate, value)); in BUILTIN()
51 Handle<BigInt> bigint; in BUILTIN()
53 BigInt::FromObject(isolate, bigint_obj)); in BUILTIN()
56 BigInt::AsUintN(isolate, bits->Number(), bigint)); in BUILTIN()
69 Handle<BigInt> bigint; in BUILTIN()
71 BigInt::FromObject(isolate, bigint_obj)); in BUILTIN()
73 return *BigInt::AsIntN(isolate, bits->Number(), bigint); in BUILTIN()
78 MaybeHandle<BigInt> ThisBigIntValue(Isolate* isolate, Handle<Object> value, in ThisBigIntValue()
80 // 1. If Type(value) is BigInt, retur in ThisBigIntValue()
[all...]
H A Dbuiltins-bigint-gen.h19 TNode<IntPtrT> ReadBigIntLength(TNode<BigInt> value) { in ReadBigIntLength()
25 TNode<Uint32T> ReadBigIntSign(TNode<BigInt> value) { in ReadBigIntSign()
30 void WriteBigIntSignAndLength(TNode<BigInt> bigint, TNode<Uint32T> sign, in WriteBigIntSignAndLength()
40 void CppAbsoluteAddAndCanonicalize(TNode<BigInt> result, TNode<BigInt> x, in CppAbsoluteAddAndCanonicalize()
41 TNode<BigInt> y) { in CppAbsoluteAddAndCanonicalize()
53 void CppAbsoluteSubAndCanonicalize(TNode<BigInt> result, TNode<BigInt> x, in CppAbsoluteSubAndCanonicalize()
54 TNode<BigInt> y) { in CppAbsoluteSubAndCanonicalize()
66 TNode<Int32T> CppAbsoluteCompare(TNode<BigInt>
[all...]
H A Dbuiltins-data-view-gen.h41 return Unsigned(Int32Constant(BigInt::SignBits::encode(sign) | in DataViewEncodeBigIntBits()
42 BigInt::LengthBits::encode(digits))); in DataViewEncodeBigIntBits()
45 TNode<Uint32T> DataViewDecodeBigIntLength(TNode<BigInt> value) { in DataViewDecodeBigIntLength()
50 TNode<Uint32T> DataViewDecodeBigIntSign(TNode<BigInt> value) { in DataViewDecodeBigIntSign()
H A Dbuiltins-wasm-gen.cc69 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN()
93 TNode<BigInt> expected_value = in TF_BUILTIN()
98 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN()
H A Dbuiltins-temporal.cc476 Handle<BigInt> value; \
479 BigInt::Divide(isolate, Handle<BigInt>(handle->field(), isolate), \
480 BigInt::FromUint64(isolate, scale))); \
481 Handle<Object> number = BigInt::ToNumber(isolate, value); \
491 Handle<BigInt> value; \
494 BigInt::Divide(isolate, Handle<BigInt>(handle->field(), isolate), \
495 BigInt::FromUint64(isolate, scale))); \
691 isolate, Handle<BigInt>(zoned_date_tim
[all...]
H A Dbuiltins-bigint-gen.cc22 TNode<BigInt> n = ToBigInt(context, value); in TF_BUILTIN()
40 TNode<BigInt> bigint = ToBigInt(context, value); in TF_BUILTIN()
H A Dbuiltins-sharedarraybuffer-gen.cc46 // Create a BigInt from the result of a 64-bit atomic operation, using
48 TNode<BigInt> BigIntFromSigned64(TNode<AtomicInt64> signed64);
49 TNode<BigInt> BigIntFromUnsigned64(TNode<AtomicUint64> unsigned64);
147 TNode<BigInt> SharedArrayBufferBuiltinsAssembler::BigIntFromSigned64(
158 TNode<BigInt> SharedArrayBufferBuiltinsAssembler::BigIntFromUnsigned64(
352 TNode<BigInt> value_bigint = ToBigInt(context, value);
424 // 4. If typedArray.[[ContentType]] is BigInt, let v be ? ToBigInt(value).
485 // 4. If typedArray.[[ContentType]] is BigInt, let v be ? ToBigInt(value).
486 TNode<BigInt> value_bigint = ToBigInt(context, value);
562 // 4. If typedArray.[[ContentType]] is BigInt, the
[all...]
/third_party/typescript/tests/baselines/reference/
H A DbigintWithoutLib.js4 // Test BigInt functions
5 let bigintVal: bigint = BigInt(123);
6 bigintVal = BigInt("456");
7 new BigInt(123);
8 bigintVal = BigInt.asIntN(8, 0xFFFFn);
9 bigintVal = BigInt.asUintN(8, 0xFFFFn);
62 // Test BigInt functions
63 var bigintVal = BigInt(123);
64 bigintVal = BigInt("456");
65 new BigInt(12
[all...]
/third_party/rust/crates/syn/src/
H A Dbigint.rs4 pub(crate) struct BigInt {
8 impl BigInt { impls
10 BigInt { digits: Vec::new() }
39 impl AddAssign<u8> for BigInt {
54 impl MulAssign<u8> for BigInt {
/third_party/ffmpeg/libavcodec/
H A Dxface.h64 } BigInt; typedef
69 void ff_big_add(BigInt *b, uint8_t a);
75 void ff_big_div(BigInt *b, uint8_t a, uint8_t *r);
80 void ff_big_mul(BigInt *b, uint8_t a);
H A Dxfacedec.c34 static int pop_integer(BigInt *b, const ProbRange *pranges) in pop_integer()
52 static void pop_greys(BigInt *b, char *bitmap, int w, int h) in pop_greys()
70 static void decode_block(BigInt *b, char *bitmap, int w, int h, int level) in decode_block()
118 BigInt b = {0}; in xface_decode_frame()
/third_party/node/deps/npm/node_modules/@sigstore/verify/dist/timestamp/
H A Dmerkle.js25 const logIndex = BigInt(inclusionProof.logIndex);
26 const treeSize = BigInt(inclusionProof.treeSize);
63 const border = onesCount(index >> BigInt(inner));
71 if ((index >> BigInt(i)) & BigInt(1)) {
84 return bitLength(index ^ (size - BigInt(1)));
/third_party/node/src/
H A Dhistogram.cc10 using v8::BigInt;
77 BigInt::NewFromUnsigned(env->isolate(), (*histogram)->Count())); in GetCountBigInt()
91 args.GetReturnValue().Set(BigInt::New(env->isolate(), (*histogram)->Min())); in GetMinBigInt()
106 BigInt::New(env->isolate(), (*histogram)->Max())); in GetMaxBigInt()
127 BigInt::NewFromUnsigned(env->isolate(), (*histogram)->Exceeds())); in GetExceedsBigInt()
153 args.GetReturnValue().Set(BigInt::New(env->isolate(), value)); in GetPercentileBigInt()
181 BigInt::New(env->isolate(), value))); in GetPercentilesBigInt()
202 ? args[0].As<BigInt>()->Int64Value(&lossless) in Record()
265 lowest = args[0].As<BigInt>()->Int64Value(&lossless_ignored); in New()
271 highest = args[1].As<BigInt>() in New()
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-stat-bigint.js33 `Number version ${time}, BigInt version ${time2}n`);
35 assert.strictEqual(bigintStats[key], BigInt(val));
74 `BigInt version ${key} = ${msFromBigInt}n, ` +
80 `BigInt version ${nsKey} = ${nsFromBigInt}n` +
84 bigintStats[key], BigInt(val),
85 `${inspect(bigintStats[key])} !== ${inspect(BigInt(val))}\n` +
92 `Number version ${val}, BigInt version ${bigintStats[key]}n`);
/third_party/node/deps/npm/node_modules/@sigstore/core/dist/asn1/
H A Dparse.js21 // Parse a BigInt from the DER-encoded buffer
36 return BigInt(neg ? -1 : 0);
40 let n = BigInt(val);
42 n = n * BigInt(256) + BigInt(buf[i]);
/third_party/node/deps/v8/src/numbers/
H A Dconversions.h18 class BigInt;
103 MaybeHandle<BigInt> StringToBigInt(Isolate* isolate, Handle<String> string);
112 MaybeHandle<BigInt> BigIntLiteral(IsolateT* isolate, const char* string);
/third_party/node/deps/v8/src/compiler/
H A Dsimplified-lowering-verifier.cc81 if (type.Is(Type::BigInt())) { in GeneralizeTruncation()
161 if (left_type.Is(Type::BigInt()) && right_type.Is(Type::BigInt())) { in VisitNode()
162 // BigInt x BigInt -> BigInt in VisitNode()
207 CHECK(input_type.Is(Type::BigInt())); in VisitNode()
222 input_type = Type::Intersect(input_type, Type::BigInt(), graph_zone()); in VisitNode()
/third_party/node/deps/v8/include/v8-include/
H A Dv8-primitive.h723 * A JavaScript BigInt value (https://tc39.github.io/proposal-bigint)
725 class V8_EXPORT BigInt : public Primitive { class
727 static Local<BigInt> New(Isolate* isolate, int64_t value);
728 static Local<BigInt> NewFromUnsigned(Isolate* isolate, uint64_t value);
730 * Creates a new BigInt object using a specified sign bit and a
736 static MaybeLocal<BigInt> NewFromWords(Local<Context> context, int sign_bit,
740 * Returns the value of this BigInt as an unsigned 64-bit integer.
743 * BigInt is negative.
748 * Returns the value of this BigInt as a signed 64-bit integer.
749 * If `lossless` is provided, it will reflect whether this BigInt wa
[all...]
/third_party/node/deps/v8/include/
H A Dv8-primitive.h714 * A JavaScript BigInt value (https://tc39.github.io/proposal-bigint)
716 class V8_EXPORT BigInt : public Primitive { class
718 static Local<BigInt> New(Isolate* isolate, int64_t value);
719 static Local<BigInt> NewFromUnsigned(Isolate* isolate, uint64_t value);
721 * Creates a new BigInt object using a specified sign bit and a
727 static MaybeLocal<BigInt> NewFromWords(Local<Context> context, int sign_bit,
731 * Returns the value of this BigInt as an unsigned 64-bit integer.
734 * BigInt is negative.
739 * Returns the value of this BigInt as a signed 64-bit integer.
740 * If `lossless` is provided, it will reflect whether this BigInt wa
[all...]

Completed in 18 milliseconds

12345