public class jdk.nashorn.internal.ir.OptimisticLexicalContext extends jdk.nashorn.internal.ir.LexicalContext
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.internal.ir.OptimisticLexicalContext
super_class: jdk.nashorn.internal.ir.LexicalContext
{
private final boolean isEnabled;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Deque<java.util.List<jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption>> optimisticAssumptions;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Ljava/util/List<Ljdk/nashorn/internal/ir/OptimisticLexicalContext$Assumption;>;>;
public void <init>(boolean);
descriptor: (Z)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.LexicalContext.<init>:()V
1: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
2: aload 0
iload 1
putfield jdk.nashorn.internal.ir.OptimisticLexicalContext.isEnabled:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
0 4 1 isEnabled Z
MethodParameters:
Name Flags
isEnabled final
public boolean isEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.isEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
public void logOptimisticAssumption(jdk.nashorn.internal.ir.Symbol, jdk.nashorn.internal.codegen.types.Type);
descriptor: (Ljdk/nashorn/internal/ir/Symbol;Ljdk/nashorn/internal/codegen/types/Type;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.isEnabled:Z
ifeq 3
1: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 2: aload 3
new jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption
dup
aload 0
aload 1
aload 2
invokespecial jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption.<init>:(Ljdk/nashorn/internal/ir/OptimisticLexicalContext;Ljdk/nashorn/internal/ir/Symbol;Ljdk/nashorn/internal/codegen/types/Type;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
0 4 1 symbol Ljdk/nashorn/internal/ir/Symbol;
0 4 2 type Ljdk/nashorn/internal/codegen/types/Type;
2 3 3 peek Ljava/util/List<Ljdk/nashorn/internal/ir/OptimisticLexicalContext$Assumption;>;
MethodParameters:
Name Flags
symbol final
type final
public java.util.List<jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption> getOptimisticAssumptions();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast java.util.List
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
Signature: ()Ljava/util/List<Ljdk/nashorn/internal/ir/OptimisticLexicalContext$Assumption;>;
public boolean hasOptimisticAssumptions();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 1
aload 0
invokevirtual jdk.nashorn.internal.ir.OptimisticLexicalContext.getOptimisticAssumptions:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 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/ir/OptimisticLexicalContext;
public <T extends jdk.nashorn.internal.ir.LexicalContextNode> T push();
descriptor: (Ljdk/nashorn/internal/ir/LexicalContextNode;)Ljdk/nashorn/internal/ir/LexicalContextNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.isEnabled:Z
ifeq 3
1: aload 1
instanceof jdk.nashorn.internal.ir.FunctionNode
ifeq 3
2: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial jdk.nashorn.internal.ir.LexicalContext.push:(Ljdk/nashorn/internal/ir/LexicalContextNode;)Ljdk/nashorn/internal/ir/LexicalContextNode;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
0 4 1 node TT;
Signature: <T::Ljdk/nashorn/internal/ir/LexicalContextNode;>(TT;)TT;
MethodParameters:
Name Flags
node final
public <T extends jdk.nashorn.internal.ir.Node> T pop();
descriptor: (Ljdk/nashorn/internal/ir/Node;)Ljdk/nashorn/internal/ir/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.nashorn.internal.ir.LexicalContext.pop:(Ljdk/nashorn/internal/ir/Node;)Ljdk/nashorn/internal/ir/Node;
astore 2
start local 2 1: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.isEnabled:Z
ifeq 4
2: aload 1
instanceof jdk.nashorn.internal.ir.FunctionNode
ifeq 4
3: aload 0
getfield jdk.nashorn.internal.ir.OptimisticLexicalContext.optimisticAssumptions:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
4: StackMap locals: jdk.nashorn.internal.ir.Node
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/ir/OptimisticLexicalContext;
0 5 1 node TT;
1 5 2 popped TT;
Signature: <T:Ljdk/nashorn/internal/ir/Node;>(TT;)TT;
MethodParameters:
Name Flags
node final
}
SourceFile: "OptimisticLexicalContext.java"
NestMembers:
jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption
InnerClasses:
Assumption = jdk.nashorn.internal.ir.OptimisticLexicalContext$Assumption of jdk.nashorn.internal.ir.OptimisticLexicalContext