[memory] fix endian issue on FeedbackMetadata::synchronized_slot_count

Bug: v8:7558
Change-Id: I7f4eae87fad6b707c5defa033f4eaf6037c864ba
Reviewed-on: https://chromium-review.googlesource.com/963166
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51944}
This commit is contained in:
Junliang Yan 2018-03-14 16:32:42 -04:00 committed by Commit Bot
parent 9c98391015
commit 7c8476a2b6

View File

@ -22,9 +22,8 @@ namespace internal {
INT32_ACCESSORS(FeedbackMetadata, slot_count, kSlotCountOffset)
int32_t FeedbackMetadata::synchronized_slot_count() const {
return static_cast<int32_t>(
base::Acquire_Load(reinterpret_cast<const base::AtomicWord*>(
FIELD_ADDR_CONST(this, kSlotCountOffset))));
return base::Acquire_Load(reinterpret_cast<const base::Atomic32*>(
FIELD_ADDR_CONST(this, kSlotCountOffset)));
}
// static