Typical Baf Method Before Optimizations

Method: public int getbyte()
Class: spec.benchmarks._201_compress.Input_Buffer.class

    public int getbyte()
    {
        word r0, $i0, $i1, $r1, $i2, $i3, $r2, $r3, $i4, $i5, $i6;

        r0 := @this;
        load.r r0;
        fieldget <spec.benchmarks._201_compress.Input_Buffer: int InCnt>;
        store.i $i1;
        load.i $i1;
        ifle label0;

        load.r r0;
        store.r $r1;
        load.r r0;
        fieldget <spec.benchmarks._201_compress.Input_Buffer: int InCnt>;
        store.i $i2;
        load.i $i2;
        push 1;
        sub.i;
        store.i $i3;
        load.r r0;
        load.i $i3;
        fieldput <spec.benchmarks._201_compress.Input_Buffer: int InCnt>;
        load.r r0;
        fieldget <spec.benchmarks._201_compress.Input_Buffer: byte[] InBuff>;
        store.r $r2;
        load.r r0;
        store.r $r3;
        load.r r0;
        fieldget <spec.benchmarks._201_compress.Input_Buffer: int Current>;
        store.i $i0;
        load.i $i0;
        push 1;
        add.i;
        store.i $i4;
        load.r r0;
        load.i $i4;
        fieldput <spec.benchmarks._201_compress.Input_Buffer: int Current>;
        load.r $r2;
        load.i $i0;
        arrayread.b;
        store.i $i5;
        load.i $i5;
        push 255;
        and.i;
        store.i $i6;
        load.i $i6;
        return.i;

     label0:
        push -1;
        return.i;
    }

	

    
next
Patrice POMINVILLE
Last modified: Tue Aug 17 18:03:59 EDT 1999