Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged: [wasm] Change the memory access offset to pointer size
Revision: 50ecc42cc744b49d9f26ad8b92325c0a36775407 Please take a careful look at this back-merge, because the original patch does not apply properly. The patch was created after Enrico's changes, but branch 6.2 is before Enrico's changes. Differences to the original patch: (1) This CL does not do a 64-bit bounds check. The reason is that in 6.2 we still use RelocInfo::WASM_MEMORY_SIZE_REFERENCE, which assumes that the memory size is a 32-bit constant. (2) Because of (1) I apply the ChangeUint32ToUint64 after the bounds check. The reason is that the 32-bit bounds check cannot deal with 64 bit nodes. BUG=chromium:766666 LOG=N NOTRY=true NOPRESUBMIT=true NOTREECHECKS=true R=titzer@chromium.org Change-Id: Ia76519538840c562acf7b64e9946e20c5f987ef9 Reviewed-on: https://chromium-review.googlesource.com/735350 Commit-Queue: Andreas Haas <ahaas@chromium.org> Reviewed-by: Ben Titzer <titzer@chromium.org> Cr-Commit-Position: refs/branch-heads/6.2@{#72} Cr-Branched-From: efa2ac4-refs/heads/6.2.414@{#1} Cr-Branched-From: a861ebb-refs/heads/master@{#47693}
- Loading branch information