Commit 1dfa292c authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[cleanup] MakeOlder DCHECK fix

The DCHECK was not correct in pointer compression mode.

Change-Id: Ifc00478df10962a8114f2d9cd1596ddaedc60d97
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2000742Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65761}
parent a711a82e
...@@ -834,8 +834,7 @@ void BytecodeArray::MakeOlder() { ...@@ -834,8 +834,7 @@ void BytecodeArray::MakeOlder() {
// BytecodeArray is aged in concurrent marker. // BytecodeArray is aged in concurrent marker.
// The word must be completely within the byte code array. // The word must be completely within the byte code array.
Address age_addr = address() + kBytecodeAgeOffset; Address age_addr = address() + kBytecodeAgeOffset;
DCHECK_LE(RoundDown(age_addr, kSystemPointerSize) + kSystemPointerSize, DCHECK_LE(RoundDown(age_addr, kTaggedSize) + kTaggedSize, address() + Size());
address() + Size());
Age age = bytecode_age(); Age age = bytecode_age();
if (age < kLastBytecodeAge) { if (age < kLastBytecodeAge) {
base::AsAtomic8::Release_CompareAndSwap(reinterpret_cast<byte*>(age_addr), base::AsAtomic8::Release_CompareAndSwap(reinterpret_cast<byte*>(age_addr),
......
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