[compiler] Perform Map::bit_field_2 read/writes non-atomically

We set the bit_field_2 fields at map construction.

Bug: v8:7790, chromium:1150811
Change-Id: I673334d6900993b8a52e3b85d504cbc3f457c020
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2773053
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73638}
This commit is contained in:
Santiago Aboy Solanes 2021-03-18 16:37:04 +00:00 committed by Commit Bot
parent 407ce2d92a
commit 433bee6bc2

View File

@ -458,12 +458,10 @@ void Map::set_relaxed_bit_field(byte value) {
RELAXED_WRITE_BYTE_FIELD(*this, kBitFieldOffset, value);
}
byte Map::bit_field2() const {
return ACQUIRE_READ_BYTE_FIELD(*this, kBitField2Offset);
}
byte Map::bit_field2() const { return ReadField<byte>(kBitField2Offset); }
void Map::set_bit_field2(byte value) {
RELEASE_WRITE_BYTE_FIELD(*this, kBitField2Offset, value);
WriteField<byte>(kBitField2Offset, value);
}
bool Map::is_abandoned_prototype_map() const {