final class jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase extends jdk.nashorn.internal.codegen.CompilationPhase
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase
super_class: jdk.nashorn.internal.codegen.CompilationPhase
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/nashorn/internal/codegen/CompilationPhase;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.nashorn.internal.codegen.CompilationPhase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/codegen/CompilationPhase$BytecodeGenerationPhase;
jdk.nashorn.internal.ir.FunctionNode transform(jdk.nashorn.internal.codegen.Compiler, jdk.nashorn.internal.codegen.Compiler$CompilationPhases, jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/codegen/Compiler;Ljdk/nashorn/internal/codegen/Compiler$CompilationPhases;Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/internal/ir/FunctionNode;
flags: (0x0000)
Code:
stack=5, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getScriptEnvironment:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 4
start local 4 1: aload 3
astore 5
start local 5 2: aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getCompileUnit:()Ljdk/nashorn/internal/codegen/CompileUnit;
invokevirtual jdk.nashorn.internal.codegen.CompileUnit.setUsed:()V
3: aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_4
anewarray java.lang.Object
dup
iconst_0
ldc "Starting bytecode generation for "
aastore
dup
iconst_1
aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()Ljava/lang/String;
invokestatic jdk.nashorn.internal.runtime.logging.DebugLogger.quote:(Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_2
ldc " - restOf="
aastore
dup
iconst_3
aload 2
invokevirtual jdk.nashorn.internal.codegen.Compiler$CompilationPhases.isRestOfCompilation:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
4: new jdk.nashorn.internal.codegen.CodeGenerator
dup
aload 1
aload 2
invokevirtual jdk.nashorn.internal.codegen.Compiler$CompilationPhases.isRestOfCompilation:()Z
ifeq 5
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getContinuationEntryPoints:()[I
goto 6
StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode
StackMap stack: new 4 new 4 jdk.nashorn.internal.codegen.Compiler
5: aconst_null
StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode
StackMap stack: new 4 new 4 jdk.nashorn.internal.codegen.Compiler int[]
6: invokespecial jdk.nashorn.internal.codegen.CodeGenerator.<init>:(Ljdk/nashorn/internal/codegen/Compiler;[I)V
astore 6
start local 6 7: aload 5
aload 6
invokestatic jdk.nashorn.internal.codegen.CompilationPhase.transformFunction:(Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/visitor/NodeVisitor;)Ljdk/nashorn/internal/ir/FunctionNode;
astore 5
8: aload 6
invokevirtual jdk.nashorn.internal.codegen.CodeGenerator.generateScopeCalls:()V
9: goto 19
StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.codegen.CodeGenerator
StackMap stack: java.lang.VerifyError
10: astore 7
start local 7 11: aload 4
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._verify_code:Z
ifne 12
aload 4
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._print_code:Z
ifeq 16
12: StackMap locals: java.lang.VerifyError
StackMap stack:
aload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
aload 7
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.VerifyError.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
13: aload 4
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 19
14: aload 7
aload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
invokevirtual java.lang.VerifyError.printStackTrace:(Ljava/io/PrintWriter;)V
15: goto 19
16: StackMap locals:
StackMap stack:
aload 7
athrow
end local 7 17: StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.codegen.CodeGenerator
StackMap stack: java.lang.Throwable
astore 7
start local 7 18: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Failed generating bytecode for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getSourceName:()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 6
invokevirtual jdk.nashorn.internal.codegen.CodeGenerator.getLastLineNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 19: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getCompileUnits:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 34
StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.codegen.CodeGenerator top java.util.Iterator
StackMap stack:
20: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.codegen.CompileUnit
astore 7
start local 7 21: aload 7
invokevirtual jdk.nashorn.internal.codegen.CompileUnit.getClassEmitter:()Ljdk/nashorn/internal/codegen/ClassEmitter;
astore 9
start local 9 22: aload 9
invokevirtual jdk.nashorn.internal.codegen.ClassEmitter.end:()V
23: aload 7
invokevirtual jdk.nashorn.internal.codegen.CompileUnit.isUsed:()Z
ifne 26
24: aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "Skipping unused compile unit "
aastore
dup
iconst_1
aload 7
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
25: goto 34
26: StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.codegen.CodeGenerator jdk.nashorn.internal.codegen.CompileUnit java.util.Iterator jdk.nashorn.internal.codegen.ClassEmitter
StackMap stack:
aload 9
invokevirtual jdk.nashorn.internal.codegen.ClassEmitter.toByteArray:()[B
astore 10
start local 10 27: getstatic jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase.$assertionsDisabled:Z
ifne 28
aload 10
ifnonnull 28
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
28: StackMap locals: byte[]
StackMap stack:
aload 7
invokevirtual jdk.nashorn.internal.codegen.CompileUnit.getUnitClassName:()Ljava/lang/String;
astore 11
start local 11 29: aload 1
aload 11
aload 10
invokevirtual jdk.nashorn.internal.codegen.Compiler.addClass:(Ljava/lang/String;[B)V
30: invokestatic jdk.nashorn.internal.codegen.CompileUnit.increaseEmitCount:()V
31: aload 4
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._verify_code:Z
ifeq 33
32: aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getCodeInstaller:()Ljdk/nashorn/internal/runtime/CodeInstaller;
aload 10
invokeinterface jdk.nashorn.internal.runtime.CodeInstaller.verify:([B)V
33: StackMap locals: java.lang.String
StackMap stack:
aload 4
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
aload 10
aload 11
invokestatic jdk.nashorn.internal.codegen.DumpBytecode.dumpBytecode:(Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljdk/nashorn/internal/runtime/logging/DebugLogger;[BLjava/lang/String;)V
end local 11 end local 10 end local 9 end local 7 34: StackMap locals: jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase jdk.nashorn.internal.codegen.Compiler jdk.nashorn.internal.codegen.Compiler$CompilationPhases jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.codegen.CodeGenerator top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
35: aload 5
areturn
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 36 0 this Ljdk/nashorn/internal/codegen/CompilationPhase$BytecodeGenerationPhase;
0 36 1 compiler Ljdk/nashorn/internal/codegen/Compiler;
0 36 2 phases Ljdk/nashorn/internal/codegen/Compiler$CompilationPhases;
0 36 3 fn Ljdk/nashorn/internal/ir/FunctionNode;
1 36 4 senv Ljdk/nashorn/internal/runtime/ScriptEnvironment;
2 36 5 newFunctionNode Ljdk/nashorn/internal/ir/FunctionNode;
7 36 6 codegen Ljdk/nashorn/internal/codegen/CodeGenerator;
11 17 7 e Ljava/lang/VerifyError;
18 19 7 e Ljava/lang/Throwable;
21 34 7 compileUnit Ljdk/nashorn/internal/codegen/CompileUnit;
22 34 9 classEmitter Ljdk/nashorn/internal/codegen/ClassEmitter;
27 34 10 bytecode [B
29 34 11 className Ljava/lang/String;
Exception table:
from to target type
7 9 10 Class java.lang.VerifyError
7 9 17 Class java.lang.Throwable
MethodParameters:
Name Flags
compiler final
phases final
fn final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "'Bytecode Generation'"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/codegen/CompilationPhase$BytecodeGenerationPhase;
}
SourceFile: "CompilationPhase.java"
NestHost: jdk.nashorn.internal.codegen.CompilationPhase
InnerClasses:
private final BytecodeGenerationPhase = jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase of jdk.nashorn.internal.codegen.CompilationPhase
public CompilationPhases = jdk.nashorn.internal.codegen.Compiler$CompilationPhases of jdk.nashorn.internal.codegen.Compiler