/gist:9ed479bf8a720a34060b Secret
Created
June 7, 2011 23:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for -e "self[0] += 1" | |
after: | |
// access flags 0x9 | |
public static __file__(Lruby/__dash_e__;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) | |
L0 | |
LINENUMBER 1 L0 | |
ALOAD 1 | |
ALOAD 2 | |
ALOAD 2 | |
ALOAD 1 | |
INVOKEDYNAMIC getFixnum (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyFixnum; [org/jruby/runtime/invokedynamic/InvokeDynamicSupport.getFixnumBootstrap(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;J)Ljava/lang/invoke/CallSite; (6), 0] | |
ALOAD 1 | |
INVOKEDYNAMIC getFixnum (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyFixnum; [org/jruby/runtime/invokedynamic/InvokeDynamicSupport.getFixnumBootstrap(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;J)Ljava/lang/invoke/CallSite; (6), 1] | |
INVOKEDYNAMIC getCallSite ()Lorg/jruby/runtime/CallSite; [org/jruby/runtime/invokedynamic/InvokeDynamicSupport.getCallSiteBootstrap(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;C)Ljava/lang/invoke/CallSite; (6), "[]", 70] | |
INVOKEDYNAMIC getCallSite ()Lorg/jruby/runtime/CallSite; [org/jruby/runtime/invokedynamic/InvokeDynamicSupport.getCallSiteBootstrap(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;C)Ljava/lang/invoke/CallSite; (6), "+", 78] | |
INVOKEDYNAMIC getCallSite ()Lorg/jruby/runtime/CallSite; [org/jruby/runtime/invokedynamic/InvokeDynamicSupport.getCallSiteBootstrap(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;C)Ljava/lang/invoke/CallSite; (6), "[]=", 70] | |
INVOKESTATIC org/jruby/javasupport/util/RuntimeHelpers.opElementAsgnWithMethod (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/CallSite;)Lorg/jruby/runtime/builtin/IRubyObject; | |
ARETURN | |
MAXSTACK = 8 | |
MAXLOCALS = 5 | |
before: | |
// access flags 0x9 | |
public static __file__(Lruby/__dash_e__;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) | |
L0 | |
LINENUMBER 1 L0 | |
ALOAD 1 | |
ALOAD 2 | |
ALOAD 2 | |
ALOAD 1 | |
GETFIELD org/jruby/runtime/ThreadContext.runtime : Lorg/jruby/Ruby; | |
INVOKESTATIC org/jruby/RubyFixnum.zero (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum; | |
ALOAD 1 | |
GETFIELD org/jruby/runtime/ThreadContext.runtime : Lorg/jruby/Ruby; | |
INVOKESTATIC org/jruby/RubyFixnum.one (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum; | |
ALOAD 0 | |
INVOKEVIRTUAL ruby/__dash_e__.getCallSite0 ()Lorg/jruby/runtime/CallSite; | |
ALOAD 0 | |
INVOKEVIRTUAL ruby/__dash_e__.getCallSite1 ()Lorg/jruby/runtime/CallSite; | |
ALOAD 0 | |
INVOKEVIRTUAL ruby/__dash_e__.getCallSite2 ()Lorg/jruby/runtime/CallSite; | |
INVOKESTATIC org/jruby/javasupport/util/RuntimeHelpers.opElementAsgnWithMethod (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/CallSite;)Lorg/jruby/runtime/builtin/IRubyObject; | |
ARETURN | |
MAXSTACK = 8 | |
MAXLOCALS = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment