pub fn alloc<VM: VMBinding>( mutator: &mut Mutator<VM>, size: usize, align: usize, offset: usize, semantics: AllocationSemantics ) -> Address
Allocate memory for an object. For performance reasons, a VM should implement the allocation fast-path on their side rather than just calling this function.
If the VM provides a non-zero
offset parameter, then the returned address will be
such that the
RETURNED_ADDRESS + offset is aligned to the
mutator: The mutator to perform this allocation request.
size: The number of bytes required for the object.
align: Required alignment for the object.
offset: Offset associated with the alignment.
semantics: The allocation semantic required for the allocation.