Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FieldTest {
- public FieldTest();
- Code:
- 0: aload_0
- 1: invokespecial #10 // Method java/lang/Object."<init>":()V
- 4: aload_0
- 5: iconst_0
- 6: putfield #12 // Field value:I
- 9: return
- public void setValue(int);
- Code:
- 0: aload_0
- 1: iload_1
- 2: putfield #12 // Field value:I
- 5: return
- public int getValue();
- Code:
- 0: aload_0
- 1: getfield #12 // Field value:I
- 4: ireturn
- public static void doTest(int);
- Code:
- 0: new #1 // class FieldTest
- 3: dup
- 4: invokespecial #23 // Method "<init>":()V
- 7: astore_1
- 8: invokestatic #24 // Method java/lang/System.nanoTime:()J
- 11: lstore_2
- 12: iconst_0
- 13: istore 4
- 15: goto 31
- 18: aload_1
- 19: aload_1
- 20: getfield #12 // Field value:I
- 23: iconst_1
- 24: iadd
- 25: putfield #12 // Field value:I
- 28: iinc 4, 1
- 31: iload 4
- 33: iload_0
- 34: if_icmplt 18
- 37: aload_1
- 38: iconst_0
- 39: putfield #12 // Field value:I
- 42: invokestatic #24 // Method java/lang/System.nanoTime:()J
- 45: lload_2
- 46: lsub
- 47: lstore 4
- 49: invokestatic #24 // Method java/lang/System.nanoTime:()J
- 52: lstore 6
- 54: iconst_0
- 55: istore 8
- 57: goto 73
- 60: aload_1
- 61: aload_1
- 62: invokevirtual #30 // Method getValue:()I
- 65: iconst_1
- 66: iadd
- 67: invokevirtual #32 // Method setValue:(I)V
- 70: iinc 8, 1
- 73: iload 8
- 75: iload_0
- 76: if_icmplt 60
- 79: aload_1
- 80: iconst_0
- 81: invokevirtual #32 // Method setValue:(I)V
- 84: invokestatic #24 // Method java/lang/System.nanoTime:()J
- 87: lload 6
- 89: lsub
- 90: lstore 8
- 92: getstatic #34 // Field java/lang/System.out:Ljava/io/PrintStream;
- 95: ldc #38 // String Field Access: %d ns\n
- 97: iconst_1
- 98: anewarray #3 // class java/lang/Object
- 101: dup
- 102: iconst_0
- 103: lload 4
- 105: invokestatic #40 // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
- 108: aastore
- 109: invokevirtual #46 // Method java/io/PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
- 112: pop
- 113: getstatic #34 // Field java/lang/System.out:Ljava/io/PrintStream;
- 116: ldc #52 // String Method Access: %d ns\n
- 118: iconst_1
- 119: anewarray #3 // class java/lang/Object
- 122: dup
- 123: iconst_0
- 124: lload 8
- 126: invokestatic #40 // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
- 129: aastore
- 130: invokevirtual #46 // Method java/io/PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
- 133: pop
- 134: getstatic #34 // Field java/lang/System.out:Ljava/io/PrintStream;
- 137: invokevirtual #54 // Method java/io/PrintStream.println:()V
- 140: return
- public static void main(java.lang.String[]) throws java.lang.InterruptedException;
- Code:
- 0: ldc #71 // int 2147483647
- 2: istore_1
- 3: ldc2_w #72 // long 1000l
- 6: invokestatic #74 // Method java/lang/Thread.sleep:(J)V
- 9: iconst_0
- 10: istore_2
- 11: goto 21
- 14: iload_1
- 15: invokestatic #80 // Method doTest:(I)V
- 18: iinc 2, 1
- 21: iload_2
- 22: bipush 10
- 24: if_icmplt 14
- 27: return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement