Commit 8fb0db93 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Replace ZoneList in SafePointTableBuilder::Emit

R=petermarshall@chromium.org

Bug: v8:7754
Change-Id: I045daa428a7830fa110c74d6636921be36ca1dbe
Reviewed-on: https://chromium-review.googlesource.com/1145278Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#54594}
parent 29379945
...@@ -199,12 +199,11 @@ void SafepointTableBuilder::Emit(Assembler* assembler, int bits_per_entry) { ...@@ -199,12 +199,11 @@ void SafepointTableBuilder::Emit(Assembler* assembler, int bits_per_entry) {
} }
// Emit table of bitmaps. // Emit table of bitmaps.
ZoneList<uint8_t> bits(bytes_per_entry, zone_); ZoneVector<uint8_t> bits(bytes_per_entry, 0, zone_);
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {
ZoneList<int>* indexes = deoptimization_info_[i].indexes; ZoneList<int>* indexes = deoptimization_info_[i].indexes;
ZoneList<int>* registers = deoptimization_info_[i].registers; ZoneList<int>* registers = deoptimization_info_[i].registers;
bits.Clear(); std::fill(bits.begin(), bits.end(), 0);
bits.AddBlock(0, bytes_per_entry, zone_);
// Run through the registers (if any). // Run through the registers (if any).
DCHECK(IsAligned(kNumSafepointRegisters, kBitsPerByte)); DCHECK(IsAligned(kNumSafepointRegisters, kBitsPerByte));
......
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