Skip to content

Instantly share code, notes, and snippets.

@gtrak
Created March 30, 2013 02:18
Show Gist options
  • Save gtrak/5274993 to your computer and use it in GitHub Desktop.
Save gtrak/5274993 to your computer and use it in GitHub Desktop.
no.disassemble> (println (disassemble (class (fn []))))
no/disassemble$eval11772$fn__11773
#<byte[] [B@13940478>
// Compiled from NO_SOURCE_FILE (version 1.5 : 49.0, super bit)
public final class no.disassemble$eval11772$fn__11773 extends clojure.lang.AFunction {
// Method descriptor #7 ()V
// Stack: 0, Locals: 0
public static {};
0 return
Line numbers:
[pc: 0, line: 1]
// Method descriptor #7 ()V
// Stack: 1, Locals: 1
public disassemble$eval11772$fn__11773();
0 aload_0
1 invokespecial clojure.lang.AFunction() [10]
4 return
Line numbers:
[pc: 0, line: 1]
// Method descriptor #12 ()Ljava/lang/Object;
// Stack: 1, Locals: 1
public java.lang.Object invoke();
0 aconst_null
1 areturn
Line numbers:
[pc: 0, line: 1]
Local variable table:
[pc: 0, pc: 1] local: this index: 0 type: java.lang.Object
}
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment