Commit 99254554 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

Fix msan build

This fixes an msan compile error after https://crrev.com/c/1587381.

TBR=jkummerow@chromium.org

No-Try: true
No-Tree-Checks: true
Bug: v8:9183
Change-Id: I50c5fc2ddb698a6441896ec393bce62eee7afdc9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1587390Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61082}
parent 4b0f9c85
...@@ -370,7 +370,7 @@ class Checksum { ...@@ -370,7 +370,7 @@ class Checksum {
#ifdef MEMORY_SANITIZER #ifdef MEMORY_SANITIZER
// Computing the checksum includes padding bytes for objects like strings. // Computing the checksum includes padding bytes for objects like strings.
// Mark every object as initialized in the code serializer. // Mark every object as initialized in the code serializer.
MSAN_MEMORY_IS_INITIALIZED(payload.start(), payload.length()); MSAN_MEMORY_IS_INITIALIZED(payload.begin(), payload.length());
#endif // MEMORY_SANITIZER #endif // MEMORY_SANITIZER
// Fletcher's checksum. Modified to reduce 64-bit sums to 32-bit. // Fletcher's checksum. Modified to reduce 64-bit sums to 32-bit.
uintptr_t a = 1; uintptr_t a = 1;
...@@ -379,7 +379,7 @@ class Checksum { ...@@ -379,7 +379,7 @@ class Checksum {
// access payload through an uintptr_t pointer later on; and some // access payload through an uintptr_t pointer later on; and some
// architectures, e.g. arm, may generate instructions that expect correct // architectures, e.g. arm, may generate instructions that expect correct
// alignment. However, we do not control alignment for external snapshots. // alignment. However, we do not control alignment for external snapshots.
// DCHECK(IsAligned(reinterpret_cast<intptr_t>(payload.start()), // DCHECK(IsAligned(reinterpret_cast<intptr_t>(payload.begin()),
// kIntptrSize)); // kIntptrSize));
DCHECK(IsAligned(payload.length(), kIntptrSize)); DCHECK(IsAligned(payload.length(), kIntptrSize));
const uintptr_t* cur = reinterpret_cast<const uintptr_t*>(payload.begin()); const uintptr_t* cur = reinterpret_cast<const uintptr_t*>(payload.begin());
......
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