Commit c4233951 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

Fix pointer compression after moving v8memory.h to base/memory.h

TBR=ishell@chromium.org

Change-Id: Iba69e556519a76334b9a3a1a0ece9a67f7f69cf2
Bug: v8:8855
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1669696
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62313}
parent 3ea51d46
...@@ -77,7 +77,7 @@ bool EmbedderDataSlot::ToAlignedPointer(void** out_pointer) const { ...@@ -77,7 +77,7 @@ bool EmbedderDataSlot::ToAlignedPointer(void** out_pointer) const {
// fields (external pointers, doubles and BigInt data) are only kTaggedSize // fields (external pointers, doubles and BigInt data) are only kTaggedSize
// aligned so we have to use unaligned pointer friendly way of accessing them // aligned so we have to use unaligned pointer friendly way of accessing them
// in order to avoid undefined behavior in C++ code. // in order to avoid undefined behavior in C++ code.
Address raw_value = ReadUnalignedValue<Address>(address()); Address raw_value = base::ReadUnalignedValue<Address>(address());
#else #else
Address raw_value = *location(); Address raw_value = *location();
#endif #endif
...@@ -103,7 +103,7 @@ EmbedderDataSlot::RawData EmbedderDataSlot::load_raw( ...@@ -103,7 +103,7 @@ EmbedderDataSlot::RawData EmbedderDataSlot::load_raw(
// fields (external pointers, doubles and BigInt data) are only kTaggedSize // fields (external pointers, doubles and BigInt data) are only kTaggedSize
// aligned so we have to use unaligned pointer friendly way of accessing them // aligned so we have to use unaligned pointer friendly way of accessing them
// in order to avoid undefined behavior in C++ code. // in order to avoid undefined behavior in C++ code.
return ReadUnalignedValue<Address>(address()); return base::ReadUnalignedValue<Address>(address());
#else #else
return *location(); return *location();
#endif #endif
......
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