13.10.2014 Views

OPTIMIZING THE JAVA VIRTUAL MACHINE INSTRUCTION SET BY ...

OPTIMIZING THE JAVA VIRTUAL MACHINE INSTRUCTION SET BY ...

OPTIMIZING THE JAVA VIRTUAL MACHINE INSTRUCTION SET BY ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

249<br />

# Len Score Multicode<br />

%<br />

1 2 100.0 aload 0 getfield<br />

2 7 21.4 aload 0 dup getfield dup x1 iconst 1 iadd putfield<br />

3 7 13.9 aload iload 3 caload aload iload caload if icmpeq<br />

4 5 12.1 iload 3 caload iadd istore 1 iinc<br />

5 5 11.1 aload 0 dup getfield iconst 1 iadd<br />

6 7 9.6 iload iadd caload istore iload iload 1 if icmpne<br />

7 5 8.1 iconst 0 baload sipush iand ireturn<br />

8 2 7.9 aload 0 aload 1<br />

9 3 7.8 iload 3 iload 2 if icmplt<br />

10 3 7.3 bipush iload 1 imul<br />

11 4 6.5 baload bastore iconst 1 ireturn<br />

12 3 6.4 iload 3 iload if icmplt<br />

13 2 6.3 iconst m1 if icmpne<br />

14 9 5.9 istore 2 iload 2 ldc iand istore 2 iload 2 iload 1 irem ireturn<br />

15 2 5.5 aload 0 invokevirtual<br />

16 4 5.1 aload 3 iload iload castore<br />

17 3 4.9 iload 3 iconst 1 if icmpne<br />

18 3 4.9 iconst 0 iconst 1 invokevirtual<br />

19 7 4.0 aload 1 iload caload istore iload iconst 1 if icmplt<br />

20 2 4.0 iinc iinc<br />

21 2 4.0 aload 0 iload 1<br />

22 2 4.0 aload 1 invokevirtual<br />

23 2 3.9 aload 1 iload 2<br />

24 2 3.7 aload 3 getfield<br />

25 2 3.6 istore 1 iload 1<br />

Table A.4: Multicodes of Length 10 or Less using Maximum Number of Bytecodes<br />

Replaced Scoring for 213 javac

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!