final class jdk.nashorn.internal.codegen.FindScopeDepths extends jdk.nashorn.internal.ir.visitor.SimpleNodeVisitor implements jdk.nashorn.internal.runtime.logging.Loggable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.codegen.FindScopeDepths
super_class: jdk.nashorn.internal.ir.visitor.SimpleNodeVisitor
{
private final jdk.nashorn.internal.codegen.Compiler compiler;
descriptor: Ljdk/nashorn/internal/codegen/Compiler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.Integer, java.util.Map<java.lang.Integer, jdk.nashorn.internal.runtime.RecompilableScriptFunctionData>> fnIdToNestedFunctions;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Map<Ljava/lang/Integer;Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;>;>;
private final java.util.Map<java.lang.Integer, java.util.Map<java.lang.String, java.lang.Integer>> externalSymbolDepths;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;>;
private final java.util.Map<java.lang.Integer, java.util.Set<java.lang.String>> internalSymbols;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Set<Ljava/lang/String;>;>;
private final java.util.Set<jdk.nashorn.internal.ir.Block> withBodies;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljdk/nashorn/internal/ir/Block;>;
private final jdk.nashorn.internal.runtime.logging.DebugLogger log;
descriptor: Ljdk/nashorn/internal/runtime/logging/DebugLogger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int dynamicScopeCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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/FindScopeDepths;
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.FindScopeDepths.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.nashorn.internal.codegen.Compiler);
descriptor: (Ljdk/nashorn/internal/codegen/Compiler;)V
flags: (0x0000)
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.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.nashorn.internal.codegen.FindScopeDepths.fnIdToNestedFunctions:Ljava/util/Map;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.nashorn.internal.codegen.FindScopeDepths.externalSymbolDepths:Ljava/util/Map;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.nashorn.internal.codegen.FindScopeDepths.internalSymbols:Ljava/util/Map;
4: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jdk.nashorn.internal.codegen.FindScopeDepths.withBodies:Ljava/util/Set;
5: aload 0
aload 1
putfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
6: aload 0
aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.Compiler.getContext:()Ljdk/nashorn/internal/runtime/Context;
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.initLogger:(Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
putfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 8 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.FindScopeDepths.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/FindScopeDepths;
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/FindScopeDepths;
0 1 1 context Ljdk/nashorn/internal/runtime/Context;
MethodParameters:
Name Flags
context final
static int findScopesToStart(jdk.nashorn.internal.ir.LexicalContext, jdk.nashorn.internal.ir.FunctionNode, jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.findBodyBlock:(Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
astore 3
start local 3 1: aload 0
aload 2
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getBlocks:(Ljdk/nashorn/internal/ir/Block;)Ljava/util/Iterator;
astore 4
start local 4 2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 5
start local 5 3: iconst_0
istore 6
start local 6 4: StackMap locals: jdk.nashorn.internal.ir.LexicalContext jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block java.util.Iterator jdk.nashorn.internal.ir.Block int
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.ir.Block.needsScope:()Z
ifeq 6
5: iinc 6 1
6: StackMap locals:
StackMap stack:
aload 5
aload 3
if_acmpne 8
7: goto 10
8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 5
9: goto 4
10: StackMap locals:
StackMap stack:
iload 6
ireturn
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 11 0 lc Ljdk/nashorn/internal/ir/LexicalContext;
0 11 1 fn Ljdk/nashorn/internal/ir/FunctionNode;
0 11 2 block Ljdk/nashorn/internal/ir/Block;
1 11 3 bodyBlock Ljdk/nashorn/internal/ir/Block;
2 11 4 iter Ljava/util/Iterator<Ljdk/nashorn/internal/ir/Block;>;
3 11 5 b Ljdk/nashorn/internal/ir/Block;
4 11 6 scopesToStart I
MethodParameters:
Name Flags
lc final
fn final
block final
static int findInternalDepth(jdk.nashorn.internal.ir.LexicalContext, jdk.nashorn.internal.ir.FunctionNode, jdk.nashorn.internal.ir.Block, jdk.nashorn.internal.ir.Symbol);
descriptor: (Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;Ljdk/nashorn/internal/ir/Symbol;)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.findBodyBlock:(Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
astore 4
start local 4 1: aload 0
aload 2
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getBlocks:(Ljdk/nashorn/internal/ir/Block;)Ljava/util/Iterator;
astore 5
start local 5 2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 6
start local 6 3: iconst_0
istore 7
start local 7 4: StackMap locals: jdk.nashorn.internal.ir.LexicalContext jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Symbol jdk.nashorn.internal.ir.Block java.util.Iterator jdk.nashorn.internal.ir.Block int
StackMap stack:
aload 6
aload 3
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.definedInBlock:(Ljdk/nashorn/internal/ir/Block;Ljdk/nashorn/internal/ir/Symbol;)Z
ifeq 6
5: iload 7
ireturn
6: StackMap locals:
StackMap stack:
aload 6
invokevirtual jdk.nashorn.internal.ir.Block.needsScope:()Z
ifeq 8
7: iinc 7 1
8: StackMap locals:
StackMap stack:
aload 6
aload 4
if_acmpne 10
9: goto 12
10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 6
11: goto 4
12: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 7 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 13 0 lc Ljdk/nashorn/internal/ir/LexicalContext;
0 13 1 fn Ljdk/nashorn/internal/ir/FunctionNode;
0 13 2 block Ljdk/nashorn/internal/ir/Block;
0 13 3 symbol Ljdk/nashorn/internal/ir/Symbol;
1 13 4 bodyBlock Ljdk/nashorn/internal/ir/Block;
2 13 5 iter Ljava/util/Iterator<Ljdk/nashorn/internal/ir/Block;>;
3 13 6 b Ljdk/nashorn/internal/ir/Block;
4 13 7 scopesToStart I
MethodParameters:
Name Flags
lc final
fn final
block final
symbol final
private static boolean definedInBlock(jdk.nashorn.internal.ir.Block, jdk.nashorn.internal.ir.Symbol);
descriptor: (Ljdk/nashorn/internal/ir/Block;Ljdk/nashorn/internal/ir/Symbol;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.nashorn.internal.ir.Symbol.isGlobal:()Z
ifeq 2
1: aload 0
invokevirtual jdk.nashorn.internal.ir.Block.isGlobalScope:()Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.internal.ir.Symbol.getName:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.ir.Block.getExistingSymbol:(Ljava/lang/String;)Ljdk/nashorn/internal/ir/Symbol;
aload 1
if_acmpne 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 block Ljdk/nashorn/internal/ir/Block;
0 4 1 symbol Ljdk/nashorn/internal/ir/Symbol;
MethodParameters:
Name Flags
block final
symbol final
static jdk.nashorn.internal.ir.Block findBodyBlock(jdk.nashorn.internal.ir.LexicalContext, jdk.nashorn.internal.ir.FunctionNode, jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getBlocks:(Ljdk/nashorn/internal/ir/Block;)Ljava/util/Iterator;
astore 3
start local 3 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 4
start local 4 3: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getBody:()Ljdk/nashorn/internal/ir/Block;
aload 4
if_acmpne 5
4: aload 4
areturn
end local 4 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 lc Ljdk/nashorn/internal/ir/LexicalContext;
0 7 1 fn Ljdk/nashorn/internal/ir/FunctionNode;
0 7 2 block Ljdk/nashorn/internal/ir/Block;
1 7 3 iter Ljava/util/Iterator<Ljdk/nashorn/internal/ir/Block;>;
3 5 4 next Ljdk/nashorn/internal/ir/Block;
MethodParameters:
Name Flags
lc final
fn final
block final
private static jdk.nashorn.internal.ir.Block findGlobalBlock(jdk.nashorn.internal.ir.LexicalContext, jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getBlocks:(Ljdk/nashorn/internal/ir/Block;)Ljava/util/Iterator;
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: goto 4
3: StackMap locals: java.util.Iterator jdk.nashorn.internal.ir.Block
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 3
4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 lc Ljdk/nashorn/internal/ir/LexicalContext;
0 6 1 block Ljdk/nashorn/internal/ir/Block;
1 6 2 iter Ljava/util/Iterator<Ljdk/nashorn/internal/ir/Block;>;
2 6 3 globalBlock Ljdk/nashorn/internal/ir/Block;
MethodParameters:
Name Flags
lc final
block final
private static boolean isDynamicScopeBoundary(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.ir.FunctionNode.needsDynamicScope:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fn Ljdk/nashorn/internal/ir/FunctionNode;
MethodParameters:
Name Flags
fn final
private boolean isDynamicScopeBoundary(jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/Block;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.withBodies:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 1 1 block Ljdk/nashorn/internal/ir/Block;
MethodParameters:
Name Flags
block final
public boolean enterFunctionNode(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.isOnDemandCompilation:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.isDynamicScopeBoundary:(Ljdk/nashorn/internal/ir/FunctionNode;)Z
ifeq 4
3: aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.increaseDynamicScopeCount:(Ljdk/nashorn/internal/ir/Node;)V
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
istore 2
start local 2 5: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.fnIdToNestedFunctions:Ljava/util/Map;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 6: aload 3
ifnonnull 9
7: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
8: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.fnIdToNestedFunctions:Ljava/util/Map;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: StackMap locals: int java.util.Map
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 10 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
5 10 2 fnId I
6 10 3 nestedFunctions Ljava/util/Map<Ljava/lang/Integer;Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;>;
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=9, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()Ljava/lang/String;
astore 2
start local 2 1: aload 1
astore 3
start local 3 2: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.isOnDemandCompilation:()Z
ifeq 10
3: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokevirtual jdk.nashorn.internal.codegen.Compiler.getScriptFunctionData:(I)Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;
astore 4
start local 4 4: aload 4
invokevirtual jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.inDynamicContext:()Z
ifeq 7
5: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "Reviving scriptfunction "
aastore
dup
iconst_1
aload 2
invokestatic jdk.nashorn.internal.runtime.logging.DebugLogger.quote:(Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_2
ldc " as defined in previous (now lost) dynamic scope."
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
6: aload 3
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.FunctionNode.setInDynamicContext:(Ljdk/nashorn/internal/ir/LexicalContext;)Ljdk/nashorn/internal/ir/FunctionNode;
astore 3
7: StackMap locals: java.lang.String jdk.nashorn.internal.ir.FunctionNode jdk.nashorn.internal.runtime.RecompilableScriptFunctionData
StackMap stack:
aload 3
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getOutermostFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
if_acmpne 9
aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.hasApplyToCallSpecialization:()Z
ifne 9
8: aload 4
aload 3
invokevirtual jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.setCachedAst:(Ljdk/nashorn/internal/ir/FunctionNode;)V
9: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 10: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.inDynamicScope:()Z
ifeq 13
11: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "Tagging "
aastore
dup
iconst_1
aload 2
invokestatic jdk.nashorn.internal.runtime.logging.DebugLogger.quote:(Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_2
ldc " as defined in dynamic scope"
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.fine:([Ljava/lang/Object;)V
12: aload 3
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.FunctionNode.setInDynamicContext:(Ljdk/nashorn/internal/ir/LexicalContext;)Ljdk/nashorn/internal/ir/FunctionNode;
astore 3
13: StackMap locals:
StackMap stack:
aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
istore 4
start local 4 14: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.fnIdToNestedFunctions:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 5
start local 5 15: getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 16
aload 5
ifnonnull 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals: int java.util.Map
StackMap stack:
new jdk.nashorn.internal.runtime.RecompilableScriptFunctionData
dup
17: aload 3
18: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.getCodeInstaller:()Ljdk/nashorn/internal/runtime/CodeInstaller;
19: aload 3
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getThisProperties:()I
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.getContext:()Ljdk/nashorn/internal/runtime/Context;
invokevirtual jdk.nashorn.internal.runtime.Context.useDualFields:()Z
invokestatic jdk.nashorn.internal.codegen.ObjectClassGenerator.createAllocationStrategy:(IZ)Ljdk/nashorn/internal/runtime/AllocationStrategy;
20: aload 5
21: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.externalSymbolDepths:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
22: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.internalSymbols:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
23: invokespecial jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.<init>:(Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/runtime/CodeInstaller;Ljdk/nashorn/internal/runtime/AllocationStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)V
astore 6
start local 6 24: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getOutermostFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
aload 3
if_acmpeq 29
25: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 3
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getParentFunction:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/internal/ir/FunctionNode;
astore 7
start local 7 26: aload 7
ifnull 30
27: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.fnIdToNestedFunctions:Ljava/util/Map;
aload 7
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 28: goto 30
29: StackMap locals: jdk.nashorn.internal.runtime.RecompilableScriptFunctionData
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
aload 6
invokevirtual jdk.nashorn.internal.codegen.Compiler.setData:(Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;)V
30: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.isDynamicScopeBoundary:(Ljdk/nashorn/internal/ir/FunctionNode;)Z
ifeq 32
31: aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.decreaseDynamicScopeCount:(Ljdk/nashorn/internal/ir/Node;)V
32: StackMap locals:
StackMap stack:
aload 3
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 33 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 33 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
1 33 2 name Ljava/lang/String;
2 33 3 newFunctionNode Ljdk/nashorn/internal/ir/FunctionNode;
4 10 4 data Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;
14 33 4 fnId I
15 33 5 nestedFunctions Ljava/util/Map<Ljava/lang/Integer;Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;>;
24 33 6 data Ljdk/nashorn/internal/runtime/RecompilableScriptFunctionData;
26 28 7 parentFn Ljdk/nashorn/internal/ir/FunctionNode;
MethodParameters:
Name Flags
functionNode final
private boolean inDynamicScope();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
private void increaseDynamicScopeCount(jdk.nashorn.internal.ir.Node);
descriptor: (Ljdk/nashorn/internal/ir/Node;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
ifge 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
iconst_1
iadd
putfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
2: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 4
3: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 6
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.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
dup
iconst_1
ldc " ++dynamicScopeCount = "
aastore
dup
iconst_2
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
ldc " at: "
aastore
dup
iconst_4
aload 1
aastore
dup
iconst_5
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.finest:([Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 5 1 node Ljdk/nashorn/internal/ir/Node;
MethodParameters:
Name Flags
node final
private void decreaseDynamicScopeCount(jdk.nashorn.internal.ir.Node);
descriptor: (Ljdk/nashorn/internal/ir/Node;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
iconst_1
isub
putfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
1: getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
ifge 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 4
3: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 6
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.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
dup
iconst_1
ldc " --dynamicScopeCount = "
aastore
dup
iconst_2
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.dynamicScopeCount:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
ldc " at: "
aastore
dup
iconst_4
aload 1
aastore
dup
iconst_5
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.finest:([Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 5 1 node Ljdk/nashorn/internal/ir/Node;
MethodParameters:
Name Flags
node final
public boolean enterWithNode(jdk.nashorn.internal.ir.WithNode);
descriptor: (Ljdk/nashorn/internal/ir/WithNode;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.withBodies:Ljava/util/Set;
aload 1
invokevirtual jdk.nashorn.internal.ir.WithNode.getBody:()Ljdk/nashorn/internal/ir/Block;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 2 1 node Ljdk/nashorn/internal/ir/WithNode;
MethodParameters:
Name Flags
node final
public boolean enterBlock(jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/Block;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.isOnDemandCompilation:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.isDynamicScopeBoundary:(Ljdk/nashorn/internal/ir/Block;)Z
ifeq 4
3: aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.increaseDynamicScopeCount:(Ljdk/nashorn/internal/ir/Node;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.isFunctionBody:()Z
ifne 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getCurrentFunction:()Ljdk/nashorn/internal/ir/FunctionNode;
astore 2
start local 2 7: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 8: aload 1
new jdk.nashorn.internal.codegen.FindScopeDepths$1
dup
aload 0
aload 3
invokespecial jdk.nashorn.internal.codegen.FindScopeDepths$1.<init>:(Ljdk/nashorn/internal/codegen/FindScopeDepths;Ljava/util/Set;)V
invokevirtual jdk.nashorn.internal.ir.Block.accept:(Ljdk/nashorn/internal/ir/visitor/NodeVisitor;)Ljdk/nashorn/internal/ir/Node;
pop
9: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 10: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 1
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.findGlobalBlock:(Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
astore 5
start local 5 11: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 2
aload 1
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.findBodyBlock:(Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Block;
astore 6
start local 6 12: getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 13
aload 5
ifnonnull 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block
StackMap stack:
getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 14
aload 6
ifnonnull 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 33
StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block top java.util.Iterator
StackMap stack:
15: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Symbol
astore 7
start local 7 16: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 2
aload 1
aload 7
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.findInternalDepth:(Ljdk/nashorn/internal/ir/LexicalContext;Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Block;Ljdk/nashorn/internal/ir/Symbol;)I
istore 10
start local 10 17: iload 10
iflt 18
iconst_1
goto 19
StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Symbol java.util.Iterator top int
StackMap stack:
18: iconst_0
StackMap locals:
StackMap stack: int
19: istore 11
start local 11 20: iload 11
ifeq 22
21: aload 4
aload 7
invokevirtual jdk.nashorn.internal.ir.Symbol.getName:()Ljava/lang/String;
iload 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
22: StackMap locals: int
StackMap stack:
iload 11
ifne 33
23: iconst_0
istore 12
start local 12 24: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.lc:Ljdk/nashorn/internal/ir/LexicalContext;
aload 6
invokevirtual jdk.nashorn.internal.ir.LexicalContext.getAncestorBlocks:(Ljdk/nashorn/internal/ir/Block;)Ljava/util/Iterator;
astore 9
start local 9 25: goto 32
26: StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Symbol java.util.Iterator java.util.Iterator int int int
StackMap stack:
aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.ir.Block
astore 13
start local 13 27: aload 13
aload 7
invokestatic jdk.nashorn.internal.codegen.FindScopeDepths.definedInBlock:(Ljdk/nashorn/internal/ir/Block;Ljdk/nashorn/internal/ir/Symbol;)Z
ifeq 30
28: aload 0
aload 2
aload 7
iload 12
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.addExternalSymbol:(Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Symbol;I)V
29: goto 33
30: StackMap locals: jdk.nashorn.internal.ir.Block
StackMap stack:
aload 13
invokevirtual jdk.nashorn.internal.ir.Block.needsScope:()Z
ifeq 32
31: iinc 12 1
end local 13 32: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
end local 12 end local 11 end local 10 end local 9 end local 7 33: StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
34: aload 0
aload 2
aload 4
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.addInternalSymbols:(Ljdk/nashorn/internal/ir/FunctionNode;Ljava/util/Set;)V
35: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.isEnabled:()Z
ifeq 37
36: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.log:Ljdk/nashorn/internal/runtime/logging/DebugLogger;
new java.lang.StringBuilder
dup
aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " internals="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " externals="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.externalSymbolDepths:Ljava/util/Map;
aload 2
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.info:(Ljava/lang/String;)V
37: StackMap locals: jdk.nashorn.internal.codegen.FindScopeDepths jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.FunctionNode java.util.Set java.util.Map jdk.nashorn.internal.ir.Block jdk.nashorn.internal.ir.Block
StackMap stack:
iconst_1
ireturn
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 38 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 38 1 block Ljdk/nashorn/internal/ir/Block;
7 38 2 fn Ljdk/nashorn/internal/ir/FunctionNode;
8 38 3 symbols Ljava/util/Set<Ljdk/nashorn/internal/ir/Symbol;>;
10 38 4 internals Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
11 38 5 globalBlock Ljdk/nashorn/internal/ir/Block;
12 38 6 bodyBlock Ljdk/nashorn/internal/ir/Block;
16 33 7 symbol Ljdk/nashorn/internal/ir/Symbol;
25 33 9 iter Ljava/util/Iterator<Ljdk/nashorn/internal/ir/Block;>;
17 33 10 internalDepth I
20 33 11 internal Z
24 33 12 depthAtStart I
27 32 13 b2 Ljdk/nashorn/internal/ir/Block;
MethodParameters:
Name Flags
block final
public jdk.nashorn.internal.ir.Node leaveBlock(jdk.nashorn.internal.ir.Block);
descriptor: (Ljdk/nashorn/internal/ir/Block;)Ljdk/nashorn/internal/ir/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.compiler:Ljdk/nashorn/internal/codegen/Compiler;
invokevirtual jdk.nashorn.internal.codegen.Compiler.isOnDemandCompilation:()Z
ifeq 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.isDynamicScopeBoundary:(Ljdk/nashorn/internal/ir/Block;)Z
ifeq 4
3: aload 0
aload 1
invokevirtual jdk.nashorn.internal.codegen.FindScopeDepths.decreaseDynamicScopeCount:(Ljdk/nashorn/internal/ir/Node;)V
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 5 1 block Ljdk/nashorn/internal/ir/Block;
MethodParameters:
Name Flags
block final
private void addInternalSymbols(jdk.nashorn.internal.ir.FunctionNode, java.util.Set<java.lang.String>);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
istore 3
start local 3 1: getstatic jdk.nashorn.internal.codegen.FindScopeDepths.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.internalSymbols:Ljava/util/Map;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 2
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.internalSymbols:Ljava/util/Map;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
aload 2
invokeinterface java.util.Set.equals:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.internalSymbols:Ljava/util/Map;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 4 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
0 4 2 symbols Ljava/util/Set<Ljava/lang/String;>;
1 4 3 fnId I
Signature: (Ljdk/nashorn/internal/ir/FunctionNode;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
functionNode final
symbols final
private void addExternalSymbol(jdk.nashorn.internal.ir.FunctionNode, jdk.nashorn.internal.ir.Symbol, int);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/ir/Symbol;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getId:()I
istore 4
start local 4 1: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.externalSymbolDepths:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 5
start local 5 2: aload 5
ifnonnull 5
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 5
4: aload 0
getfield jdk.nashorn.internal.codegen.FindScopeDepths.externalSymbolDepths:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: int java.util.Map
StackMap stack:
aload 5
aload 2
invokevirtual jdk.nashorn.internal.ir.Symbol.getName:()Ljava/lang/String;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
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 7 0 this Ljdk/nashorn/internal/codegen/FindScopeDepths;
0 7 1 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
0 7 2 symbol Ljdk/nashorn/internal/ir/Symbol;
0 7 3 depthAtStart I
1 7 4 fnId I
2 7 5 depths Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
MethodParameters:
Name Flags
functionNode final
symbol final
depthAtStart final
}
SourceFile: "FindScopeDepths.java"
NestMembers:
jdk.nashorn.internal.codegen.FindScopeDepths$1
InnerClasses:
jdk.nashorn.internal.codegen.FindScopeDepths$1
RuntimeVisibleAnnotations:
jdk.nashorn.internal.runtime.logging.Logger(name = "scopedepths")