[armedbear-devel] AASTORE Removal - Bounds checking

logicmoo at gmail.com logicmoo at gmail.com
Thu Dec 3 20:24:14 UTC 2009


With  the execute(...) functions in Primitive.java  

@Override
    public LispObject execute(LispObject first, LispObject second,
                              LispObject third)

    {
        LispObject[] args = new LispObject[3];
        args[0] = first;
        args[1] = second;
        args[2] = third;
        return execute(args);
    }

Should probably be transformed to 

@Override
    public LispObject execute(LispObject first, LispObject second,
                              LispObject third)

    {
        return execute(new LispObject[]{first,second,third});
    }

To remove the redundant bounds checking of AASTORE







More information about the armedbear-devel mailing list