| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 3d4a3d4b0522d3eca4022b5c4539825ec50a90f7..7e94aaca89c54e6c7fc5e946e334144346ac334d 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -7752,6 +7752,14 @@ String::SubStringRange::iterator String::SubStringRange::end() {
|
| }
|
|
|
|
|
| +// Predictably converts HeapObject* or Address to uint32 by calculating
|
| +// offset of the address in respective MemoryChunk.
|
| +static inline uint32_t ObjectAddressForHashing(void* object) {
|
| + uint32_t value = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(object));
|
| + return value & MemoryChunk::kAlignmentMask;
|
| +}
|
| +
|
| +
|
| #undef TYPE_CHECKER
|
| #undef CAST_ACCESSOR
|
| #undef INT_ACCESSORS
|
|
|