public class org.jruby.ir.instructions.SearchConstInstr 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.SearchConstInstr
super_class: org.jruby.ir.instructions.OneOperandResultBaseInstr
{
private final org.jruby.RubySymbol constantName;
descriptor: Lorg/jruby/RubySymbol;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean noPrivateConsts;
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
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/SearchConstInstr;
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.SearchConstInstr.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.ir.operands.Variable, org.jruby.RubySymbol, org.jruby.ir.operands.Operand, boolean);
descriptor: (Lorg/jruby/ir/operands/Variable;Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;Z)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.SEARCH_CONST: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.SearchConstInstr.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
ldc "SearchConstInstr result is null"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: org.jruby.ir.instructions.SearchConstInstr org.jruby.ir.operands.Variable org.jruby.RubySymbol org.jruby.ir.operands.Operand int
StackMap stack:
aload 0
aload 2
putfield org.jruby.ir.instructions.SearchConstInstr.constantName:Lorg/jruby/RubySymbol;
3: aload 0
iload 4
putfield org.jruby.ir.instructions.SearchConstInstr.noPrivateConsts:Z
4: return
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/SearchConstInstr;
0 5 1 result Lorg/jruby/ir/operands/Variable;
0 5 2 constantName Lorg/jruby/RubySymbol;
0 5 3 startingScope Lorg/jruby/ir/operands/Operand;
0 5 4 noPrivateConsts Z
MethodParameters:
Name Flags
result
constantName
startingScope
noPrivateConsts
public org.jruby.ir.operands.Operand getStartingScope();
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.SearchConstInstr.getOperand1:()Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
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.SearchConstInstr.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/SearchConstInstr;
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.SearchConstInstr.constantName:Lorg/jruby/RubySymbol;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
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.SearchConstInstr.noPrivateConsts:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
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.SearchConstInstr
dup
aload 1
aload 0
getfield org.jruby.ir.instructions.SearchConstInstr.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.SearchConstInstr.constantName:Lorg/jruby/RubySymbol;
aload 0
invokevirtual org.jruby.ir.instructions.SearchConstInstr.getStartingScope:()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.SearchConstInstr.noPrivateConsts:Z
invokespecial org.jruby.ir.instructions.SearchConstInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
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.SearchConstInstr.getName:()Lorg/jruby/RubySymbol;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/RubySymbol;)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.SearchConstInstr.getStartingScope:()Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
3: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.SearchConstInstr.isNoPrivateConsts:()Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
0 5 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.SearchConstInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/SearchConstInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.SearchConstInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeVariable:()Lorg/jruby/ir/operands/Variable;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeSymbol:()Lorg/jruby/RubySymbol;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
invokespecial org.jruby.ir.instructions.SearchConstInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/RubySymbol;Lorg/jruby/ir/operands/Operand;Z)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.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
invokevirtual org.jruby.ir.instructions.SearchConstInstr.getName:()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.SearchConstInstr.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/SearchConstInstr;
public org.jruby.runtime.opto.ConstantCache getConstantCache();
descriptor: ()Lorg/jruby/runtime/opto/ConstantCache;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.SearchConstInstr.cache:Lorg/jruby/runtime/opto/ConstantCache;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
public java.lang.Object cache(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=13, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
astore 6
start local 6 1: aload 6
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
astore 7
start local 7 2: aload 0
invokevirtual org.jruby.ir.instructions.SearchConstInstr.getId:()Ljava/lang/String;
astore 8
start local 8 3: aload 0
invokevirtual org.jruby.ir.instructions.SearchConstInstr.getStartingScope:()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.parser.StaticScope
astore 9
start local 9 4: aload 9
ifnonnull 5
aload 7
aload 8
invokevirtual org.jruby.RubyModule.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
goto 6
StackMap locals: org.jruby.ir.instructions.SearchConstInstr org.jruby.runtime.ThreadContext org.jruby.parser.StaticScope org.jruby.runtime.DynamicScope org.jruby.runtime.builtin.IRubyObject java.lang.Object[] org.jruby.Ruby org.jruby.RubyModule java.lang.String org.jruby.parser.StaticScope
StackMap stack:
5: aload 9
aload 8
invokevirtual org.jruby.parser.StaticScope.getConstantInner:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
6: astore 10
start local 10 7: aconst_null
astore 11
start local 11 8: aload 10
ifnonnull 15
9: aload 9
ifnonnull 10
aload 7
goto 11
StackMap locals: java.lang.Object org.jruby.RubyModule
StackMap stack:
10: aload 9
invokevirtual org.jruby.parser.StaticScope.getModule:()Lorg/jruby/RubyModule;
StackMap locals:
StackMap stack: org.jruby.RubyModule
11: astore 11
12: aload 0
getfield org.jruby.ir.instructions.SearchConstInstr.noPrivateConsts:Z
ifeq 13
aload 11
aload 8
iconst_0
invokevirtual org.jruby.RubyModule.getConstantFromNoConstMissing:(Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
goto 14
StackMap locals:
StackMap stack:
13: aload 11
aload 8
invokevirtual org.jruby.RubyModule.getConstantNoConstMissing:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
14: astore 10
15: StackMap locals:
StackMap stack:
aload 10
ifnonnull 18
16: aload 11
aload 1
ldc "const_missing"
aload 6
aload 8
invokevirtual org.jruby.Ruby.fastNewSymbol:(Ljava/lang/String;)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 10
17: goto 20
18: StackMap locals:
StackMap stack:
aload 6
aload 8
invokevirtual org.jruby.Ruby.getConstantInvalidator:(Ljava/lang/String;)Lorg/jruby/runtime/opto/Invalidator;
astore 12
start local 12 19: aload 0
new org.jruby.runtime.opto.ConstantCache
dup
aload 10
checkcast org.jruby.runtime.builtin.IRubyObject
aload 12
invokeinterface org.jruby.runtime.opto.Invalidator.getData:()Ljava/lang/Object;
aload 12
invokespecial org.jruby.runtime.opto.ConstantCache.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Object;Lorg/jruby/runtime/opto/Invalidator;)V
putfield org.jruby.ir.instructions.SearchConstInstr.cache:Lorg/jruby/runtime/opto/ConstantCache;
end local 12 20: StackMap locals:
StackMap stack:
aload 10
areturn
end local 11 end local 10 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 21 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
0 21 1 context Lorg/jruby/runtime/ThreadContext;
0 21 2 currScope Lorg/jruby/parser/StaticScope;
0 21 3 currDynScope Lorg/jruby/runtime/DynamicScope;
0 21 4 self Lorg/jruby/runtime/builtin/IRubyObject;
0 21 5 temp [Ljava/lang/Object;
1 21 6 runtime Lorg/jruby/Ruby;
2 21 7 object Lorg/jruby/RubyModule;
3 21 8 id Ljava/lang/String;
4 21 9 staticScope Lorg/jruby/parser/StaticScope;
7 21 10 constant Ljava/lang/Object;
8 21 11 module Lorg/jruby/RubyModule;
19 20 12 invalidator Lorg/jruby/runtime/opto/Invalidator;
MethodParameters:
Name Flags
context
currScope
currDynScope
self
temp
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=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.jruby.ir.instructions.SearchConstInstr.cache:Lorg/jruby/runtime/opto/ConstantCache;
astore 6
start local 6 1: aload 6
invokestatic org.jruby.runtime.opto.ConstantCache.isCached:(Lorg/jruby/runtime/opto/ConstantCache;)Z
ifne 2
aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.instructions.SearchConstInstr.cache:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
2: StackMap locals: org.jruby.runtime.opto.ConstantCache
StackMap stack:
aload 6
getfield org.jruby.runtime.opto.ConstantCache.value:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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/SearchConstInstr;
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 cache Lorg/jruby/runtime/opto/ConstantCache;
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.SearchConstInstr:(Lorg/jruby/ir/instructions/SearchConstInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/SearchConstInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "SearchConstInstr.java"