src/virtual-machines/source-1-with-mark-region-gc.js
// initialize machine with heapsize, number of blocks in heap, and number of lines in each block
initialize machine with heapsize, number of blocks in heap, and number of lines in each block
initialize machine with heapsize number of blocks in heap and number of lines in each block
function initialize_machine(linesize, linenumber, blocknumber) {
  HEAP = [];
  LINE_SIZE = linesize;
  NUM_OF_LINES_PER_BLOCK = linenumber;
  NUMBER_OF_BLOCKS = blocknumber;
  BLOCK_SIZE = (linesize + LINE_BK_SIZE) * NUM_OF_LINES_PER_BLOCK + BLOCK_BK_SIZE;
  HEAP_SIZE = BLOCK_SIZE * blocknumber;
  display(HEAP_SIZE, "\nRunning VM with heap size:");
  display(linesize * linenumber * blocknumber, "\nEffective memory size:");
  HEAPBOTTOM = 0;
  INITIALIZE_BLOCKS_AND_LINES();
  TEMP_ROOT = -1;
  RUNNING = true;
  STATE = NORMAL;
  PC = 0;
}
function initialize_machine ( linesize , linenumber , blocknumber ) { HEAP = [ ] ; LINE_SIZE = linesize ; NUM_OF_LINES_PER_BLOCK = linenumber ; NUMBER_OF_BLOCKS = blocknumber ; BLOCK_SIZE = ( linesize + LINE_BK_SIZE ) * NUM_OF_LINES_PER_BLOCK + BLOCK_BK_SIZE ; HEAP_SIZE = BLOCK_SIZE * blocknumber ; display ( HEAP_SIZE , "\nRunning VM with heap size:" ) ; display ( linesize * linenumber * blocknumber , "\nEffective memory size:" ) ; HEAPBOTTOM = 0 ; INITIALIZE_BLOCKS_AND_LINES ( ) ; TEMP_ROOT = - 1 ; RUNNING = true ; STATE = NORMAL ; PC = 0 ; }
initialize machine with heapsize, number of blocks in heap, and number of lines in each block
initialize machine with heapsize number of blocks in heap and number of lines in each block