Skip to content

Commit

Permalink
Fix RegisterAllocationData::ResetSpillState
Browse files Browse the repository at this point in the history
Bug: chromium:1014607
Change-Id: Ifcd1ce17fb1f95965355a4e3f63bdc78fa88042f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1865613
Auto-Submit: David Benjamin <davidben@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64338}
  • Loading branch information
davidben authored and Commit Bot committed Oct 16, 2019
1 parent 6fd3109 commit 02a06c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compiler/backend/register-allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,11 @@ class RegisterAllocationData final : public ZoneObject {
return result;
}

void ResetSpillState() { spill_state_.clear(); }
void ResetSpillState() {
for (auto& state : spill_state_) {
state.clear();
}
}

TickCounter* tick_counter() { return tick_counter_; }

Expand Down

0 comments on commit 02a06c4

Please sign in to comment.