diff --git a/tools/bootImageWriter/vmmagic/src/org/vmmagic/unboxed/ArchitecturalWord.template b/tools/bootImageWriter/vmmagic/src/org/vmmagic/unboxed/ArchitecturalWord.template deleted file mode 100644 index 1bac6da70..000000000 --- a/tools/bootImageWriter/vmmagic/src/org/vmmagic/unboxed/ArchitecturalWord.template +++ /dev/null @@ -1,59 +0,0 @@ -/* - * This file is part of the Jikes RVM project (http://jikesrvm.org). - * - * This file is licensed to You under the Eclipse Public License (EPL); - * You may not use this file except in compliance with the License. You - * may obtain a copy of the License at - * - * http://www.opensource.org/licenses/eclipse-1.0.php - * - * See the COPYRIGHT.txt file distributed with this work for information - * regarding copyright ownership. - */ -package org.vmmagic.unboxed; - -/* machine-generated DO NOT EDIT */ - -import org.jikesrvm.VM; -import org.vmmagic.pragma.Interruptible; -import org.vmmagic.pragma.Uninterruptible; -import org.vmmagic.pragma.RawStorage; - -@RawStorage(lengthInWords = true, length = 1) -@Uninterruptible -abstract class ArchitecturalWord { - - @32MASK@protected final int value; - @64MASK@protected final long value; - - ArchitecturalWord() { - this.value = 0; - } - ArchitecturalWord(int value, boolean zeroExtend) { - @32MASK@this.value = value; - @64MASK@this.value = (zeroExtend) ? ((long)value) & 0x00000000ffffffffL : value; - } - - ArchitecturalWord(long value) { - @32MASK@VM._assert(VM.NOT_REACHED); - @32MASK@this.value = (int)value; - @64MASK@this.value = value; - } - - @Interruptible - public String toString() { - return ""+value; - } - - public int hashCode() { - return (int)value; - } - - public boolean equals(Object that) { - if (that instanceof ArchitecturalWord) { - return value == ((ArchitecturalWord)that).value; - } else { - return false; - } - } -}