[heap] Fix -Wshadow warnings in src/heap/mark-compact.cc

Bug: v8:12244, v8:12245
Change-Id: Ibea600e10d64be5e4da474ae501b88e4f4d9cc51
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3182228
Auto-Submit: Dominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77052}
This commit is contained in:
Dominik Inführ 2021-09-24 16:33:45 +02:00 committed by V8 LUCI CQ
parent 0ad40c42b7
commit 77ebb4d21a

View File

@ -2462,10 +2462,10 @@ bool MarkCompactCollector::TransitionArrayNeedsCompaction(
DCHECK_EQ(raw_target.ToSmi(), Smi::uninitialized_deserialization_value());
#ifdef DEBUG
// Targets can only be dead iff this array is fully deserialized.
for (int i = 0; i < num_transitions; ++i) {
for (int j = 0; j < num_transitions; ++j) {
DCHECK_IMPLIES(
!transitions.GetRawTarget(i).IsSmi(),
!non_atomic_marking_state()->IsWhite(transitions.GetTarget(i)));
!transitions.GetRawTarget(j).IsSmi(),
!non_atomic_marking_state()->IsWhite(transitions.GetTarget(j)));
}
#endif
return false;
@ -2473,8 +2473,8 @@ bool MarkCompactCollector::TransitionArrayNeedsCompaction(
TransitionsAccessor::GetTargetFromRaw(raw_target))) {
#ifdef DEBUG
// Targets can only be dead iff this array is fully deserialized.
for (int i = 0; i < num_transitions; ++i) {
DCHECK(!transitions.GetRawTarget(i).IsSmi());
for (int j = 0; j < num_transitions; ++j) {
DCHECK(!transitions.GetRawTarget(j).IsSmi());
}
#endif
return true;