Guest User

Untitled

a guest
Feb 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. ◆ jruby --bytecode --fast -e "[1,foo,2,bar,3,baz]; 1"
  2. // class version 50.0 (50)
  3. // access flags 33
  4. public class ruby/__dash_e__ extends org/jruby/ast/executable/AbstractScript {
  5.  
  6. // compiled from: -e
  7.  
  8. // access flags 18
  9. private final Ljava/lang/Class; $class
  10.  
  11. // access flags 1
  12. public <init>()V
  13. ALOAD 0
  14. INVOKESPECIAL org/jruby/ast/executable/AbstractScript.<init> ()V
  15. ALOAD 0
  16. LDC "ruby.__dash_e__"
  17. INVOKESTATIC java/lang/Class.forName (Ljava/lang/String;)Ljava/lang/Class;
  18. PUTFIELD ruby/__dash_e__.$class : Ljava/lang/Class;
  19. ALOAD 0
  20. LDC "-e"
  21. PUTFIELD ruby/__dash_e__.filename : Ljava/lang/String;
  22. ALOAD 0
  23. ICONST_3
  24. ANEWARRAY org/jruby/runtime/CallSite
  25. ICONST_2
  26. LDC "baz"
  27. INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
  28. ICONST_1
  29. LDC "bar"
  30. INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
  31. ICONST_0
  32. LDC "foo"
  33. INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
  34. PUTFIELD ruby/__dash_e__.callSites : [Lorg/jruby/runtime/CallSite;
  35. RETURN
  36. MAXSTACK = 4
  37. MAXLOCALS = 1
  38.  
  39. // access flags 1
  40. public __file__(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
  41. @Lorg/jruby/anno/JRubyMethod;(name="__file__", frame=true, required=0, optional=0, rest=-2)
  42. ALOAD 1
  43. INVOKEVIRTUAL org/jruby/runtime/ThreadContext.getRuntime ()Lorg/jruby/Ruby;
  44. DUP
  45. ASTORE 6
  46. INVOKEVIRTUAL org/jruby/Ruby.getNil ()Lorg/jruby/runtime/builtin/IRubyObject;
  47. ASTORE 8
  48. L0
  49. LINENUMBER 1 L0
  50. ALOAD 0
  51. INVOKEVIRTUAL ruby/__dash_e__.getCallSite0 ()Lorg/jruby/runtime/CallSite;
  52. ALOAD 1
  53. ALOAD 2
  54. ALOAD 2
  55. INVOKEVIRTUAL org/jruby/runtime/CallSite.call (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
  56. POP
  57. ALOAD 0
  58. INVOKEVIRTUAL ruby/__dash_e__.getCallSite1 ()Lorg/jruby/runtime/CallSite;
  59. ALOAD 1
  60. ALOAD 2
  61. ALOAD 2
  62. INVOKEVIRTUAL org/jruby/runtime/CallSite.call (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
  63. POP
  64. ALOAD 0
  65. INVOKEVIRTUAL ruby/__dash_e__.getCallSite2 ()Lorg/jruby/runtime/CallSite;
  66. ALOAD 1
  67. ALOAD 2
  68. ALOAD 2
  69. INVOKEVIRTUAL org/jruby/runtime/CallSite.call (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
  70. POP
  71. ALOAD 6
  72. INVOKESTATIC org/jruby/RubyFixnum.one (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
  73. ARETURN
  74. MAXSTACK = 4
  75. MAXLOCALS = 9
  76.  
  77. // access flags 4106
  78. private static setPosition(Lorg/jruby/runtime/ThreadContext;I)V
  79. ALOAD 0
  80. LDC "-e"
  81. ILOAD 1
  82. INVOKEVIRTUAL org/jruby/runtime/ThreadContext.setFileAndLine (Ljava/lang/String;I)V
  83. RETURN
  84. MAXSTACK = 3
  85. MAXLOCALS = 2
  86. }
Add Comment
Please, Sign In to add comment