public class org.jruby.ir.instructions.SearchModuleForConstInstr 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.SearchModuleForConstInstr
super_class: org.jruby.ir.instructions.OneOperandResultBaseInstr
{
private org.jruby.RubySymbol constantName;
descriptor: Lorg/jruby/RubySymbol;
flags: (0x0002) ACC_PRIVATE
private final boolean noPrivateConsts;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean callConstMissing;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile transient org.jruby.runtime.opto.ConstantCache cache;
descriptor: Lorg/jruby/runtime/opto/ConstantCache;
flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT
public void <init>(org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, org.jruby.RubySymbol, boolean);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
iload 4
iconst_1
invokespecial org.jruby.ir.instructions.SearchModuleForConstInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;ZZ)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 2 1 result Lorg/jruby/ir/operands/Variable;
0 2 2 currentModule Lorg/jruby/ir/operands/Operand;
0 2 3 constantName Lorg/jruby/RubySymbol;
0 2 4 noPrivateConsts Z
MethodParameters:
Name Flags
result
currentModule
constantName
noPrivateConsts
public void <init>(org.jruby.ir.operands.Variable, org.jruby.ir.operands.Operand, org.jruby.RubySymbol, boolean, boolean);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;ZZ)V
flags: (0x0001) ACC_PUBLIC
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 0
getstatic org.jruby.ir.Operation.SEARCH_MODULE_FOR_CONST:Lorg/jruby/ir/Operation;
aload 1
aload 2
invokespecial org.jruby.ir.instructions.OneOperandResultBaseInstr.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;)V
1: aload 0
aload 3
putfield org.jruby.ir.instructions.SearchModuleForConstInstr.constantName:Lorg/jruby/RubySymbol;
2: aload 0
iload 4
putfield org.jruby.ir.instructions.SearchModuleForConstInstr.noPrivateConsts:Z
3: aload 0
iload 5
putfield org.jruby.ir.instructions.SearchModuleForConstInstr.callConstMissing:Z
4: 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 5 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 5 1 result Lorg/jruby/ir/operands/Variable;
0 5 2 currentModule Lorg/jruby/ir/operands/Operand;
0 5 3 constantName Lorg/jruby/RubySymbol;
0 5 4 noPrivateConsts Z
0 5 5 callConstMissing Z
MethodParameters:
Name Flags
result
currentModule
constantName
noPrivateConsts
callConstMissing
public org.jruby.ir.operands.Operand getCurrentModule();
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.SearchModuleForConstInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
public java.lang.String getId();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.constantName:Lorg/jruby/RubySymbol;
invokevirtual org.jruby.RubySymbol.idString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
public org.jruby.RubySymbol getName();
descriptor: ()Lorg/jruby/RubySymbol;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.constantName:Lorg/jruby/RubySymbol;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
public boolean isNoPrivateConsts();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.noPrivateConsts:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
public boolean callConstMissing();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.callConstMissing:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
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.SearchModuleForConstInstr
dup
aload 1
aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
1: aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.getCurrentModule:()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;
aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.constantName:Lorg/jruby/RubySymbol;
aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.noPrivateConsts:Z
aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.callConstMissing:Z
2: invokespecial org.jruby.ir.instructions.SearchModuleForConstInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;ZZ)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 3 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
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.SearchModuleForConstInstr.constantName:Lorg/jruby/RubySymbol;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
new java.lang.StringBuilder
dup
ldc "no_priv: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.noPrivateConsts:Z
invokevirtual java.lang.StringBuilder.append:(Z)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/SearchModuleForConstInstr;
private java.lang.Object cache(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.getId:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.noPrivateConsts:Z
ifeq 2
aload 2
aload 3
iconst_0
invokevirtual org.jruby.RubyModule.getConstantFromNoConstMissing:(Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 2
aload 3
invokevirtual org.jruby.RubyModule.getConstantNoConstMissing:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
3: astore 4
start local 4 4: aload 4
ifnull 7
5: aload 1
aload 3
invokevirtual org.jruby.Ruby.getConstantInvalidator:(Ljava/lang/String;)Lorg/jruby/runtime/opto/Invalidator;
astore 5
start local 5 6: aload 0
new org.jruby.runtime.opto.ConstantCache
dup
aload 4
checkcast org.jruby.runtime.builtin.IRubyObject
aload 5
invokeinterface org.jruby.runtime.opto.Invalidator.getData:()Ljava/lang/Object;
aload 5
aload 2
invokevirtual org.jruby.RubyModule.hashCode:()I
invokespecial org.jruby.runtime.opto.ConstantCache.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Object;Lorg/jruby/runtime/opto/Invalidator;I)V
putfield org.jruby.ir.instructions.SearchModuleForConstInstr.cache:Lorg/jruby/runtime/opto/ConstantCache;
end local 5 7: StackMap locals: java.lang.Object
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 8 1 runtime Lorg/jruby/Ruby;
0 8 2 module Lorg/jruby/RubyModule;
1 8 3 id Ljava/lang/String;
4 8 4 constant Ljava/lang/Object;
6 7 5 invalidator Lorg/jruby/runtime/opto/Invalidator;
MethodParameters:
Name Flags
runtime
module
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.SearchModuleForConstInstr.getCurrentModule:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.getName:()Lorg/jruby/RubySymbol;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/RubySymbol;)V
3: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.isNoPrivateConsts:()Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
4: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.callConstMissing:()Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 6 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.SearchModuleForConstInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.SearchModuleForConstInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeVariable:()Lorg/jruby/ir/operands/Variable;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeSymbol:()Lorg/jruby/RubySymbol;
1: aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
2: invokespecial org.jruby.ir.instructions.SearchModuleForConstInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;Lorg/jruby/RubySymbol;ZZ)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 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=10, 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.SearchModuleForConstInstr.getCurrentModule:()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 6
instanceof org.jruby.RubyModule
ifne 2
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not a type/class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals: java.lang.Object
StackMap stack:
aload 6
checkcast org.jruby.RubyModule
astore 7
start local 7 3: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.cache:Lorg/jruby/runtime/opto/ConstantCache;
astore 8
start local 8 4: aload 7
aload 8
invokestatic org.jruby.runtime.opto.ConstantCache.isCachedFrom:(Lorg/jruby/RubyModule;Lorg/jruby/runtime/opto/ConstantCache;)Z
ifne 5
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 7
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.cache:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Ljava/lang/Object;
goto 6
StackMap locals: org.jruby.RubyModule org.jruby.runtime.opto.ConstantCache
StackMap stack:
5: aload 8
getfield org.jruby.runtime.opto.ConstantCache.value:Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: java.lang.Object
6: astore 9
start local 9 7: aload 9
ifnonnull 12
8: aload 0
getfield org.jruby.ir.instructions.SearchModuleForConstInstr.callConstMissing:Z
ifeq 11
9: aload 7
aload 1
ldc "const_missing"
aload 0
invokevirtual org.jruby.ir.instructions.SearchModuleForConstInstr.getName:()Lorg/jruby/RubySymbol;
invokevirtual org.jruby.RubyModule.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 9
10: goto 12
11: StackMap locals: java.lang.Object
StackMap stack:
getstatic org.jruby.ir.operands.UndefinedValue.UNDEFINED:Lorg/jruby/ir/operands/UndefinedValue;
astore 9
12: StackMap locals:
StackMap stack:
aload 9
areturn
end local 9 end local 8 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 13 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 13 1 context Lorg/jruby/runtime/ThreadContext;
0 13 2 currScope Lorg/jruby/parser/StaticScope;
0 13 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 13 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 13 5 temp [Ljava/lang/Object;
1 13 6 cmVal Ljava/lang/Object;
3 13 7 module Lorg/jruby/RubyModule;
4 13 8 cache Lorg/jruby/runtime/opto/ConstantCache;
7 13 9 result Ljava/lang/Object;
MethodParameters:
Name Flags
context
currScope
currDynScope
self
temp
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.SearchModuleForConstInstr:(Lorg/jruby/ir/instructions/SearchModuleForConstInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/SearchModuleForConstInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "SearchModuleForConstInstr.java"