Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ◆ jruby --bytecode --fast -e "[1,foo,2,bar,3,baz]; 1"
- // class version 50.0 (50)
- // access flags 33
- public class ruby/__dash_e__ extends org/jruby/ast/executable/AbstractScript {
- // compiled from: -e
- // access flags 18
- private final Ljava/lang/Class; $class
- // access flags 1
- public <init>()V
- ALOAD 0
- INVOKESPECIAL org/jruby/ast/executable/AbstractScript.<init> ()V
- ALOAD 0
- LDC "ruby.__dash_e__"
- INVOKESTATIC java/lang/Class.forName (Ljava/lang/String;)Ljava/lang/Class;
- PUTFIELD ruby/__dash_e__.$class : Ljava/lang/Class;
- ALOAD 0
- LDC "-e"
- PUTFIELD ruby/__dash_e__.filename : Ljava/lang/String;
- ALOAD 0
- ICONST_3
- ANEWARRAY org/jruby/runtime/CallSite
- ICONST_2
- LDC "baz"
- INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
- ICONST_1
- LDC "bar"
- INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
- ICONST_0
- LDC "foo"
- INVOKESTATIC ruby/__dash_e__.setVariableCallSite ([Lorg/jruby/runtime/CallSite;ILjava/lang/String;)[Lorg/jruby/runtime/CallSite;
- PUTFIELD ruby/__dash_e__.callSites : [Lorg/jruby/runtime/CallSite;
- RETURN
- MAXSTACK = 4
- MAXLOCALS = 1
- // access flags 1
- 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;
- @Lorg/jruby/anno/JRubyMethod;(name="__file__", frame=true, required=0, optional=0, rest=-2)
- ALOAD 1
- INVOKEVIRTUAL org/jruby/runtime/ThreadContext.getRuntime ()Lorg/jruby/Ruby;
- DUP
- ASTORE 6
- INVOKEVIRTUAL org/jruby/Ruby.getNil ()Lorg/jruby/runtime/builtin/IRubyObject;
- ASTORE 8
- L0
- LINENUMBER 1 L0
- ALOAD 0
- INVOKEVIRTUAL ruby/__dash_e__.getCallSite0 ()Lorg/jruby/runtime/CallSite;
- ALOAD 1
- ALOAD 2
- ALOAD 2
- 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;
- POP
- ALOAD 0
- INVOKEVIRTUAL ruby/__dash_e__.getCallSite1 ()Lorg/jruby/runtime/CallSite;
- ALOAD 1
- ALOAD 2
- ALOAD 2
- 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;
- POP
- ALOAD 0
- INVOKEVIRTUAL ruby/__dash_e__.getCallSite2 ()Lorg/jruby/runtime/CallSite;
- ALOAD 1
- ALOAD 2
- ALOAD 2
- 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;
- POP
- ALOAD 6
- INVOKESTATIC org/jruby/RubyFixnum.one (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
- ARETURN
- MAXSTACK = 4
- MAXLOCALS = 9
- // access flags 4106
- private static setPosition(Lorg/jruby/runtime/ThreadContext;I)V
- ALOAD 0
- LDC "-e"
- ILOAD 1
- INVOKEVIRTUAL org/jruby/runtime/ThreadContext.setFileAndLine (Ljava/lang/String;I)V
- RETURN
- MAXSTACK = 3
- MAXLOCALS = 2
- }
Add Comment
Please, Sign In to add comment