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.

245<br />

# Len Score Multicode<br />

%<br />

1 9 100.0 aload 0 getfield iload 3 aaload aload 2 getfield iload 3 aaload<br />

invokevirtual<br />

2 4 63.1 iload 3 aload 0 getfield if icmplt<br />

3 8 59.5 aload 0 getfield iload 3 aaload aload 2 iload 3 aaload invokevirtual<br />

4 3 42.9 aload 0 aload 1 if acmpne<br />

5 8 32.4 aload 1 checkcast astore 2 aload 0 getfield aload 2 getfield<br />

if icmpeq<br />

6 7 26.9 aload 0 getfield istore 2 aload 1 getfield iload 2 if icmpeq<br />

7 5 24.0 aload 0 getfield iload 1 aaload areturn<br />

8 6 20.8 aload 1 getfield astore 2 iconst 0 istore 3 goto<br />

9 6 20.8 astore 3 aload 2 getfield aload 3 getfield if icmpne<br />

10 5 17.1 aload 0 getfield aload 1 getfield if icmpeq<br />

11 4 13.5 iload 2 ldc iand ifeq<br />

12 2 13.4 iconst 0 ireturn<br />

13 2 12.9 iconst 1 ireturn<br />

14 3 9.0 iload iload if icmplt<br />

15 3 8.5 aload 1 iload invokevirtual<br />

16 3 8.5 aload 2 aload 3 invokevirtual<br />

17 3 8.4 iconst 0 istore 3 goto<br />

18 2 8.4 aload 0 getfield<br />

19 8 5.4 aload getfield istore aload getfield istore aload getfield<br />

20 12 2.8 iload aaload checkcast astore aload 1 getfield aload getfield<br />

aaload astore aload ifnull<br />

21 20 2.1 aload 0 aload 1 getfield iconst 3 iadd anewarray putfield aload 0<br />

aload 1 getfield putfield aload 0 iconst 0 putfield aload 0 aload 1<br />

getfield putfield aload 1 getfield<br />

22 9 1.9 istore 2 iload 2 ldc iand istore 2 iload 2 iload 1 irem ireturn<br />

23 7 1.8 aload 0 dup getfield dup x1 iconst 1 iadd putfield<br />

24 3 1.6 istore aload getfield<br />

25 2 1.2 iload invokevirtual<br />

Table A.2: Multicodes of Length 20 or Less using Transfer Reduction Scoring for<br />

202 jess

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

Saved successfully!

Ooh no, something went wrong!