Skip to content

Instantly share code, notes, and snippets.

@headius
Created September 9, 2021 16:36
Show Gist options
  • Save headius/874a08ce0920285c04366b768d8a6420 to your computer and use it in GitHub Desktop.
Save headius/874a08ce0920285c04366b768d8a6420 to your computer and use it in GitHub Desktop.
*** Dumping blah.RUBY$method$toString$1 ***
L0
L1
LINENUMBER 2 L1
L2
NOP
L3
NOP
ALOAD 3
ASTORE 6
L4
LINENUMBER 3 L4
ALOAD 0
INVOKEDYNAMIC string(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString; [
// handle kind 0x6 : INVOKESTATIC
org/jruby/ir/targets/indy/Bootstrap.string(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/invoke/CallSite;
// arguments:
"parent ",
"UTF-8",
16
]
ASTORE 7
ALOAD 0
ALOAD 2
ALOAD 2
ALOAD 1
ICONST_0
INVOKESTATIC org/jruby/runtime/Helpers.getNthScopeModule (Lorg/jruby/parser/StaticScope;I)Lorg/jruby/RubyModule;
CHECKCAST org/jruby/RubyClass
ALOAD 0
ALOAD 6
INVOKESTATIC org/jruby/ir/runtime/IRRuntimeHelpers.getBlockFromObject (Lorg/jruby/runtime/ThreadContext;Ljava/lang/Object;)Lorg/jruby/runtime/Block;
INVOKESTATIC blah.invokeSuper3:toString (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
ASTORE 8
ALOAD 0
ALOAD 2
ALOAD 7
ALOAD 8
INVOKESTATIC blah.invokeOther4:+ (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
ASTORE 9
ALOAD 9
ARETURN
L5
NOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment