Lines Matching refs:BigInt

154 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> GetEpochFromISOParts(Isolate* isolate, int32_t year,
377 * specified algorithm literally, which require the conversion to BigInt.
449 MaybeHandle<BigInt> SystemUTCEpochNanoseconds(Isolate* isolate) {
460 return BigInt::FromNumber(isolate, isolate->factory()->NewNumber(ns));
759 Handle<BigInt> epoch_nanoseconds, Handle<JSReceiver> time_zone,
762 // 1. Assert: Type(epochNanoseconds) is BigInt.
784 Isolate* isolate, Handle<BigInt> epoch_nanoseconds,
864 Handle<BigInt> epoch_nanoseconds) {
866 // 1. Assert: Type(epochNanoseconds) is BigInt.
881 Isolate* isolate, Handle<BigInt> epoch_nanoseconds) {
982 Handle<BigInt> ns;
999 Isolate* isolate, Handle<BigInt> epoch_nanoseconds) {
1003 Handle<BigInt> million = BigInt::FromInt64(isolate, 1000000);
1004 Handle<BigInt> remainder_ns;
1007 BigInt::Remainder(isolate, epoch_nanoseconds, million),
1012 isolate, remainder_ns, BigInt::Add(isolate, remainder_ns, million),
1017 Handle<BigInt> bigint;
1020 BigInt::Subtract(isolate, epoch_nanoseconds, remainder_ns),
1023 BigInt::Divide(isolate, bigint, million),
1124 isolate, Handle<BigInt>(instant->nanoseconds(), isolate));
1253 Handle<BigInt> epoch_nanoseconds;
1265 Handle<BigInt> one_day_in_ns = BigInt::FromUint64(isolate, 86400000000000ULL);
1266 Handle<BigInt> day_before_ns;
1269 BigInt::Subtract(isolate, epoch_nanoseconds, one_day_in_ns),
1278 Handle<BigInt> day_after_ns;
1281 BigInt::Add(isolate, epoch_nanoseconds, one_day_in_ns),
1666 Handle<BigInt> nanoseconds =
1676 Handle<BigInt> epoch_nanoseconds;
1807 isolate, Handle<BigInt>(zoned_date_time->nanoseconds(), isolate)),
1970 isolate, Handle<BigInt>(zoned_date_time->nanoseconds(), isolate)),
2194 Handle<BigInt> ns;
2502 MaybeHandle<BigInt> ParseTemporalInstant(Isolate* isolate,
2511 MAYBE_RETURN(maybe_result, Handle<BigInt>());
2521 Handle<BigInt> utc;
2528 BigInt);
2531 if ((BigInt::CompareToNumber(utc, factory->NewNumber(-8.64e21)) ==
2533 (BigInt::CompareToNumber(utc, factory->NewNumber(8.64e21)) ==
2536 THROW_NEW_ERROR(isolate, NEW_TEMPORAL_INVALD_ARG_RANGE_ERROR(), BigInt);
2541 MAYBE_RETURN(maybe_offset_nanoseconds, Handle<BigInt>());
2545 return BigInt::Subtract(isolate, utc,
2546 BigInt::FromInt64(isolate, offset_nanoseconds));
3625 Handle<BigInt> end_ns;
3629 Handle<BigInt>(relative_to->nanoseconds(), isolate),
3639 BigInt::Subtract(isolate, end_ns,
3640 Handle<BigInt>(relative_to->nanoseconds(), isolate)),
3776 MaybeHandle<BigInt> AddZonedDateTime(Isolate* isolate,
3777 Handle<BigInt> epoch_nanoseconds,
3791 MaybeHandle<BigInt> AddZonedDateTime(Isolate* isolate,
3792 Handle<BigInt> epoch_nanoseconds,
3813 temporal::CreateTemporalInstant(isolate, epoch_nanoseconds), BigInt);
3822 BigInt);
3831 BigInt);
3839 BigInt);
3846 BigInt);
3863 BigInt);
3871 BigInt);
3875 isolate, Handle<BigInt>(intermediate_instant->nanoseconds(), isolate),
3886 return NanosecondsToDays(isolate, BigInt::FromInt64(isolate, nanoseconds),
3891 Maybe<bool> NanosecondsToDays(Isolate* isolate, Handle<BigInt> nanoseconds,
3898 // 1. Assert: Type(nanoseconds) is BigInt.
3902 BigInt::CompareToBigInt(nanoseconds, BigInt::FromInt64(isolate, 0));
3905 Handle<BigInt> day_length_ns = BigInt::FromInt64(isolate, 86400000000000LLU);
3922 Handle<BigInt> days_bigint;
3925 BigInt::Divide(isolate, nanoseconds, day_length_ns), Nothing<bool>());
3928 nanoseconds = BigInt::UnaryMinus(isolate, nanoseconds);
3933 BigInt::Remainder(isolate, nanoseconds, day_length_ns),
3943 Handle<BigInt> start_ns = Handle<BigInt>(relative_to->nanoseconds(), isolate);
3949 isolate, Handle<BigInt>(relative_to->nanoseconds(), isolate)),
3967 Handle<BigInt> end_ns;
3969 BigInt::Add(isolate, start_ns, nanoseconds),
4018 Handle<BigInt> intermediate_ns;
4028 while (days > 0 && BigInt::CompareToBigInt(intermediate_ns, end_ns) ==
4045 isolate, nanoseconds, BigInt::Subtract(isolate, end_ns, intermediate_ns),
4056 Handle<BigInt> one_day_farther_ns;
4064 Handle<BigInt> day_length_ns;
4067 BigInt::Subtract(isolate, one_day_farther_ns, intermediate_ns),
4071 compare_result = BigInt::CompareToBigInt(nanoseconds, day_length_ns);
4076 BigInt::Subtract(isolate, nanoseconds, day_length_ns),
4228 MaybeHandle<BigInt> AddInstant(Isolate* isolate,
4229 Handle<BigInt> epoch_nanoseconds, int64_t hours,
4240 Handle<BigInt> result;
4243 BigInt::Add(isolate, epoch_nanoseconds,
4244 BigInt::FromInt64(isolate, nanoseconds)),
4245 BigInt);
4246 Handle<BigInt> temp;
4249 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, microseconds),
4250 BigInt::FromInt64(isolate, 1000)),
4251 BigInt);
4253 BigInt::Add(isolate, result, temp), BigInt);
4257 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, milliseconds),
4258 BigInt::FromInt64(isolate, 1000000)),
4259 BigInt);
4261 BigInt::Add(isolate, result, temp), BigInt);
4265 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, seconds),
4266 BigInt::FromInt64(isolate, 1000000000)),
4267 BigInt);
4269 BigInt::Add(isolate, result, temp), BigInt);
4273 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, minutes),
4274 BigInt::FromInt64(isolate, 1000000000)),
4275 BigInt);
4278 BigInt::Multiply(isolate, temp, BigInt::FromInt64(isolate, 60)), BigInt);
4280 BigInt::Add(isolate, result, temp), BigInt);
4284 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, hours),
4285 BigInt::FromInt64(isolate, 1000000000)),
4286 BigInt);
4289 BigInt::Multiply(isolate, temp, BigInt::FromInt64(isolate, 3600)),
4290 BigInt);
4292 BigInt::Add(isolate, result, temp), BigInt);
4297 THROW_NEW_ERROR(isolate, NEW_TEMPORAL_INVALD_ARG_RANGE_ERROR(), BigInt);
4305 Handle<BigInt> epoch_nanoseconds) {
4308 // 1. Assert: Type(epochNanoseconds) is BigInt.
4316 MaybeHandle<BigInt> GetEpochFromISOParts(Isolate* isolate, int32_t year,
4339 Handle<BigInt> result;
4342 BigInt::FromNumber(isolate, isolate->factory()->NewNumber(ms)), BigInt);
4346 BigInt::Multiply(isolate, result, BigInt::FromInt64(isolate, 1000000)),
4347 BigInt);
4349 Handle<BigInt> temp;
4352 BigInt::Multiply(isolate, BigInt::FromInt64(isolate, microsecond),
4353 BigInt::FromInt64(isolate, 1000)),
4354 BigInt);
4357 BigInt::Add(isolate, result, temp), BigInt);
4358 return BigInt::Add(isolate, result, BigInt::FromInt64(isolate, nanosecond));
6170 Handle<BigInt> epoch_nanoseconds;
6172 BigInt::FromObject(isolate, epoch_nanoseconds_obj),
6219 Handle<BigInt> nanoseconds = handle(zoned_date_time->nanoseconds(), isolate);
6242 Handle<BigInt> nanoseconds = handle(zoned_date_time->nanoseconds(), isolate);
6268 isolate, Handle<BigInt>(zoned_date_time->nanoseconds(), isolate)),
6364 isolate, Handle<BigInt>(zoned_date_time->nanoseconds(), isolate)),
6449 Handle<BigInt> epoch_nanoseconds;
6451 BigInt::FromObject(isolate, epoch_nanoseconds_obj),
6470 Isolate* isolate, Handle<BigInt> bigint, uint32_t scale) {
6475 Handle<BigInt> epoch_nanoseconds;
6481 BigInt::Multiply(isolate, BigInt::FromUint64(isolate, scale), bigint),
6501 Handle<BigInt> bigint;
6503 BigInt::FromNumber(isolate, epoch_Xseconds),
6512 Handle<BigInt> bigint;
6514 BigInt::FromObject(isolate, epoch_Xseconds),