final class jdk.nashorn.internal.runtime.AstSerializer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.AstSerializer
super_class: java.lang.Object
{
private static final int COMPRESSION_LEVEL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "nashorn.serialize.compression"
iconst_4
invokestatic jdk.nashorn.internal.runtime.options.Options.getIntProperty:(Ljava/lang/String;I)I
putstatic jdk.nashorn.internal.runtime.AstSerializer.COMPRESSION_LEVEL:I
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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 Ljdk/nashorn/internal/runtime/AstSerializer;
static byte[] serialize(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: new java.util.zip.Deflater
dup
getstatic jdk.nashorn.internal.runtime.AstSerializer.COMPRESSION_LEVEL:I
invokespecial java.util.zip.Deflater.<init>:(I)V
astore 2
start local 2 2: aconst_null
astore 3
aconst_null
astore 4
3: new java.io.ObjectOutputStream
dup
new java.util.zip.DeflaterOutputStream
dup
aload 1
aload 2
invokespecial java.util.zip.DeflaterOutputStream.<init>:(Ljava/io/OutputStream;Ljava/util/zip/Deflater;)V
invokespecial java.io.ObjectOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 5
start local 5 4: aload 5
aload 0
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
5: aload 5
ifnull 16
aload 5
invokevirtual java.io.ObjectOutputStream.close:()V
goto 16
StackMap locals: jdk.nashorn.internal.ir.FunctionNode java.io.ByteArrayOutputStream java.util.zip.Deflater java.lang.Throwable java.lang.Throwable java.io.ObjectOutputStream
StackMap stack: java.lang.Throwable
6: astore 3
aload 5
ifnull 7
aload 5
invokevirtual java.io.ObjectOutputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
7: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
aload 3
ifnonnull 9
aload 4
astore 3
goto 10
StackMap locals:
StackMap stack:
9: aload 3
aload 4
if_acmpeq 10
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 3
athrow
StackMap locals: jdk.nashorn.internal.ir.FunctionNode java.io.ByteArrayOutputStream java.util.zip.Deflater
StackMap stack: java.io.IOException
11: astore 3
start local 3 12: new java.lang.AssertionError
dup
ldc "Unexpected exception serializing function"
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
14: aload 2
invokevirtual java.util.zip.Deflater.end:()V
15: aload 6
athrow
16: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.zip.Deflater.end:()V
17: aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 fn Ljdk/nashorn/internal/ir/FunctionNode;
1 18 1 out Ljava/io/ByteArrayOutputStream;
2 18 2 deflater Ljava/util/zip/Deflater;
4 7 5 oout Ljava/io/ObjectOutputStream;
12 13 3 e Ljava/io/IOException;
Exception table:
from to target type
4 5 6 any
3 8 8 any
2 11 11 Class java.io.IOException
2 13 13 any
MethodParameters:
Name Flags
fn final
}
SourceFile: "AstSerializer.java"