v8/test
Frank Tang 14d9b9a246 Reland "[Temporal] Use double/int32_t instead of int64_t for duration parsing"
This is a reland of commit a165e82ea7

The reason of revert is  SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../src/objects/js-temporal-objects.cc:3837:22   which is the line
"nanoseconds_mv = std::round((seconds_mv - std::floor(seconds_mv)) * 1e9);"
where seconds_mv is a double and nanoseconds_mv is a int32_t
In this reland, we change the type of nanoseconds_mv to double to avoid the ubsan error.


Original change's description:
> [Temporal] Use double/int32_t instead of int64_t for duration parsing
>
> Use double and int32_t instead of int64_t in duration parsing result
> so we can parse very large duration fields as infinity and throw RangeError in later stages. The three fractional parts can hold up value from 0 to 999,999,999 so we use int32_t to hold it. Other part could be infinity so we use double to hold it. Also rearrange the order of the three int32_t in the struct ParsedISO8601Duration after all the double
>
> Bug: v8:11544
> Change-Id: I7e5b02f7c7bbb60997f1419f016aed61dd3e0d6c
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3840761
> Reviewed-by: Shu-yu Guo <syg@chromium.org>
> Commit-Queue: Frank Tang <ftang@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#82754}

Bug: v8:11544
Change-Id: If8b72cb4912d8b4fc4c286fc856ea59df5cf0bb7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3858576
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83090}
2022-09-08 22:24:51 +00:00
..
benchmarks Skip unpredictable tests on predictable builders 2022-08-25 11:29:55 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest [sandbox] Fold V8_SANDBOXED_EXTERNAL_POINTERS into V8_ENABLE_SANDBOX 2022-09-08 15:25:30 +00:00
common [wasm-gc] Always use JSToWasmObject at the JS-to-Wasm boundary 2022-09-07 14:36:05 +00:00
debugger Skip regress-crbug-1357554 if spark-plug is not enabled 2022-09-02 09:05:54 +00:00
debugging [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
fuzzer [regexp] Add v-Flag for Unicode Sets 2022-09-06 17:51:56 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector [cleanup] Remove --stress-opt remnants 2022-08-31 08:37:44 +00:00
intl [intl] Remove incorrect optimization for 0 length string 2022-08-22 18:44:18 +00:00
js-perf-test [turbofan] More benchmarks for BigInt operations 2022-08-17 08:56:08 +00:00
memory [snapshot] Fix the Memory.json benchmark 2021-04-28 07:54:34 +00:00
message [cleanup] Remove --stress-opt 2022-08-25 12:26:24 +00:00
mjsunit [baseline] Omit calling default ctors 2022-09-08 13:27:50 +00:00
mkgrokdump [sandbox] Skip mkgrokdump test in non-sandbox mode 2022-09-08 21:42:16 +00:00
mozilla [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
test262 Reland "[Temporal] Use double/int32_t instead of int64_t for duration parsing" 2022-09-08 22:24:51 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests [interpreter] Reshuffle registers for super() 2022-09-08 13:41:21 +00:00
wasm-api-tests [wasm-gc] Split any and extern type 2022-07-28 13:09:55 +00:00
wasm-js [wasm] Update spec tests 2022-08-11 11:16:17 +00:00
wasm-spec-tests Skip all wasm-spec-tests in stress mode 2022-08-24 16:53:42 +00:00
webkit Skip fast/js/deep-recursion-test on NumFuzz until bug is fixed 2022-08-16 09:31:07 +00:00
BUILD.gn [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
OWNERS