public class org.jruby.compiler.JITClassGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.compiler.JITClassGenerator
super_class: java.lang.Object
{
protected final java.lang.String packageName;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String className;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String methodName;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String digestString;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.jruby.ir.targets.JVMVisitor visitor;
descriptor: Lorg/jruby/ir/targets/JVMVisitor;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected byte[] bytecode;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected long compileTime;
descriptor: J
flags: (0x0004) ACC_PROTECTED
public static final java.lang.String CLASS_METHOD_DELIMITER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "$$"
public void <init>(java.lang.String, java.lang.String, java.lang.String, org.jruby.Ruby, org.jruby.ir.targets.JVMVisitor);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/jruby/Ruby;Lorg/jruby/ir/targets/JVMVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.jruby.compiler.JITClassGenerator.methodName:Ljava/lang/String;
2: aload 0
ldc "rubyjit"
putfield org.jruby.compiler.JITClassGenerator.packageName:Ljava/lang/String;
3: aload 0
aload 5
putfield org.jruby.compiler.JITClassGenerator.visitor:Lorg/jruby/ir/targets/JVMVisitor;
4: getstatic org.jruby.util.cli.Options.COMPILE_INVOKEDYNAMIC:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 7
5: aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Math.abs:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.jruby.compiler.JITClassGenerator.digestString:Ljava/lang/String;
6: goto 8
7: StackMap locals: org.jruby.compiler.JITClassGenerator java.lang.String java.lang.String java.lang.String org.jruby.Ruby org.jruby.ir.targets.JVMVisitor
StackMap stack:
aload 0
aload 3
putfield org.jruby.compiler.JITClassGenerator.digestString:Ljava/lang/String;
8: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.compiler.JITClassGenerator.packageName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "$$"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokestatic org.jruby.util.JavaNameMangler.mangleMethodName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.compiler.JITClassGenerator.digestString:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.jruby.compiler.JITClassGenerator.className:Ljava/lang/String;
9: aload 0
aload 0
getfield org.jruby.compiler.JITClassGenerator.className:Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
putfield org.jruby.compiler.JITClassGenerator.name:Ljava/lang/String;
10: 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 11 0 this Lorg/jruby/compiler/JITClassGenerator;
0 11 1 className Ljava/lang/String;
0 11 2 methodName Ljava/lang/String;
0 11 3 key Ljava/lang/String;
0 11 4 ruby Lorg/jruby/Ruby;
0 11 5 visitor Lorg/jruby/ir/targets/JVMVisitor;
MethodParameters:
Name Flags
className
methodName
key
ruby
visitor
void updateCounters(org.jruby.compiler.JITCounts, org.jruby.ir.interpreter.InterpreterContext);
descriptor: (Lorg/jruby/compiler/JITCounts;Lorg/jruby/ir/interpreter/InterpreterContext;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.compiler.JITCounts.compiledCount:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
pop2
1: aload 1
getfield org.jruby.compiler.JITCounts.compileTime:Ljava/util/concurrent/atomic/AtomicLong;
aload 0
getfield org.jruby.compiler.JITClassGenerator.compileTime:J
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
2: aload 1
getfield org.jruby.compiler.JITCounts.codeSize:Ljava/util/concurrent/atomic/AtomicLong;
aload 0
getfield org.jruby.compiler.JITClassGenerator.bytecode:[B
arraylength
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
3: aload 2
invokevirtual org.jruby.ir.interpreter.InterpreterContext.getInstructions:()[Lorg/jruby/ir/instructions/Instr;
arraylength
istore 3
start local 3 4: aload 1
getfield org.jruby.compiler.JITCounts.irSize:Ljava/util/concurrent/atomic/AtomicLong;
iload 3
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
5: aload 1
getfield org.jruby.compiler.JITCounts.compileTimeAverage:Ljava/util/concurrent/atomic/AtomicLong;
aload 1
getfield org.jruby.compiler.JITCounts.compileTime:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
aload 1
getfield org.jruby.compiler.JITCounts.compiledCount:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
ldiv
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
6: aload 1
getfield org.jruby.compiler.JITCounts.codeAverageSize:Ljava/util/concurrent/atomic/AtomicLong;
aload 1
getfield org.jruby.compiler.JITCounts.codeSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
aload 1
getfield org.jruby.compiler.JITCounts.compiledCount:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
ldiv
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
7: aload 1
getfield org.jruby.compiler.JITCounts.irAverageSize:Ljava/util/concurrent/atomic/AtomicLong;
aload 1
getfield org.jruby.compiler.JITCounts.irSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
aload 1
getfield org.jruby.compiler.JITCounts.compiledCount:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
ldiv
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
8: aload 1
dup
astore 4
monitorenter
9: StackMap locals: int org.jruby.compiler.JITCounts
StackMap stack:
aload 1
getfield org.jruby.compiler.JITCounts.codeLargestSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 5
start local 5 10: lload 5
aload 0
getfield org.jruby.compiler.JITClassGenerator.bytecode:[B
arraylength
i2l
lcmp
ifge 11
aload 1
getfield org.jruby.compiler.JITCounts.codeLargestSize:Ljava/util/concurrent/atomic/AtomicLong;
lload 5
aload 0
getfield org.jruby.compiler.JITClassGenerator.bytecode:[B
arraylength
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 9
11: StackMap locals: long
StackMap stack:
aload 1
getfield org.jruby.compiler.JITCounts.irLargestSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 5
12: lload 5
iload 3
i2l
lcmp
ifge 13
aload 1
getfield org.jruby.compiler.JITCounts.irLargestSize:Ljava/util/concurrent/atomic/AtomicLong;
lload 5
iload 3
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 11
end local 5 13: StackMap locals:
StackMap stack:
aload 4
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 4
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jruby/compiler/JITClassGenerator;
0 18 1 counts Lorg/jruby/compiler/JITCounts;
0 18 2 ic Lorg/jruby/ir/interpreter/InterpreterContext;
4 18 3 insnCount I
10 13 5 largest J
Exception table:
from to target type
9 14 15 any
15 16 15 any
MethodParameters:
Name Flags
counts
ic
public byte[] bytecode();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.compiler.JITClassGenerator.bytecode:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/compiler/JITClassGenerator;
public java.lang.String name();
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.compiler.JITClassGenerator.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/compiler/JITClassGenerator;
}
SourceFile: "JITClassGenerator.java"