Closed apt1002 closed 3 years ago
Currently aarch64::Assembler::mem() panics if the address offset is not representable. Instead, we should make a type Address which proves that the offset is representable, thereby moving the checks into whatever constructs the Address.
aarch64::Assembler::mem()
Address
We decided to only support the "scaled offset" form. Commit 087f0e6 introduces struct Offset.
087f0e6
struct Offset
Currently
aarch64::Assembler::mem()
panics if the address offset is not representable. Instead, we should make a typeAddress
which proves that the offset is representable, thereby moving the checks into whatever constructs theAddress
.