Commit 365fd524 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by V8 LUCI CQ

[turbofan] Fix typo in kMaximumReprSizeInBytes

Computation of this constant should obviously use kMaximumReprSizeLog2.
It's unclear if this could have caused observable misbehavior.

Change-Id: Iafdcbeb77d582f5f4e4aad07581377b74bb776c6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3854316Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82706}
parent 850d7980
......@@ -417,7 +417,7 @@ V8_EXPORT_PRIVATE inline constexpr int ElementSizeLog2Of(
constexpr int kMaximumReprSizeLog2 =
ElementSizeLog2Of(MachineRepresentation::kSimd128);
constexpr int kMaximumReprSizeInBytes = 1 << kTaggedSizeLog2;
constexpr int kMaximumReprSizeInBytes = 1 << kMaximumReprSizeLog2;
static_assert(kMaximumReprSizeLog2 >=
ElementSizeLog2Of(MachineRepresentation::kTagged));
......
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