Commit 7c8476a2 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

[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: 's avatarPeter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51944}
parent 9c983910
......@@ -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
......
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