public class org.jruby.ir.instructions.ModuleVersionGuardInstr extends org.jruby.ir.instructions.TwoOperandInstr implements org.jruby.ir.instructions.FixedArityInstr
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.instructions.ModuleVersionGuardInstr
super_class: org.jruby.ir.instructions.TwoOperandInstr
{
private final int expectedVersion;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.RubyModule module;
descriptor: Lorg/jruby/RubyModule;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.RubyModule, int, org.jruby.ir.operands.Operand, org.jruby.ir.operands.Label);
descriptor: (Lorg/jruby/RubyModule;ILorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Label;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getstatic org.jruby.ir.Operation.MODULE_GUARD:Lorg/jruby/ir/Operation;
aload 3
aload 4
invokespecial org.jruby.ir.instructions.TwoOperandInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;)V
1: aload 0
aload 1
putfield org.jruby.ir.instructions.ModuleVersionGuardInstr.module:Lorg/jruby/RubyModule;
2: aload 0
iload 2
putfield org.jruby.ir.instructions.ModuleVersionGuardInstr.expectedVersion:I
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
0 4 1 module Lorg/jruby/RubyModule;
0 4 2 expectedVersion I
0 4 3 candidateObj Lorg/jruby/ir/operands/Operand;
0 4 4 failurePathLabel Lorg/jruby/ir/operands/Label;
MethodParameters:
Name Flags
module
expectedVersion
candidateObj
failurePathLabel
public org.jruby.ir.operands.Operand getCandidateObject();
descriptor: ()Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
public org.jruby.ir.operands.Label getFailurePathLabel();
descriptor: ()Lorg/jruby/ir/operands/Label;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getOperand2:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.Label
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
public org.jruby.RubyModule getModule();
descriptor: ()Lorg/jruby/RubyModule;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.module:Lorg/jruby/RubyModule;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
public int getExpectedVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.expectedVersion:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
public java.lang.String[] toStringNonOperandArgs();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.module:Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyModule.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
new java.lang.StringBuilder
dup
ldc "expected_version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.expectedVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
public org.jruby.ir.instructions.Instr clone(org.jruby.ir.transformations.inlining.CloneInfo);
descriptor: (Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/instructions/Instr;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.instructions.ModuleVersionGuardInstr
dup
aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.module:Lorg/jruby/RubyModule;
aload 0
getfield org.jruby.ir.instructions.ModuleVersionGuardInstr.expectedVersion:I
aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getCandidateObject:()Lorg/jruby/ir/operands/Operand;
aload 1
invokevirtual org.jruby.ir.operands.Operand.cloneForInlining:(Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
1: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getFailurePathLabel:()Lorg/jruby/ir/operands/Label;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedLabel:(Lorg/jruby/ir/operands/Label;)Lorg/jruby/ir/operands/Label;
2: invokespecial org.jruby.ir.instructions.ModuleVersionGuardInstr.<init>:(Lorg/jruby/RubyModule;ILorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Label;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
0 3 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
private boolean versionMatches(org.jruby.runtime.ThreadContext, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, org.jruby.runtime.builtin.IRubyObject, java.lang.Object[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/Object;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getCandidateObject:()Lorg/jruby/ir/operands/Operand;
aload 1
aload 4
aload 2
aload 3
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 6
start local 6 1: aload 6
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getGeneration:()I
aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getExpectedVersion:()I
if_icmpne 2
iconst_1
goto 3
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 7
start local 7 4: iload 7
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 currScope Lorg/jruby/parser/StaticScope;
0 5 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 5 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 5 5 temp [Ljava/lang/Object;
1 5 6 receiver Lorg/jruby/runtime/builtin/IRubyObject;
4 5 7 matches Z
MethodParameters:
Name Flags
context
currScope
currDynScope
self
temp
public int interpretAndGetNewIPC(org.jruby.runtime.ThreadContext, org.jruby.runtime.DynamicScope, org.jruby.parser.StaticScope, org.jruby.runtime.builtin.IRubyObject, java.lang.Object[], int);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/DynamicScope;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/Object;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 3
aload 2
aload 4
aload 5
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.versionMatches:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/Object;)Z
ifeq 1
iload 6
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual org.jruby.ir.instructions.ModuleVersionGuardInstr.getFailurePathLabel:()Lorg/jruby/ir/operands/Label;
invokevirtual org.jruby.ir.operands.Label.getTargetPC:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 currDynScope Lorg/jruby/runtime/DynamicScope;
0 3 3 currScope Lorg/jruby/parser/StaticScope;
0 3 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 3 5 temp [Ljava/lang/Object;
0 3 6 ipc I
MethodParameters:
Name Flags
context
currDynScope
currScope
self
temp
ipc
public void visit(org.jruby.ir.IRVisitor);
descriptor: (Lorg/jruby/ir/IRVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.ir.IRVisitor.ModuleVersionGuardInstr:(Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/ModuleVersionGuardInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "ModuleVersionGuardInstr.java"