public class org.jruby.runtime.load.CompiledScriptLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.load.CompiledScriptLoader
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/CompiledScriptLoader;
public static org.jruby.ir.IRScope loadScriptFromFile(org.jruby.Ruby, java.io.InputStream, java.io.File, java.lang.String, boolean);
descriptor: (Lorg/jruby/Ruby;Ljava/io/InputStream;Ljava/io/File;Ljava/lang/String;Z)Lorg/jruby/ir/IRScope;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
aload 3
iload 4
invokestatic org.jruby.runtime.load.CompiledScriptLoader.getFilenameFromPathAndName:(Ljava/io/File;Ljava/lang/String;Z)Ljava/lang/String;
astore 5
start local 5 1: aload 0
aload 1
invokestatic org.jruby.runtime.load.CompiledScriptLoader.loadCompiledScriptFromClass:(Lorg/jruby/Ruby;Ljava/io/InputStream;)Ljava/lang/Class;
astore 6
start local 6 2: aload 6
ldc "loadIR"
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Lorg/jruby/Ruby;
aastore
dup
iconst_1
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 7
start local 7 3: aload 7
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 5
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.ir.IRScope
astore 9
4: aload 1
invokevirtual java.io.InputStream.close:()V
5: goto 8
StackMap locals: org.jruby.Ruby java.io.InputStream java.io.File java.lang.String int java.lang.String java.lang.Class java.lang.reflect.Method top org.jruby.ir.IRScope
StackMap stack: java.io.IOException
6: astore 10
start local 10 7: aload 0
aload 10
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 10 8: StackMap locals:
StackMap stack:
aload 9
areturn
end local 7 9: StackMap locals: org.jruby.Ruby java.io.InputStream java.io.File java.lang.String int java.lang.String java.lang.Class
StackMap stack: java.lang.Exception
astore 7
start local 7 10: aload 0
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 12
11: aload 7
invokevirtual java.lang.Exception.printStackTrace:()V
12: StackMap locals: java.lang.Exception
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " is not compiled Ruby; use java_import to load normal classes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newLoadError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 end local 6 13: StackMap locals: org.jruby.Ruby java.io.InputStream java.io.File java.lang.String int java.lang.String
StackMap stack: java.io.IOException
astore 6
start local 6 14: aload 0
aload 6
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 6 15: StackMap locals:
StackMap stack: java.lang.LinkageError
astore 6
start local 6 16: aload 0
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 18
17: aload 6
invokevirtual java.lang.LinkageError.printStackTrace:()V
18: StackMap locals: java.lang.LinkageError
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Linkage error loading compiled script; you may need to recompile '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "': "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newLoadError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 6 19: StackMap locals: org.jruby.Ruby java.io.InputStream java.io.File java.lang.String int java.lang.String
StackMap stack: java.lang.Throwable
astore 8
20: aload 1
invokevirtual java.io.InputStream.close:()V
21: goto 24
StackMap locals: org.jruby.Ruby java.io.InputStream java.io.File java.lang.String int java.lang.String top top java.lang.Throwable
StackMap stack: java.io.IOException
22: astore 10
start local 10 23: aload 0
aload 10
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 10 24: StackMap locals:
StackMap stack:
aload 8
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 25 0 runtime Lorg/jruby/Ruby;
0 25 1 inStream Ljava/io/InputStream;
0 25 2 resourcePath Ljava/io/File;
0 25 3 resourceName Ljava/lang/String;
0 25 4 isAbsolute Z
1 25 5 name Ljava/lang/String;
2 13 6 clazz Ljava/lang/Class;
3 9 7 method Ljava/lang/reflect/Method;
10 13 7 e Ljava/lang/Exception;
14 15 6 e Ljava/io/IOException;
16 19 6 le Ljava/lang/LinkageError;
7 8 10 ioe Ljava/io/IOException;
23 24 10 ioe Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.IOException
2 4 9 Class java.lang.Exception
1 4 13 Class java.io.IOException
9 13 13 Class java.io.IOException
1 4 15 Class java.lang.LinkageError
9 13 15 Class java.lang.LinkageError
1 4 19 any
9 19 19 any
20 21 22 Class java.io.IOException
MethodParameters:
Name Flags
runtime
inStream
resourcePath
resourceName
isAbsolute
private static java.lang.Class loadCompiledScriptFromClass(org.jruby.Ruby, java.io.InputStream);
descriptor: (Lorg/jruby/Ruby;Ljava/io/InputStream;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tClassReader cannot be resolved to a type\n\tClassReader cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
runtime
in
public static java.lang.String getFilenameFromPathAndName(java.io.File, java.lang.String, boolean);
descriptor: (Ljava/io/File;Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 1
iload 2
ifne 1
aload 0
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokestatic org.jruby.RubyFile.canonicalize:(Ljava/lang/String;)Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
StackMap locals:
StackMap stack: java.lang.String
2: invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 resourcePath Ljava/io/File;
0 3 1 resourceName Ljava/lang/String;
0 3 2 isAbsolute Z
MethodParameters:
Name Flags
resourcePath
resourceName
isAbsolute
}
SourceFile: "CompiledScriptLoader.java"