public class org.jruby.ir.instructions.DefineModuleInstr extends org.jruby.ir.instructions.OneOperandResultBaseInstr 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.DefineModuleInstr
super_class: org.jruby.ir.instructions.OneOperandResultBaseInstr
{
private final org.jruby.ir.IRModuleBody body;
descriptor: Lorg/jruby/ir/IRModuleBody;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/ir/instructions/DefineModuleInstr;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.ir.instructions.DefineModuleInstr.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.ir.operands.Variable, org.jruby.ir.IRModuleBody, org.jruby.ir.operands.Operand);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/IRModuleBody;Lorg/jruby/ir/operands/Operand;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getstatic org.jruby.ir.Operation.DEF_MODULE:Lorg/jruby/ir/Operation;
aload 1
aload 3
invokespecial org.jruby.ir.instructions.OneOperandResultBaseInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;)V
1: getstatic org.jruby.ir.instructions.DefineModuleInstr.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
ldc "DefineModuleInstr result is null"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: org.jruby.ir.instructions.DefineModuleInstr org.jruby.ir.operands.Variable org.jruby.ir.IRModuleBody org.jruby.ir.operands.Operand
StackMap stack:
aload 0
aload 2
putfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
3: return
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/DefineModuleInstr;
0 4 1 result Lorg/jruby/ir/operands/Variable;
0 4 2 body Lorg/jruby/ir/IRModuleBody;
0 4 3 container Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
result
body
container
public org.jruby.ir.IRModuleBody getNewIRModuleBody();
descriptor: ()Lorg/jruby/ir/IRModuleBody;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
public org.jruby.ir.operands.Operand getContainer();
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.DefineModuleInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
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_1
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.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
invokevirtual org.jruby.ir.IRModuleBody.getId:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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/DefineModuleInstr;
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=6, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ir.instructions.DefineModuleInstr
dup
aload 1
aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
aload 0
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.getContainer:()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;
invokespecial org.jruby.ir.instructions.DefineModuleInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/IRModuleBody;Lorg/jruby/ir/operands/Operand;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 1 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
public void encode(org.jruby.ir.persistence.IRWriterEncoder);
descriptor: (Lorg/jruby/ir/persistence/IRWriterEncoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.ir.instructions.OneOperandResultBaseInstr.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.getNewIRModuleBody:()Lorg/jruby/ir/IRModuleBody;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/IRScope;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.getContainer:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 4 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.DefineModuleInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/DefineModuleInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.DefineModuleInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeVariable:()Lorg/jruby/ir/operands/Variable;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeScope:()Lorg/jruby/ir/IRScope;
checkcast org.jruby.ir.IRModuleBody
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
invokespecial org.jruby.ir.instructions.DefineModuleInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/IRModuleBody;Lorg/jruby/ir/operands/Operand;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 d Lorg/jruby/ir/persistence/IRReaderDecoder;
MethodParameters:
Name Flags
d
public java.lang.Object interpret(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;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
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.DefineModuleInstr.getContainer:()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;
astore 6
start local 6 1: aload 1
aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
aload 6
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.newRubyModuleFromIR:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ir/IRScope;Ljava/lang/Object;)Lorg/jruby/RubyModule;
astore 7
start local 7 2: aload 0
aload 1
aload 7
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.INTERPRET_MODULE:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyModule;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 3 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 currScope Lorg/jruby/parser/StaticScope;
0 3 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 3 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 3 5 temp [Ljava/lang/Object;
1 3 6 container Ljava/lang/Object;
2 3 7 clazz Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
context
currScope
currDynScope
self
temp
private org.jruby.runtime.builtin.IRubyObject INTERPRET_MODULE(org.jruby.runtime.ThreadContext, org.jruby.RubyModule);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyModule;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
invokevirtual org.jruby.ir.IRModuleBody.getInterpreterContext:()Lorg/jruby/ir/interpreter/InterpreterContext;
astore 3
start local 3 1: aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
invokevirtual org.jruby.ir.IRModuleBody.getId:()Ljava/lang/String;
astore 4
start local 4 2: aload 3
invokevirtual org.jruby.ir.interpreter.InterpreterContext.hasExplicitCallProtocol:()Z
istore 5
start local 5 3: iload 5
ifne 4
aload 0
aload 3
aload 1
aload 2
aconst_null
aload 2
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.pre:(Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/RubyModule;)V
4: StackMap locals: org.jruby.ir.interpreter.InterpreterContext java.lang.String int
StackMap stack:
aload 1
aload 4
aload 3
invokevirtual org.jruby.ir.interpreter.InterpreterContext.getFileName:()Ljava/lang/String;
aload 1
invokevirtual org.jruby.runtime.ThreadContext.getLine:()I
invokestatic org.jruby.runtime.ThreadContext.pushBacktrace:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Ljava/lang/String;I)V
5: aload 3
invokevirtual org.jruby.ir.interpreter.InterpreterContext.getEngine:()Lorg/jruby/ir/interpreter/InterpreterEngine;
aload 1
aconst_null
aload 2
aload 3
aload 2
invokevirtual org.jruby.RubyModule.getMethodLocation:()Lorg/jruby/RubyModule;
aload 4
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.ir.interpreter.InterpreterEngine.interpret:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
6: aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
invokevirtual org.jruby.ir.IRModuleBody.cleanupAfterExecution:()V
7: iload 5
ifne 8
aload 0
aload 3
aload 1
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.post:(Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/runtime/ThreadContext;)V
8: StackMap locals: org.jruby.ir.instructions.DefineModuleInstr org.jruby.runtime.ThreadContext org.jruby.RubyModule org.jruby.ir.interpreter.InterpreterContext java.lang.String int top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
invokestatic org.jruby.runtime.ThreadContext.popBacktrace:(Lorg/jruby/runtime/ThreadContext;)V
9: aload 7
areturn
10: StackMap locals: org.jruby.ir.instructions.DefineModuleInstr org.jruby.runtime.ThreadContext org.jruby.RubyModule org.jruby.ir.interpreter.InterpreterContext java.lang.String int
StackMap stack: java.lang.Throwable
astore 6
11: aload 0
getfield org.jruby.ir.instructions.DefineModuleInstr.body:Lorg/jruby/ir/IRModuleBody;
invokevirtual org.jruby.ir.IRModuleBody.cleanupAfterExecution:()V
12: iload 5
ifne 13
aload 0
aload 3
aload 1
invokevirtual org.jruby.ir.instructions.DefineModuleInstr.post:(Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/runtime/ThreadContext;)V
13: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
invokestatic org.jruby.runtime.ThreadContext.popBacktrace:(Lorg/jruby/runtime/ThreadContext;)V
14: aload 6
athrow
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 15 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 15 1 context Lorg/jruby/runtime/ThreadContext;
0 15 2 clazz Lorg/jruby/RubyModule;
1 15 3 ic Lorg/jruby/ir/interpreter/InterpreterContext;
2 15 4 id Ljava/lang/String;
3 15 5 hasExplicitCallProtocol Z
Exception table:
from to target type
4 6 10 any
MethodParameters:
Name Flags
context
clazz
private void post(org.jruby.ir.interpreter.InterpreterContext, org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/runtime/ThreadContext;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.ThreadContext.popFrame:()V
1: aload 1
invokevirtual org.jruby.ir.interpreter.InterpreterContext.popDynScope:()Z
ifeq 2
aload 2
invokevirtual org.jruby.runtime.ThreadContext.popScope:()V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 3 1 ic Lorg/jruby/ir/interpreter/InterpreterContext;
0 3 2 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
ic
context
private void pre(org.jruby.ir.interpreter.InterpreterContext, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, java.lang.String, org.jruby.RubyModule);
descriptor: (Lorg/jruby/ir/interpreter/InterpreterContext;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/RubyModule;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 2
aload 5
aload 4
aload 3
invokevirtual org.jruby.runtime.ThreadContext.preMethodFrameOnly:(Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
1: aload 1
invokevirtual org.jruby.ir.interpreter.InterpreterContext.pushNewDynScope:()Z
ifeq 2
aload 2
aload 1
invokevirtual org.jruby.ir.interpreter.InterpreterContext.getStaticScope:()Lorg/jruby/parser/StaticScope;
invokestatic org.jruby.runtime.DynamicScope.newDynamicScope:(Lorg/jruby/parser/StaticScope;)Lorg/jruby/runtime/DynamicScope;
invokevirtual org.jruby.runtime.ThreadContext.pushScope:(Lorg/jruby/runtime/DynamicScope;)V
2: StackMap locals:
StackMap stack:
return
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/DefineModuleInstr;
0 3 1 ic Lorg/jruby/ir/interpreter/InterpreterContext;
0 3 2 context Lorg/jruby/runtime/ThreadContext;
0 3 3 self Lorg/jruby/runtime/builtin/IRubyObject;
0 3 4 name Ljava/lang/String;
0 3 5 implClass Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
ic
context
self
name
implClass
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.DefineModuleInstr:(Lorg/jruby/ir/instructions/DefineModuleInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/DefineModuleInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "DefineModuleInstr.java"