class InstructionList {
/**
* Insert an instruction at start of this list.
*
* @param ih instruction to insert
*/
private void insert( InstructionHandle ih ) {
if (isEmpty()) {
start = end = ih;
ih.setNext(ih.setPrev(null));
} else {
start.setPrev(ih);
ih.setNext(start);
ih.setPrev(null);
start = ih;
}
length++;
}
}