Skip to content

Instantly share code, notes, and snippets.

@headius
Last active September 11, 2019 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/f89e0d437cb90fc08f74b92ee7b807c6 to your computer and use it in GitHub Desktop.
Save headius/f89e0d437cb90fc08f74b92ee7b807c6 to your computer and use it in GitHub Desktop.
// access flags 0x100A
private static synthetic invokeOther0:foo(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
L0
LINENUMBER 1 L0
GETSTATIC DashE.invokeOther0:foo : Lorg/jruby/runtime/callsite/CachingCallSite;
DUP
IFNONNULL L1
POP
LDC "foo"
INVOKESTATIC org/jruby/ir/runtime/IRRuntimeHelpers.newVariableCachingCallSite (Ljava/lang/String;)Lorg/jruby/runtime/callsite/VariableCachingCallSite;
DUP
PUTSTATIC DashE.invokeOther0:foo : Lorg/jruby/runtime/callsite/CachingCallSite;
L1
FRAME SAME1 org/jruby/runtime/callsite/CachingCallSite
ALOAD 0
ALOAD 1
ALOAD 2
INVOKEVIRTUAL org/jruby/runtime/callsite/CachingCallSite.call (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
ARETURN
MAXSTACK = 4
MAXLOCALS = 3
// access flags 0x100A
private static synthetic invokeOther0:foo(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
L0
LINENUMBER 1 L0
INVOKEDYNAMIC foo()Lorg/jruby/runtime/callsite/CachingCallSite; [
// handle kind 0x6 : INVOKESTATIC
org/jruby/ir/targets/Bootstrap.prepareCallSiteObject(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;I)Ljava/lang/invoke/CallSite;
// arguments:
3
]
ALOAD 0
ALOAD 1
ALOAD 2
INVOKEVIRTUAL org/jruby/runtime/callsite/CachingCallSite.call (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
ARETURN
MAXSTACK = 4
MAXLOCALS = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment