lojix/logic/src/main/com/thesett/aima/logic/fol/bytecode/BaseCodeMachine.java
public void emmitCode(C compiled) throws LinkageException
    {
        /*log.fine("public void emmitCode(C compiled): called");*/

        SizeableList<I> instructions = compiled.getInstructions();

        // Get the call point for the code to write.
        CallPoint callPoint = resolveCallPoint(compiled.getName());

        if (callPoint == null)
        {
            /*log.fine("call point not resolved, reserving new one.");*/
            callPoint = reserveCallPoint(compiled.getName(), (int) instructions.sizeof());
        }

        /*log.fine("insertion point = " + getCodeInsertionPoint());*/

        // Pass a reference to a buffer set to write to the call point in the code buffer on the encoder.
        instructionEncoder.setCodeBuffer(getCodeBuffer(callPoint));

        // Loop over all instructions encoding them to byte code in the machines code buffer.
        for (I instruction : instructions)
        {
            instruction.accept(instructionEncoder);
        }
    }
public void emmitCode(C compiled) throws LinkageException
    {
        /*log.fine("public void emmitCode(C compiled): called");*/

        SizeableList<I> instructions = compiled.getInstructions();

        // Get the call point for the code to write.
        CallPoint callPoint = resolveCallPoint(compiled.getName());

        if (callPoint == null)
        {
            /*log.fine("call point not resolved, reserving new one.");*/
            callPoint = reserveCallPoint(compiled.getName(), (int) instructions.sizeof());
        }

        /*log.fine("insertion point = " + getCodeInsertionPoint());*/

        // Pass a reference to a buffer set to write to the call point in the code buffer on the encoder.
        instructionEncoder.setCodeBuffer(getCodeBuffer(callPoint));

        // Loop over all instructions encoding them to byte code in the machines code buffer.
        for (I instruction : instructions)
        {
            instruction.accept(instructionEncoder);
        }
    }
public void emmitCode ( C compiled ) throws LinkageException { /*log.fine("public void emmitCode(C compiled): called");*/ SizeableList < I > instructions = compiled . getInstructions ( ) ; // Get the call point for the code to write. CallPoint callPoint = resolveCallPoint ( compiled . getName ( ) ) ; if ( callPoint == null ) { /*log.fine("call point not resolved, reserving new one.");*/ callPoint = reserveCallPoint ( compiled . getName ( ) , ( int ) instructions . sizeof ( ) ) ; } /*log.fine("insertion point = " + getCodeInsertionPoint());*/ // Pass a reference to a buffer set to write to the call point in the code buffer on the encoder. instructionEncoder . setCodeBuffer ( getCodeBuffer ( callPoint ) ) ; // Loop over all instructions encoding them to byte code in the machines code buffer. for ( I instruction : instructions ) { instruction . accept ( instructionEncoder ) ; } }
{@inheritDoc}

<p/>It is expected that the compiled code being written into the machine, will not have its call resolved onto
call-points, and that call will be made to the {@link #resolveCallPoint(int)} method, during this procedure to
resolve them.
{ @inheritDoc }