public abstract class com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode extends com.oracle.truffle.js.nodes.function.JSBuiltinNode
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode
super_class: com.oracle.truffle.js.nodes.function.JSBuiltinNode
{
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2048
public void <init>(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.js.nodes.function.JSBuiltin);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial com.oracle.truffle.js.nodes.function.JSBuiltinNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/builtins/GlobalBuiltins$JSGlobalReadFullyNode;
0 2 1 context Lcom/oracle/truffle/js/runtime/JSContext;
0 2 2 builtin Lcom/oracle/truffle/js/nodes/function/JSBuiltin;
MethodParameters:
Name Flags
context
builtin
protected java.lang.String read(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getEnv:()Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokestatic com.oracle.truffle.js.builtins.GlobalBuiltins.getFileFromArgument:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Lcom/oracle/truffle/api/TruffleFile;
astore 2
start local 2 1: aload 2
invokevirtual com.oracle.truffle.api.TruffleFile.newBufferedReader:()Ljava/io/BufferedReader;
invokestatic com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode.readImpl:(Ljava/io/BufferedReader;)Ljava/lang/String;
2: areturn
3: StackMap locals: com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode java.lang.Object com.oracle.truffle.api.TruffleFile
StackMap stack: java.lang.Exception
astore 3
start local 3 4: aload 3
invokestatic com.oracle.truffle.js.runtime.Errors.createErrorFromException:(Ljava/lang/Throwable;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/builtins/GlobalBuiltins$JSGlobalReadFullyNode;
0 5 1 fileParam Ljava/lang/Object;
1 5 2 file Lcom/oracle/truffle/api/TruffleFile;
4 5 3 ex Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization()
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary(transferToInterpreterOnException = false)
MethodParameters:
Name Flags
fileParam
private static java.lang.String readImpl(java.io.BufferedReader);
descriptor: (Ljava/io/BufferedReader;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: sipush 2048
newarray 5
astore 2
start local 2 2: goto 4
start local 3 3: StackMap locals: java.lang.StringBuilder char[] int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
aload 2
arraylength
invokevirtual java.io.BufferedReader.read:([CII)I
dup
istore 3
start local 3 5: ifgt 3
end local 3 6: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 4
8: aload 0
invokevirtual java.io.BufferedReader.close:()V
9: aload 4
athrow
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.BufferedReader.close:()V
11: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 reader Ljava/io/BufferedReader;
1 12 1 sb Ljava/lang/StringBuilder;
2 12 2 arr [C
3 4 3 numChars I
5 6 3 numChars I
Exception table:
from to target type
2 7 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
}
SourceFile: "GlobalBuiltins.java"
NestHost: com.oracle.truffle.js.builtins.GlobalBuiltins
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public abstract JSGlobalReadFullyNode = com.oracle.truffle.js.builtins.GlobalBuiltins$JSGlobalReadFullyNode of com.oracle.truffle.js.builtins.GlobalBuiltins