Commit 11d3a9ea authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

Revert "[compiler] fix typing of [[DateValue]]"

This reverts commit ae329407.

Reason for revert: Correct fix landed in https://chromium-review.googlesource.com/c/v8/v8/+/3869196

Do not backmerge this revert!

Original change's description:
> [compiler] fix typing of [[DateValue]]
>
> Bug: chromium:1356308
> Change-Id: I00be3495031b203b71cf924745dd2bad878ab3c2
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3868955
> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
> Auto-Submit: Tobias Tebbi <tebbi@chromium.org>
> Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
> Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#82918}

Bug: chromium:1356308
Change-Id: Iaf4581ead10613a105844b6d703d25d1e7d37d14
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3872555
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#83008}
parent 9cf407e9
...@@ -130,10 +130,9 @@ class V8_EXPORT_PRIVATE TypeCache final { ...@@ -130,10 +130,9 @@ class V8_EXPORT_PRIVATE TypeCache final {
Type const kStringLengthType = CreateRange(0.0, String::kMaxLength); Type const kStringLengthType = CreateRange(0.0, String::kMaxLength);
// A time value always contains a tagged number in the range // A time value always contains a tagged number in the range
// [-kMaxTimeInMs, kMaxTimeInMs] or -0. // [-kMaxTimeInMs, kMaxTimeInMs].
Type const kTimeValueType = Type::Union( Type const kTimeValueType =
CreateRange(-DateCache::kMaxTimeInMs, DateCache::kMaxTimeInMs), CreateRange(-DateCache::kMaxTimeInMs, DateCache::kMaxTimeInMs);
Type::MinusZero(), zone());
// The JSDate::day property always contains a tagged number in the range // The JSDate::day property always contains a tagged number in the range
// [1, 31] or NaN. // [1, 31] or NaN.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment