-32 Removals
+32 Additions
1for (...) n += (i*i); return 2 *n1for (...) n += 2*(i*i); return n
2 public int square_i_two();2 public int two_square_i();
3 descriptor: ()I3 descriptor: ()I
4 flags: ACC_PUBLIC4 flags: ACC_PUBLIC
5 Code:5 Code:
6 stack=3, locals=3, args_size=16 stack=4, locals=3, args_size=1
7 0: iconst_07 0: iconst_0
8 1: istore_18 1: istore_1
9 2: iconst_09 2: iconst_0
10 3: istore_210 3: istore_2
11 4: iload_211 4: iload_2
12 5: aload_012 5: aload_0
13 6: getfield #2 // Field size:I13 6: getfield #2 // Field size:I
14 9: if_icmpge 2414 9: if_icmpge 26
15 12: iload_115 12: iload_1
16 13: iload_216 13: iconst_2
17 14: iload_217 14: iload_2
18 15: imul18 15: iload_2
19 16: iadd19 16: imul
20 17: istore_120 17: imul
21 18: iinc 2, 121 18: iadd
22 21: goto 422 19: istore_1
23 24: iconst_223 20: iinc 2, 1
24 25: iload_124 23: goto 4
25 26: imul25 26: iload_1
26 27: ireturn26 27: ireturn
27 LineNumberTable:27 LineNumberTable:
28 line 63: 028 line 54: 0
29 line 64: 229 line 55: 2
30 line 65: 1230 line 56: 12
31 line 64: 1831 line 55: 20
32 line 67: 2432 line 58: 26
33 LocalVariableTable:33 LocalVariableTable:
34 Start Length Slot Name Signature34 Start Length Slot Name Signature
35 4 20 2 i I35 4 22 2 i I
36 0 28 0 this Lorg/sample/MyBenchmark;36 0 28 0 this Lorg/sample/MyBenchmark;
37 2 26 1 n I37 2 26 1 n I
38 StackMapTable: number_of_entries = 238 StackMapTable: number_of_entries = 2
39 frame_type = 253 /* append */39 frame_type = 253 /* append */
40 offset_delta = 440 offset_delta = 4
41 locals = [ int, int ]41 locals = [ int, int ]
42 frame_type = 250 /* chop */42 frame_type = 250 /* chop */
43 offset_delta = 1943 offset_delta = 21
44 RuntimeVisibleAnnotations:44 RuntimeVisibleAnnotations:
45 0: #25()45 0: #25()
Editor
Original Text
Changed Text
Recommended videos