Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hphp/runtime/vm/jit/irlower-minstr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,11 @@ irlower::LvalPtrs implVecElemLval(IRLS& env, Vreg rarr,
v << lea{ridx[ridx * 8], ridx_times_9};
auto const type_offset = VanillaVec::entriesOffset() + offsetof(UnalignedTypedValue, m_type);
auto const data_offset = VanillaVec::entriesOffset() + offsetof(UnalignedTypedValue, m_data);
if (arch() == Arch::ARM) {
auto new_base = v.makeReg();
v << lea{rarr[ridx_times_9], new_base};
return {new_base + type_offset, new_base + data_offset};
}
return {rarr[ridx_times_9] + type_offset, rarr[ridx_times_9] + data_offset};
} else {
// See PackedBlock::LvalAt for an explanation of this math.
Expand Down