Guest User

Untitled

a guest
Apr 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. ~/projects/duby ➔ bin/duby -e "def foo(a: 1); puts a; end; foo; foo(2)"
  2. 1
  3. 2
  4.  
  5. ~/projects/duby ➔ bin/dubyc -e "def foo(a: 1); puts a; end; foo; foo(2)"
  6. javap -c
  7. ~/projects/duby ➔ javap -c dash_e
  8. Compiled from dash_e
  9. public class dash_e extends java.lang.Object{
  10. public static void main(java.lang.String[]);
  11. Code:
  12. 0: invokestatic #26; //Method foo:()V
  13. 3: iconst_2
  14. 4: invokestatic #24; //Method foo:(I)V
  15. 7: return
  16.  
  17. public static void foo(int);
  18. Code:
  19. 0: getstatic #14; //Field java/lang/System.out:Ljava/io/PrintStream;
  20. 3: iload_0
  21. 4: invokevirtual #19; //Method java/io/PrintStream.println:(I)V
  22. 7: return
  23.  
  24. public static void foo();
  25. Code:
  26. 0: iconst_1
  27. 1: invokestatic #24; //Method foo:(I)V
  28. 4: return
  29.  
  30. public dash_e();
  31. Code:
  32. 0: aload_0
  33. 1: invokespecial #31; //Method java/lang/Object."<init>":()V
  34. 4: return
  35.  
  36. }
Add Comment
Please, Sign In to add comment