final class com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode extends com.oracle.truffle.api.instrumentation.ExecutionEventNode
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode
super_class: com.oracle.truffle.api.instrumentation.ExecutionEventNode
{
final com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits limits;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.api.instrumentation.EventContext eventContext;
descriptor: Lcom/oracle/truffle/api/instrumentation/EventContext;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.polyglot.PolyglotEngineImpl engine;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.api.frame.FrameSlot readContext;
descriptor: Lcom/oracle/truffle/api/frame/FrameSlot;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.api.profiles.ConditionProfile needsLookup;
descriptor: Lcom/oracle/truffle/api/profiles/ConditionProfile;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.api.frame.FrameDescriptor descriptor;
descriptor: Lcom/oracle/truffle/api/frame/FrameDescriptor;
flags: (0x0010) ACC_FINAL
private boolean seenInnerContext;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$CompilationFinal()
void <init>(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.oracle.truffle.api.instrumentation.ExecutionEventNode.<init>:()V
1: aload 0
invokestatic com.oracle.truffle.api.profiles.ConditionProfile.create:()Lcom/oracle/truffle/api/profiles/ConditionProfile;
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.needsLookup:Lcom/oracle/truffle/api/profiles/ConditionProfile;
2: aload 0
aload 2
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.limits:Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;
3: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.eventContext:Lcom/oracle/truffle/api/instrumentation/EventContext;
4: aload 0
aload 2
getfield com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
5: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.singleThreadPerContext:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifeq 6
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.singleContext:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 9
6: StackMap locals: com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode com.oracle.truffle.api.instrumentation.EventContext com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits
StackMap stack:
aload 0
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.EventContext.getInstrumentedNode:()Lcom/oracle/truffle/api/nodes/Node;
invokevirtual com.oracle.truffle.api.nodes.Node.getRootNode:()Lcom/oracle/truffle/api/nodes/RootNode;
invokevirtual com.oracle.truffle.api.nodes.RootNode.getFrameDescriptor:()Lcom/oracle/truffle/api/frame/FrameDescriptor;
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.descriptor:Lcom/oracle/truffle/api/frame/FrameDescriptor;
7: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.descriptor:Lcom/oracle/truffle/api/frame/FrameDescriptor;
getstatic com.oracle.truffle.polyglot.PolyglotLimits.CACHED_CONTEXT:Ljava/lang/Object;
getstatic com.oracle.truffle.api.frame.FrameSlotKind.Object:Lcom/oracle/truffle/api/frame/FrameSlotKind;
invokevirtual com.oracle.truffle.api.frame.FrameDescriptor.findOrAddFrameSlot:(Ljava/lang/Object;Lcom/oracle/truffle/api/frame/FrameSlotKind;)Lcom/oracle/truffle/api/frame/FrameSlot;
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
8: goto 11
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
10: aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.descriptor:Lcom/oracle/truffle/api/frame/FrameDescriptor;
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/polyglot/PolyglotLimits$StatementIncrementNode;
0 12 1 context Lcom/oracle/truffle/api/instrumentation/EventContext;
0 12 2 limits Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;
MethodParameters:
Name Flags
context
limits
protected void onEnter(com.oracle.truffle.api.frame.VirtualFrame);
descriptor: (Lcom/oracle/truffle/api/frame/VirtualFrame;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
ifnull 1
aload 1
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.getFrameDescriptor:()Lcom/oracle/truffle/api/frame/FrameDescriptor;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.descriptor:Lcom/oracle/truffle/api/frame/FrameDescriptor;
if_acmpeq 3
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.getLimitContext:()Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
astore 2
start local 2 2: goto 16
end local 2 3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.getObject:(Lcom/oracle/truffle/api/frame/FrameSlot;)Ljava/lang/Object;
astore 3
start local 3 4: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.needsLookup:Lcom/oracle/truffle/api/profiles/ConditionProfile;
aload 3
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.descriptor:Lcom/oracle/truffle/api/frame/FrameDescriptor;
invokevirtual com.oracle.truffle.api.frame.FrameDescriptor.getDefaultValue:()Ljava/lang/Object;
if_acmpne 5
iconst_1
goto 6
StackMap locals: com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode com.oracle.truffle.api.frame.VirtualFrame top java.lang.Object
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile
5: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode com.oracle.truffle.api.frame.VirtualFrame top java.lang.Object
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile int
6: invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 10
7: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.getLimitContext:()Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
astore 2
start local 2 8: aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
aload 2
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.setObject:(Lcom/oracle/truffle/api/frame/FrameSlot;Ljava/lang/Object;)V
9: goto 16
end local 2 10: StackMap locals:
StackMap stack:
aload 3
checkcast com.oracle.truffle.polyglot.PolyglotContextImpl
astore 2
end local 3 start local 2 11: goto 16
end local 2 StackMap locals: com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode com.oracle.truffle.api.frame.VirtualFrame
StackMap stack: com.oracle.truffle.api.frame.FrameSlotTypeException
12: pop
13: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
14: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.getLimitContext:()Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
astore 2
start local 2 15: aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.readContext:Lcom/oracle/truffle/api/frame/FrameSlot;
aload 2
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.setObject:(Lcom/oracle/truffle/api/frame/FrameSlot;Ljava/lang/Object;)V
16: StackMap locals: com.oracle.truffle.polyglot.PolyglotContextImpl
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.singleThreadPerContext:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifeq 19
17: aload 2
dup
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementCounter:J
lconst_1
lsub
dup2_x1
putfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementCounter:J
lstore 3
start local 3 18: goto 20
end local 3 19: StackMap locals:
StackMap stack:
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.volatileStatementCounter:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.decrementAndGet:()J
lstore 3
start local 3 20: StackMap locals: long
StackMap stack:
lload 3
lconst_0
lcmp
ifge 23
21: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
22: aload 0
aload 2
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementLimit:J
lload 3
lsub
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementLimit:J
invokevirtual com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.notifyStatementLimitReached:(Lcom/oracle/truffle/polyglot/PolyglotContextImpl;JJ)V
23: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/oracle/truffle/polyglot/PolyglotLimits$StatementIncrementNode;
0 24 1 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
2 3 2 currentContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
8 10 2 currentContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
11 12 2 currentContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
15 24 2 currentContext Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
4 11 3 readValue Ljava/lang/Object;
18 19 3 count J
20 24 3 count J
Exception table:
from to target type
3 11 12 Class com.oracle.truffle.api.frame.FrameSlotTypeException
MethodParameters:
Name Flags
frame
private com.oracle.truffle.polyglot.PolyglotContextImpl getLimitContext();
descriptor: ()Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
invokestatic com.oracle.truffle.polyglot.PolyglotContextImpl.currentEntered:(Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;)Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.noInnerContexts:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 2
aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.parent:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
ifnonnull 3
2: StackMap locals: com.oracle.truffle.polyglot.PolyglotContextImpl
StackMap stack:
aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.seenInnerContext:Z
ifne 8
4: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
5: aload 0
iconst_1
putfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.seenInnerContext:Z
6: goto 8
7: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.parent:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
astore 1
8: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.parent:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
ifnonnull 7
9: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/polyglot/PolyglotLimits$StatementIncrementNode;
1 10 1 context Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
private void notifyStatementLimitReached(com.oracle.truffle.polyglot.PolyglotContextImpl, long, long);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotContextImpl;JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_0
istore 6
start local 6 1: aload 1
dup
astore 7
monitorenter
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.limits:Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;
getfield com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.singleThreadPerContext:Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifeq 7
3: aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementCounter:J
lconst_0
lcmp
ifge 10
4: aload 1
lload 4
putfield com.oracle.truffle.polyglot.PolyglotContextImpl.statementCounter:J
5: iconst_1
istore 6
6: goto 10
7: StackMap locals: int com.oracle.truffle.polyglot.PolyglotContextImpl
StackMap stack:
aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.volatileStatementCounter:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lconst_0
lcmp
ifge 10
8: aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.volatileStatementCounter:Ljava/util/concurrent/atomic/AtomicLong;
lload 4
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
9: iconst_1
istore 6
10: StackMap locals:
StackMap stack:
aload 7
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 7
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
iload 6
ifeq 25
15: ldc "Statement count limit of %s exceeded. Statements executed %s."
iconst_2
anewarray java.lang.Object
dup
iconst_0
16: lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
17: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 7
start local 7 18: aload 1
iconst_1
aload 7
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.invalidate:(ZLjava/lang/String;)Z
istore 8
start local 8 19: iload 8
ifeq 25
20: aload 1
aload 1
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.creatorApi:Lorg/graalvm/polyglot/Context;
iconst_1
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.close:(Lorg/graalvm/polyglot/Context;Z)V
21: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.limits:Lcom/oracle/truffle/polyglot/PolyglotLimits$EngineLimits;
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits.notifyEvent:(Lcom/oracle/truffle/polyglot/PolyglotContextImpl;)Ljava/lang/RuntimeException;
astore 9
start local 9 22: aload 9
ifnull 24
23: aload 9
athrow
24: StackMap locals: java.lang.String int java.lang.RuntimeException
StackMap stack:
aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode.eventContext:Lcom/oracle/truffle/api/instrumentation/EventContext;
invokevirtual com.oracle.truffle.api.instrumentation.EventContext.getInstrumentedNode:()Lcom/oracle/truffle/api/nodes/Node;
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.createCancelException:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/polyglot/PolyglotEngineImpl$CancelExecution;
athrow
end local 9 end local 8 end local 7 25: StackMap locals:
StackMap stack:
return
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/oracle/truffle/polyglot/PolyglotLimits$StatementIncrementNode;
0 26 1 context Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
0 26 2 actualCount J
0 26 4 limit J
1 26 6 limitReached Z
18 25 7 message Ljava/lang/String;
19 25 8 invalidated Z
22 25 9 e Ljava/lang/RuntimeException;
Exception table:
from to target type
2 11 12 any
12 13 12 any
MethodParameters:
Name Flags
context
actualCount
limit
}
SourceFile: "PolyglotLimits.java"
NestHost: com.oracle.truffle.polyglot.PolyglotLimits
InnerClasses:
public abstract CompilationFinal = com.oracle.truffle.api.CompilerDirectives$CompilationFinal of com.oracle.truffle.api.CompilerDirectives
final CancelExecution = com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution of com.oracle.truffle.polyglot.PolyglotEngineImpl
final EngineLimits = com.oracle.truffle.polyglot.PolyglotLimits$EngineLimits of com.oracle.truffle.polyglot.PolyglotLimits
final StatementIncrementNode = com.oracle.truffle.polyglot.PolyglotLimits$StatementIncrementNode of com.oracle.truffle.polyglot.PolyglotLimits