public final class jdk.nashorn.internal.codegen.ApplySpecialization extends jdk.nashorn.internal.ir.visitor.SimpleNodeVisitor implements jdk.nashorn.internal.runtime.logging.Loggable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.codegen.ApplySpecialization
super_class: jdk.nashorn.internal.ir.visitor.SimpleNodeVisitor
{
private static final boolean USE_APPLY2CALL;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.nashorn.internal.runtime.logging.DebugLogger log;
descriptor: Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.nashorn.internal.codegen.Compiler compiler;
descriptor: Ljdk/nashorn/internal/codegen/Compiler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.Integer> changed;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Integer;>;
private final java.util.Deque<java.util.List<jdk.nashorn.internal.ir.IdentNode>> explodedArguments;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Ljava/util/List<Ljdk/nashorn/internal/ir/IdentNode;>;>;
private final java.util.Deque<java.lang.invoke.MethodType> callSiteTypes;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Ljava/lang/invoke/MethodType;>;
private static final java.lang.String ARGUMENTS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException HAS_APPLIES;
descriptor: Ljdk/nashorn/internal/codegen/ApplySpecialization$AppliesFoundException;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=2, locals=0, args_size=0
0: ldc Ljdk/nashorn/internal/codegen/ApplySpecialization;
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.ApplySpecialization.$assertionsDisabled:Z
3: ldc "nashorn.apply2call"
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic jdk.nashorn.internal.runtime.options.Options.getBooleanProperty:(Ljava/lang/String;Ljava/lang/Boolean;)Z
putstatic jdk.nashorn.internal.codegen.ApplySpecialization.USE_APPLY2CALL:Z
4: getstatic jdk.nashorn.internal.codegen.CompilerConstants.ARGUMENTS_VAR:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
putstatic jdk.nashorn.internal.codegen.ApplySpecialization.ARGUMENTS:Ljava/lang/String;
5: new jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException
dup
invokespecial jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException.<init>:()V
putstatic jdk.nashorn.internal.codegen.ApplySpecialization.HAS_APPLIES:Ljdk/nashorn/internal/codegen/ApplySpecialization$AppliesFoundException;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.nashorn.internal.codegen.Compiler);
descriptor: (Ljdk/nashorn/internal/codegen/Compiler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jdk.nashorn.internal.ir.visitor.SimpleNodeVisitor.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jdk.nashorn.internal.codegen.ApplySpecialization.changed:Ljava/util/Set;
2: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
3: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield jdk.nashorn.internal.codegen.ApplySpecialization.callSiteTypes:Ljava/util/Deque;
4: aload 0
aload 1
putfield jdk.nashorn.internal.codegen.ApplySpecialization.compiler:Ljdk/nashorn/internal/codegen/Compiler;
5: aload 0
aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getContext:()Ljdk/nashorn/internal/runtime/Context;
invokevirtual jdk.nashorn.internal.codegen.ApplySpecialization.initLogger:(Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
putfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 7 1 compiler Ljdk/nashorn/internal/codegen/Compiler;
MethodParameters:
Name Flags
compiler final
public jdk.nashorn.internal.runtime.logging.DebugLogger getLogger();
descriptor: ()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
public jdk.nashorn.internal.runtime.logging.DebugLogger initLogger(jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual jdk.nashorn.internal.runtime.Context.getLogger:(Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 1 1 context Ljdk/nashorn/internal/runtime/Context;
MethodParameters:
Name Flags
context final
private boolean hasApplies(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new jdk.nashorn.internal.codegen.ApplySpecialization$1
dup
aload 0
aload 1
invokespecial jdk.nashorn.internal.codegen.ApplySpecialization$1.<init>:(Ljdk/nashorn/internal/codegen/ApplySpecialization;Ljdk/nashorn/internal/ir/FunctionNode;)V
invokevirtual jdk.nashorn.internal.ir.FunctionNode.accept:(Ljdk/nashorn/internal/ir/visitor/NodeVisitor;)Ljdk/nashorn/internal/ir/Node;
pop
1: goto 4
StackMap locals:
StackMap stack: jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException
2: pop
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "There are no applies in "
aastore
dup
iconst_1
aload 1
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 " - nothing to do."
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 6 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
Exception table:
from to target type
0 1 2 Class jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException
MethodParameters:
Name Flags
functionNode final
private static void checkValidTransform(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 1: new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
astore 2
start local 2 2: aload 0
new jdk.nashorn.internal.codegen.ApplySpecialization$2
dup
aload 2
aload 1
aload 0
invokespecial jdk.nashorn.internal.codegen.ApplySpecialization$2.<init>:(Ljava/util/Deque;Ljava/util/Set;Ljdk/nashorn/internal/ir/FunctionNode;)V
invokevirtual jdk.nashorn.internal.ir.FunctionNode.accept:(Ljdk/nashorn/internal/ir/visitor/NodeVisitor;)Ljdk/nashorn/internal/ir/Node;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
1 4 1 argumentsFound Ljava/util/Set<Ljdk/nashorn/internal/ir/Expression;>;
2 4 2 stack Ljava/util/Deque<Ljava/util/Set<Ljdk/nashorn/internal/ir/Expression;>;>;
MethodParameters:
Name Flags
functionNode final
public boolean enterCallNode(jdk.nashorn.internal.ir.CallNode);
descriptor: (Ljdk/nashorn/internal/ir/CallNode;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 3 1 callNode Ljdk/nashorn/internal/ir/CallNode;
MethodParameters:
Name Flags
callNode final
public jdk.nashorn.internal.ir.Node leaveCallNode(jdk.nashorn.internal.ir.CallNode);
descriptor: (Ljdk/nashorn/internal/ir/CallNode;)Ljdk/nashorn/internal/ir/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 1: aload 1
invokestatic jdk.nashorn.internal.codegen.ApplySpecialization.isApply:(Ljdk/nashorn/internal/ir/CallNode;)Z
ifeq 21
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 3: aload 1
invokevirtual jdk.nashorn.internal.ir.CallNode.getArgs:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: jdk.nashorn.internal.codegen.ApplySpecialization jdk.nashorn.internal.ir.CallNode java.util.List java.util.List top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Expression
astore 4
start local 4 5: aload 4
instanceof jdk.nashorn.internal.ir.IdentNode
ifeq 8
getstatic jdk.nashorn.internal.codegen.ApplySpecialization.ARGUMENTS:Ljava/lang/String;
aload 4
checkcast jdk.nashorn.internal.ir.IdentNode
invokevirtual jdk.nashorn.internal.ir.IdentNode.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 3
aload 2
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
7: goto 9
8: StackMap locals: jdk.nashorn.internal.codegen.ApplySpecialization jdk.nashorn.internal.ir.CallNode java.util.List java.util.List jdk.nashorn.internal.ir.Expression java.util.Iterator
StackMap stack:
aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 9: StackMap locals: jdk.nashorn.internal.codegen.ApplySpecialization jdk.nashorn.internal.ir.CallNode java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.changed:Ljava/util/Set;
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getCurrentFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: aload 1
aload 3
invokevirtual jdk.nashorn.internal.ir.CallNode.setArgs:(Ljava/util/List;)Ljdk/nashorn/internal/ir/CallNode;
invokevirtual jdk.nashorn.internal.ir.CallNode.setIsApplyToCall:()Ljdk/nashorn/internal/ir/CallNode;
astore 4
start local 4 12: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 20
13: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 6
anewarray java.lang.Object
dup
iconst_0
ldc "Transformed "
aastore
dup
iconst_1
14: aload 1
aastore
dup
iconst_2
15: ldc " from apply to call => "
aastore
dup
iconst_3
16: aload 4
aastore
dup
iconst_4
17: ldc " in "
aastore
dup
iconst_5
18: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getCurrentFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
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
19: invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
20: StackMap locals: jdk.nashorn.internal.codegen.ApplySpecialization jdk.nashorn.internal.ir.CallNode java.util.List java.util.List jdk.nashorn.internal.ir.CallNode
StackMap stack:
aload 4
areturn
end local 4 end local 3 21: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 22 1 callNode Ljdk/nashorn/internal/ir/CallNode;
1 22 2 newParams Ljava/util/List<Ljdk/nashorn/internal/ir/IdentNode;>;
3 21 3 newArgs Ljava/util/List<Ljdk/nashorn/internal/ir/Expression;>;
5 9 4 arg Ljdk/nashorn/internal/ir/Expression;
12 21 4 newCallNode Ljdk/nashorn/internal/ir/CallNode;
MethodParameters:
Name Flags
callNode final
private void pushExplodedArgs(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=9, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.compiler:Ljdk/nashorn/internal/codegen/Compiler;
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getCallSiteType:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljava/lang/invoke/MethodType;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: new jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException
dup
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getCurrentFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
ldc "No callsite type"
invokespecial jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException.<init>:(Ljdk/nashorn/internal/ir/FunctionNode;Ljava/lang/String;)V
athrow
4: StackMap locals: int java.lang.invoke.MethodType
StackMap stack:
getstatic jdk.nashorn.internal.codegen.ApplySpecialization.$assertionsDisabled:Z
ifne 5
aload 3
aload 3
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
iconst_1
isub
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
ldc [Ljava/lang/Object;
if_acmpne 5
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "error vararg callsite passed to apply2call "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()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 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.getTypeMap:()Ljdk/nashorn/internal/codegen/TypeMap;
astore 4
start local 4 6: aload 4
invokevirtual jdk.nashorn.internal.codegen.TypeMap.needsCallee:()Z
ifeq 8
7: iinc 2 1
8: StackMap locals: jdk.nashorn.internal.codegen.TypeMap
StackMap stack:
iinc 2 1
9: getstatic jdk.nashorn.internal.codegen.ApplySpecialization.$assertionsDisabled:Z
ifne 10
aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getNumOfParams:()I
ifeq 10
new java.lang.AssertionError
dup
ldc "apply2call on function with named paramaters!"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 11: aload 3
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
iload 2
isub
i2l
lstore 6
start local 6 12: iconst_0
istore 8
start local 8 13: goto 16
14: StackMap locals: java.util.List long int
StackMap stack:
aload 5
new jdk.nashorn.internal.ir.IdentNode
dup
aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getToken:()J
aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getFinish:()I
new java.lang.StringBuilder
dup
getstatic jdk.nashorn.internal.codegen.CompilerConstants.EXPLODED_ARGUMENT_PREFIX:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.nashorn.internal.ir.IdentNode.<init>:(JILjava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: iinc 8 1
StackMap locals:
StackMap stack:
16: iload 8
i2l
lload 6
lcmp
iflt 14
end local 8 17: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.callSiteTypes:Ljava/util/Deque;
aload 3
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
18: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
aload 5
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
19: 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 20 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 20 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
1 20 2 start I
2 20 3 actualCallSiteType Ljava/lang/invoke/MethodType;
6 20 4 ptm Ljdk/nashorn/internal/codegen/TypeMap;
11 20 5 newParams Ljava/util/List<Ljdk/nashorn/internal/ir/IdentNode;>;
12 20 6 to J
13 17 8 i I
MethodParameters:
Name Flags
functionNode final
public boolean enterFunctionNode(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic jdk.nashorn.internal.codegen.ApplySpecialization.USE_APPLY2CALL:Z
ifeq 5
1: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.isOnDemandCompilation:()Z
ifeq 5
2: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.needsArguments:()Z
ifeq 5
3: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.hasEval:()Z
ifne 5
4: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getNumOfParams:()I
ifeq 6
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
6: StackMap locals:
StackMap stack:
invokestatic jdk.nashorn.internal.objects.Global.isBuiltinFunctionPrototypeApply:()Z
ifne 10
7: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
ldc "Apply transform disabled: apply/call overridden"
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:(Ljava/lang/String;)V
8: getstatic jdk.nashorn.internal.codegen.ApplySpecialization.$assertionsDisabled:Z
ifne 9
invokestatic jdk.nashorn.internal.objects.Global.isBuiltinFunctionPrototypeCall:()Z
ifeq 9
new java.lang.AssertionError
dup
ldc "call and apply should have the same SwitchPoint"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.ApplySpecialization.hasApplies:(Ljdk/nashorn/internal/ir/FunctionNode;)Z
ifne 12
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 22
13: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 8
anewarray java.lang.Object
dup
iconst_0
ldc "Trying to specialize apply to call in '"
aastore
dup
iconst_1
14: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()Ljava/lang/String;
aastore
dup
iconst_2
15: ldc "' params="
aastore
dup
iconst_3
16: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getParameters:()Ljava/util/List;
aastore
dup
iconst_4
17: ldc " id="
aastore
dup
iconst_5
18: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
bipush 6
19: ldc " source="
aastore
dup
bipush 7
20: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getSource:()Ljdk/nashorn/internal/runtime/Source;
invokevirtual jdk.nashorn.internal.runtime.Source.getURL:()Ljava/net/URL;
invokestatic jdk.nashorn.internal.codegen.ApplySpecialization.massageURL:(Ljava/net/URL;)Ljava/lang/String;
aastore
21: invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.info:([Ljava/lang/Object;)V
22: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.codegen.ApplySpecialization.checkValidTransform:(Ljdk/nashorn/internal/ir/FunctionNode;)V
23: aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.ApplySpecialization.pushExplodedArgs:(Ljdk/nashorn/internal/ir/FunctionNode;)V
24: goto 28
StackMap locals:
StackMap stack: jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException
25: astore 2
start local 2 26: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "Failure: "
aastore
dup
iconst_1
aload 2
invokevirtual jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException.getMessage:()Ljava/lang/String;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.info:([Ljava/lang/Object;)V
27: iconst_0
ireturn
end local 2 28: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 29 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
26 28 2 e Ljdk/nashorn/internal/codegen/ApplySpecialization$TransformFailedException;
Exception table:
from to target type
22 24 25 Class jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException
MethodParameters:
Name Flags
functionNode final
public jdk.nashorn.internal.ir.Node leaveFunctionNode(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/internal/ir/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()Ljava/lang/String;
astore 3
start local 3 2: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.changed:Ljava/util/Set;
aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 17
3: aload 2
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
bipush 8
invokevirtual jdk.nashorn.internal.ir.FunctionNode.clearFlag:(Ljdk/nashorn/internal/ir/LexicalContext;I)Ljdk/nashorn/internal/ir/FunctionNode;
4: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
sipush 4096
invokevirtual jdk.nashorn.internal.ir.FunctionNode.setFlag:(Ljdk/nashorn/internal/ir/LexicalContext;I)Ljdk/nashorn/internal/ir/FunctionNode;
5: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast java.util.List
invokevirtual jdk.nashorn.internal.ir.FunctionNode.setParameters:(Ljdk/nashorn/internal/ir/LexicalContext;Ljava/util/List;)Ljdk/nashorn/internal/ir/FunctionNode;
6: astore 2
7: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 17
8: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 8
anewarray java.lang.Object
dup
iconst_0
ldc "Success: "
aastore
dup
iconst_1
9: aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getSource:()Ljdk/nashorn/internal/runtime/Source;
invokevirtual jdk.nashorn.internal.runtime.Source.getURL:()Ljava/net/URL;
invokestatic jdk.nashorn.internal.codegen.ApplySpecialization.massageURL:(Ljava/net/URL;)Ljava/lang/String;
aastore
dup
iconst_2
10: bipush 46
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_3
11: aload 3
aastore
dup
iconst_4
12: ldc "' id="
aastore
dup
iconst_5
13: aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
bipush 6
14: ldc " params="
aastore
dup
bipush 7
15: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.callSiteTypes:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
aastore
16: invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.info:([Ljava/lang/Object;)V
17: StackMap locals: jdk.nashorn.internal.ir.FunctionNode java.lang.String
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.callSiteTypes:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
18: aload 0
getfield jdk.nashorn.internal.codegen.ApplySpecialization.explodedArguments:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
19: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/nashorn/internal/codegen/ApplySpecialization;
0 20 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
1 20 2 newFunctionNode Ljdk/nashorn/internal/ir/FunctionNode;
2 20 3 functionName Ljava/lang/String;
MethodParameters:
Name Flags
functionNode final
private static boolean isApply(jdk.nashorn.internal.ir.CallNode);
descriptor: (Ljdk/nashorn/internal/ir/CallNode;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.ir.CallNode.getFunction:()Ljdk/nashorn/internal/ir/Expression;
astore 1
start local 1 1: aload 1
instanceof jdk.nashorn.internal.ir.AccessNode
ifeq 2
ldc "apply"
aload 1
checkcast jdk.nashorn.internal.ir.AccessNode
invokevirtual jdk.nashorn.internal.ir.AccessNode.getProperty:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
iconst_1
ireturn
StackMap locals: jdk.nashorn.internal.ir.Expression
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 callNode Ljdk/nashorn/internal/ir/CallNode;
1 3 1 f Ljdk/nashorn/internal/ir/Expression;
MethodParameters:
Name Flags
callNode final
private static java.lang.String massageURL(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: ldc "<null>"
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 1
start local 1 3: aload 1
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 4: iload 2
iconst_m1
if_icmpne 6
5: aload 1
areturn
6: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 url Ljava/net/URL;
3 7 1 str Ljava/lang/String;
4 7 2 slash I
MethodParameters:
Name Flags
url final
}
SourceFile: "ApplySpecialization.java"
NestMembers:
jdk.nashorn.internal.codegen.ApplySpecialization$1 jdk.nashorn.internal.codegen.ApplySpecialization$2 jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException
InnerClasses:
jdk.nashorn.internal.codegen.ApplySpecialization$1
jdk.nashorn.internal.codegen.ApplySpecialization$2
private AppliesFoundException = jdk.nashorn.internal.codegen.ApplySpecialization$AppliesFoundException of jdk.nashorn.internal.codegen.ApplySpecialization
private TransformFailedException = jdk.nashorn.internal.codegen.ApplySpecialization$TransformFailedException of jdk.nashorn.internal.codegen.ApplySpecialization
RuntimeVisibleAnnotations:
jdk.nashorn.internal.runtime.logging.Logger(name = "apply2call")