Advertisement
Guest User

Untitled

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