Commit f9af014b authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[build] avoid DCHECK in constexpr function

... to fix GCC compile failures.

Change-Id: I836fb6883354b26aa33085d9a96c5d957af5c5bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2537707Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71209}
parent 7e533de1
...@@ -460,7 +460,7 @@ class Context : public TorqueGeneratedContext<Context, HeapObject> { ...@@ -460,7 +460,7 @@ class Context : public TorqueGeneratedContext<Context, HeapObject> {
V8_INLINE static constexpr int SizeFor(int length) { V8_INLINE static constexpr int SizeFor(int length) {
// TODO(v8:9287): This is a workaround for GCMole build failures. // TODO(v8:9287): This is a workaround for GCMole build failures.
int result = kElementsOffset + length * kTaggedSize; int result = kElementsOffset + length * kTaggedSize;
DCHECK_EQ(TorqueGeneratedContext::SizeFor(length), result); CONSTEXPR_DCHECK(TorqueGeneratedContext::SizeFor(length) == result);
return result; return result;
} }
......
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