private void zeroBlock(Address block) {
   // FIXME: efficiency check here!
   if (VM.VERIFY_ASSERTIONS)
     VM.assertions._assert(
         block.toWord().and(Word.fromIntSignExtend(BYTES_IN_BLOCK - 1)).isZero());
   VM.memory.zero(block, Extent.fromIntZeroExtend(BYTES_IN_BLOCK));
 }
 /**
  * Return the superpage for a given cell. If the cell is a small cell then this is found by
  * masking the cell address to find the containing page. Otherwise the first word of the cell
  * contains the address of the page.
  *
  * @param cell The address of the first word of the cell (exclusive of any sub-class specific
  *     metadata).
  * @return The address of the first word of the superpage containing <code>cell</code>.
  */
 @Inline
 public static Address getSuperPage(Address cell) {
   return cell.toWord().and(PAGE_MASK).toAddress();
 }
Ejemplo n.º 3
0
 private static final void assertAligned(Address value) {
   assertAligned(value.toWord());
 }