Exemple #1
0
 public static void init() {
   Add.init();
   Address.init();
   Align.init();
   Alloc.init();
   Anchor.init();
   And.init();
   Bad.init();
   Bitcast.init();
   Block.init();
   Builtin.init();
   Call.init();
   Cmp.init();
   Cond.init();
   Confirm.init();
   Const.init();
   Conv.init();
   CopyB.init();
   Deleted.init();
   Div.init();
   Dummy.init();
   End.init();
   Eor.init();
   Free.init();
   IJmp.init();
   Id.init();
   Jmp.init();
   Load.init();
   Member.init();
   Minus.init();
   Mod.init();
   Mul.init();
   Mulh.init();
   Mux.init();
   NoMem.init();
   Not.init();
   Offset.init();
   Or.init();
   Phi.init();
   Pin.init();
   Proj.init();
   Raise.init();
   Return.init();
   Sel.init();
   Shl.init();
   Shr.init();
   Shrs.init();
   Size.init();
   Start.init();
   Store.init();
   Sub.init();
   Switch.init();
   Sync.init();
   Tuple.init();
   Unknown.init();
 }
Exemple #2
0
  @Override
  public void init() {
    super.init();
    structuralLock.lock();
    try {
      vol = volumeFactory.makeVolume(fileName, readonly);
      indexTable = new Volume.ByteArrayVol(CC.VOLUME_PAGE_SHIFT);
      if (!readonly) vol.ensureAvailable(headerSize);
      eof = headerSize;
      for (int i = 0; i <= RECID_LAST_RESERVED; i++) {
        indexTable.ensureAvailable(i * 8);
        indexTable.putLong(i * 8, -3);
      }

      if (vol.isEmpty()) {
        initCreate();
      } else {
        initOpen();
      }
    } finally {
      structuralLock.unlock();
    }
  }