Skip to content

Instantly share code, notes, and snippets.

@uskey512
Last active December 22, 2019 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uskey512/5102e29364b07aa9571335c517eb8bfb to your computer and use it in GitHub Desktop.
Save uskey512/5102e29364b07aa9571335c517eb8bfb to your computer and use it in GitHub Desktop.
Classfile /Projects/gist/java/blog_integercache/IntCompare.class
Last modified 2019/12/22; size 493 bytes
SHA-256 checksum a4ee8895a66ef2c9b7395c1e5b354dc6efe95c1e0e3998d82ad60bea4f8cd580
Compiled from "IntCompare.java"
class IntCompare
minor version: 0
major version: 57
flags: (0x0020) ACC_SUPER
this_class: #19 // IntCompare
super_class: #2 // java/lang/Object
interfaces: 0, fields: 0, methods: 2, attributes: 1
Constant pool:
#1 = Methodref #2.#3 // java/lang/Object."<init>":()V
#2 = Class #4 // java/lang/Object
#3 = NameAndType #5:#6 // "<init>":()V
#4 = Utf8 java/lang/Object
#5 = Utf8 <init>
#6 = Utf8 ()V
#7 = Fieldref #8.#9 // java/lang/System.out:Ljava/io/PrintStream;
#8 = Class #10 // java/lang/System
#9 = NameAndType #11:#12 // out:Ljava/io/PrintStream;
#10 = Utf8 java/lang/System
#11 = Utf8 out
#12 = Utf8 Ljava/io/PrintStream;
#13 = Methodref #14.#15 // java/io/PrintStream.println:(Z)V
#14 = Class #16 // java/io/PrintStream
#15 = NameAndType #17:#18 // println:(Z)V
#16 = Utf8 java/io/PrintStream
#17 = Utf8 println
#18 = Utf8 (Z)V
#19 = Class #20 // IntCompare
#20 = Utf8 IntCompare
#21 = Utf8 Code
#22 = Utf8 LineNumberTable
#23 = Utf8 main
#24 = Utf8 ([Ljava/lang/String;)V
#25 = Utf8 StackMapTable
#26 = Class #27 // "[Ljava/lang/String;"
#27 = Utf8 [Ljava/lang/String;
#28 = Utf8 SourceFile
#29 = Utf8 IntCompare.java
{
IntCompare();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 1: 0
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
0: bipush 100
2: istore_1
3: bipush 100
5: istore_2
6: getstatic #7 // Field java/lang/System.out:Ljava/io/PrintStream;
9: iload_1
10: iload_2
11: if_icmpne 18
14: iconst_1
15: goto 19
18: iconst_0
19: invokevirtual #13 // Method java/io/PrintStream.println:(Z)V
22: return
LineNumberTable:
line 3: 0
line 4: 3
line 6: 6
line 7: 22
StackMapTable: number_of_entries = 2
frame_type = 255 /* full_frame */
offset_delta = 18
locals = [ class "[Ljava/lang/String;", int, int ]
stack = [ class java/io/PrintStream ]
frame_type = 255 /* full_frame */
offset_delta = 0
locals = [ class "[Ljava/lang/String;", int, int ]
stack = [ class java/io/PrintStream, int ]
}
SourceFile: "IntCompare.java"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment