public class org.jruby.compiler.MethodJITClassGenerator extends org.jruby.compiler.JITClassGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.compiler.MethodJITClassGenerator
super_class: org.jruby.compiler.JITClassGenerator
{
private final org.jruby.internal.runtime.AbstractIRMethod method;
descriptor: Lorg/jruby/internal/runtime/AbstractIRMethod;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, java.lang.String, java.lang.String, org.jruby.Ruby, org.jruby.internal.runtime.AbstractIRMethod, org.jruby.ir.targets.JVMVisitor);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/jruby/Ruby;Lorg/jruby/internal/runtime/AbstractIRMethod;Lorg/jruby/ir/targets/JVMVisitor;)V
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 2
aload 3
aload 4
aload 6
invokespecial org.jruby.compiler.JITClassGenerator.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/jruby/Ruby;Lorg/jruby/ir/targets/JVMVisitor;)V
1: aload 0
aload 5
putfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
2: return
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/compiler/MethodJITClassGenerator;
0 3 1 className Ljava/lang/String;
0 3 2 methodName Ljava/lang/String;
0 3 3 key Ljava/lang/String;
0 3 4 ruby Lorg/jruby/Ruby;
0 3 5 method Lorg/jruby/internal/runtime/AbstractIRMethod;
0 3 6 visitor Lorg/jruby/ir/targets/JVMVisitor;
MethodParameters:
Name Flags
className
methodName
key
ruby
method
visitor
protected void compile(org.jruby.ir.targets.JVMVisitorMethodContext);
descriptor: (Lorg/jruby/ir/targets/JVMVisitorMethodContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.bytecode:[B
ifnull 1
return
1: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lstore 2
start local 2 2: aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
invokevirtual org.jruby.internal.runtime.AbstractIRMethod.ensureInstrsReady:()Lorg/jruby/ir/interpreter/InterpreterContext;
astore 4
start local 4 3: aload 4
invokevirtual org.jruby.ir.interpreter.InterpreterContext.getInstructions:()[Lorg/jruby/ir/instructions/Instr;
arraylength
istore 5
start local 5 4: iload 5
getstatic org.jruby.util.cli.Options.JIT_MAXSIZE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
if_icmple 6
5: new org.jruby.compiler.NotCompilableException
dup
new java.lang.StringBuilder
dup
ldc "Could not compile "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "; instruction count "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " exceeds threshold of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.jruby.util.cli.Options.JIT_MAXSIZE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.jruby.compiler.NotCompilableException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: long org.jruby.ir.interpreter.InterpreterContext int
StackMap stack:
aload 0
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.visitor:Lorg/jruby/ir/targets/JVMVisitor;
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
invokevirtual org.jruby.internal.runtime.AbstractIRMethod.getIRScope:()Lorg/jruby/ir/IRScope;
aload 1
invokevirtual org.jruby.ir.targets.JVMVisitor.compileToBytecode:(Lorg/jruby/ir/IRScope;Lorg/jruby/ir/targets/JVMVisitorMethodContext;)[B
putfield org.jruby.compiler.MethodJITClassGenerator.bytecode:[B
7: aload 0
invokestatic java.lang.System.nanoTime:()J
lload 2
lsub
putfield org.jruby.compiler.MethodJITClassGenerator.compileTime:J
8: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/compiler/MethodJITClassGenerator;
0 9 1 context Lorg/jruby/ir/targets/JVMVisitorMethodContext;
2 9 2 start J
3 9 4 ic Lorg/jruby/ir/interpreter/InterpreterContext;
4 9 5 insnCount I
MethodParameters:
Name Flags
context
public void generate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new org.jruby.ir.targets.JVMVisitorMethodContext
dup
invokespecial org.jruby.ir.targets.JVMVisitorMethodContext.<init>:()V
invokevirtual org.jruby.compiler.MethodJITClassGenerator.compile:(Lorg/jruby/ir/targets/JVMVisitorMethodContext;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/compiler/MethodJITClassGenerator;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.methodName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "() at "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
invokevirtual org.jruby.internal.runtime.AbstractIRMethod.getFile:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.compiler.MethodJITClassGenerator.method:Lorg/jruby/internal/runtime/AbstractIRMethod;
invokevirtual org.jruby.internal.runtime.AbstractIRMethod.getLine:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/compiler/MethodJITClassGenerator;
}
SourceFile: "MethodJITClassGenerator.java"