[cleanup] Replace ZoneList in SafePointTableBuilder::Emit

R=petermarshall@chromium.org

Bug: v8:7754
Change-Id: I045daa428a7830fa110c74d6636921be36ca1dbe
Reviewed-on: https://chromium-review.googlesource.com/1145278
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#54594}
This commit is contained in:
Simon Zünd 2018-07-20 16:03:35 +02:00 committed by Commit Bot
parent 29379945b6
commit 8fb0db93fb

View File

@ -199,12 +199,11 @@ void SafepointTableBuilder::Emit(Assembler* assembler, int bits_per_entry) {
}
// 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++) {
ZoneList<int>* indexes = deoptimization_info_[i].indexes;
ZoneList<int>* registers = deoptimization_info_[i].registers;
bits.Clear();
bits.AddBlock(0, bytes_per_entry, zone_);
std::fill(bits.begin(), bits.end(), 0);
// Run through the registers (if any).
DCHECK(IsAligned(kNumSafepointRegisters, kBitsPerByte));